Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser PrinterSettings .PrintFileName Options
Fabien
Posted: Wednesday, November 23, 2016 8:50:38 AM
Rank: Advanced Member
Groups: Member

Joined: 7/21/2014
Posts: 130
Hi,

We use this code to print a webpage to a pdf file.

Code: Visual Basic.NET
Dim printToPDFSettings As New System.Drawing.Printing.PrinterSettings() With {
                .PrintToFile = True,
                .PrinterName = "Microsoft Print to PDF",
                .PrintFileName = pathFichier
            }
            webView.Print(printToPDFSettings)


This code works well except the PrintFileName is not reconized by the Print(settings) method, so the user needs to choose path and file name in the file dialog.

It'll be great if you can fix this.

Thanks!
eo_support
Posted: Wednesday, November 23, 2016 11:17:41 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

This is not supported on EO.WebBrowser product. In order to convert the web page into PDF, you will need to use our HTML to PDF feature.

Thanks!
Fabien
Posted: Wednesday, November 23, 2016 11:24:35 AM
Rank: Advanced Member
Groups: Member

Joined: 7/21/2014
Posts: 130
Mmmmh.... W10 integrated a built-in functionnality to print in PDF, i don't see any benefits to add and buy an external dll to do that...

Too bad this feature is not implemented ...

But I understand you want to place your components ... Business is business


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.