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