Page 1 of 1
Print difficulty
Posted: Wed Aug 17, 2016 9:18 am
by Kourosh
Hi,
I use of stimulreport version 2015.2 in asp.net.
I create a report with following parameters :
page.PageHeight=297;
page.PaperSize=System.Drawing.Printing.PaperKind.A4;
I use of asp.net HTML5 viewer.
when I run the report all the pages seem correct. But when I push the print button and print preview appears the next page is pulled up and I see some lines of next page at the bottom of the current page.
I have the same problem on all of my reports.
best regards
kourosh
Re: Print difficulty
Posted: Thu Aug 18, 2016 9:47 am
by HighAley
Hello.
What page format is set in the print settings?
Could you send us a screenshot of this page?
Thank you.
Re: Print difficulty
Posted: Sat Aug 20, 2016 7:05 am
by Kourosh
The report's page format and browser's print settings is A4.
The report has 112 pages (correct) but in print preview it converts to 108 pages.
Some screenshots are as the following.
Browser is chrome 52.0.2743.116(latest version);
And in the code :
report.Unit = StiUnit.Millimeters;
page.PaperSize = System.Drawing.Printing.PaperKind.A4;
page.PageWidth = 210;
page.PageHeight = 297;
Re: Print difficulty
Posted: Sat Aug 20, 2016 7:34 am
by Kourosh
And the following code results :
report.Unit = StiUnit.Millimeters;
page.PaperSize = System.Drawing.Printing.PaperKind.A4;
page.PageWidth = 210 - (2 * 10.16);
page.PageHeight = 297 - page.Margins.Top - page.Margins.Bottom + 2.46;
Re: Print difficulty
Posted: Sat Aug 20, 2016 8:37 am
by Vladimir
Hello,
The Google Chrome browser itself resizes an HTML page for printing, size depends on the margins.
Please try to set Margins to None in this print dialog instead of the Default.
This will avoid double margins (margins of the report and the margins of the browser), and the page size should be more correct.
Thank you.
Re: Print difficulty
Posted: Sat Aug 20, 2016 11:07 am
by Kourosh
Hi
I tried Custom, None and Minimum Margins but it didn't help me.
Changing the Viewer control from StiMobileViewer to StiWebViewer solved the problem.
it seems this is a bug in StiMobileViewer.
Thank you.
Re: Print difficulty
Posted: Sun Aug 21, 2016 2:37 pm
by Alex K.
Hello,
Can you please send us a request on
support@stimulsoft.com with detail description.
Thank you.