Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser Printsettings and PageSettings problem Options
Guri
Posted: Friday, June 24, 2016 10:10:46 AM
Rank: Newbie
Groups: Member

Joined: 3/15/2015
Posts: 2
Hello, i have a problem where I am setting PaperSize in the DefaultPageSetting method and also in PageSetting but it seems like the WebView.Print method doesn't accept the new settings. I am trying to change with custom values, and also I've tried with setting the PaperSize from the printer list, but without success.

Here is the code example
Quote:

PrinterSettings settings = new PrinterSettings();

PaperSize ps = settings.PaperSizes[2]; //new PaperSize();
//ps.Height = 12897;
//ps.PaperName = "GPrinter80(72) x 3276 mm";
//ps.RawKind = 129;
//ps.Width = 283;
settings.DefaultPageSettings.PaperSize = ps;
if (settings.IsValid)
{
PageSettings pageSettings = new PageSettings(settings);

pageSettings.PaperSize = ps;
pageSettings.PrinterSettings.DefaultPageSettings.PaperSize = ps;
pageSettings.Margins.Left = 0;
pageSettings.Margins.Right = 0;
pageSettings.Margins.Top = 0;
pageSettings.Margins.Bottom = 25;
printBrowser.WebView.Print(false, settings, pageSettings);
}


Please let me know is this some option that the WebView.Print method doesn't support or another problem. Thanks
eo_support
Posted: Friday, June 24, 2016 12:04:24 PM
Rank: Administration
Groups: Administration

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

Which version of EO.WebBorwser do you use?

Thanks!
Guri
Posted: Friday, June 24, 2016 1:53:17 PM
Rank: Newbie
Groups: Member

Joined: 3/15/2015
Posts: 2
eo_support wrote:
Hi,

Which version of EO.WebBorwser do you use?

Thanks!


I have downloaded the latest version before posting the question.
EO.Total.2016.1.17.0
eo_support
Posted: Friday, July 1, 2016 1:31:29 PM
Rank: Administration
Groups: Administration

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

We have posted a new build that should fix the paper size problem. Please download the new build from our download page. Note that the margin may still not work correctly (we are still looking into that part). However paper size should work correctly in this build.

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.