Welcome Guest Search | Active Topics | Sign In | Register

Select page number when Print Options
SnowIce
Posted: Thursday, November 17, 2016 4:17:23 AM
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
eo_support
Posted: Thursday, November 17, 2016 8:41:29 AM
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!
SnowIce
Posted: Friday, November 18, 2016 2:10:49 AM
Rank: Newbie
Groups: Member

Joined: 11/17/2016
Posts: 8
You have another way for me ???.
SnowIce
Posted: Saturday, November 19, 2016 5:46:19 AM
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
eo_support
Posted: Monday, November 21, 2016 11:06:11 AM
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!
SnowIce
Posted: Monday, November 21, 2016 11:36:46 AM
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
eo_support
Posted: Monday, November 21, 2016 11:38:13 AM
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.
SnowIce
Posted: Monday, November 21, 2016 11:43:37 AM
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
eo_support
Posted: Monday, November 21, 2016 12:35:42 PM
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.
SnowIce
Posted: Monday, November 21, 2016 7:25:05 PM
Rank: Newbie
Groups: Member

Joined: 11/17/2016
Posts: 8
Ok, i will try this way thanxx
Hope i pass it :((
SnowIce
Posted: Tuesday, November 22, 2016 12:01:49 AM
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
eo_support
Posted: Wednesday, November 23, 2016 4:31:42 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.