|
Rank: Newbie Groups: Member
Joined: 11/17/2016 Posts: 8
|
Dear all, i use eo.webbrowser , i have template html bind to eo.webbrowser. i want display page number when call webView1.Print()
Pls help me. Thanx
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Unfortunately we do not have any built-in support for this. Sorry about it!
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/17/2016 Posts: 8
|
You have another way for me ???.
|
|
Rank: Newbie Groups: Member
Joined: 11/17/2016 Posts: 8
|
Sorry, i don't find a solution for it. I have a question : - If i want draw webview to bitmap , then i use printdocument draw it and add page number is possible
Thanx
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
The easiest way for you to do this is to use our HTML to PDF tool to convert the HTML page into a PDF file with page numbers (HTML to PDF has built-in support for page numbers), then you can print the PDF file. It is not possible for you to do it through WebBrowser + bitmap because this is no way for you to find out where the page break should occur, and also the captured bitmap will be in screen resolution and is not suitable for printing purpose since screen solution is too low for printing).
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/17/2016 Posts: 8
|
Thanx for reply, I tried it, i have pdf file and i try print it I use prossetinfo to send command to print, it will show dialog save file if i don't have pdf reader program. I want when i click print it will print from printer, not show dialog or anorther program Pls help me, thanx
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Have you tried to load the result PDF file into a WebView and then use WebView.Print to print? That will allow you to print without a dialog.
|
|
Rank: Newbie Groups: Member
Joined: 11/17/2016 Posts: 8
|
Oh, your mean is load again pdf file exist into the webview??? And then will print form web view I have a question: what method help me load file pdf into webview, i see load html into webview Thanxx
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
There is nothing particular about loading a PDF file. Since both PDF and HTML are supported file format by the browser engine, You would load a PDF file exactly the same way as your load a HTML file.
|
|
Rank: Newbie Groups: Member
Joined: 11/17/2016 Posts: 8
|
Ok, i will try this way thanxx Hope i pass it :((
|
|
Rank: Newbie Groups: Member
Joined: 11/17/2016 Posts: 8
|
Thanx for good solution , i reload pdf file when call method EoPrinter.SavePdfFile(htmlFile1);
file pdf is good display if show in webbrowser , but when i call :
webview1.print()
print document have grey area in top left document with page by page.
what do i need to fix it.
Thanx
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
This would be an issue. We will see if we can add the page header/footer support in our future version.
Thanks!
|
|