Print difficulty

Stimulsoft Reports.WEB discussion
Post Reply
Kourosh
Posts: 4
Joined: Wed Aug 17, 2016 9:06 am

Print difficulty

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Print difficulty

Post by HighAley »

Hello.

What page format is set in the print settings?
Could you send us a screenshot of this page?

Thank you.
Kourosh
Posts: 4
Joined: Wed Aug 17, 2016 9:06 am

Re: Print difficulty

Post 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;
Attachments
page 106,107,108
page 106,107,108
1-5 A4.JPG (100.17 KiB) Viewed 3448 times
pages 66,67,68
pages 66,67,68
1-4 A4.JPG (106.12 KiB) Viewed 3448 times
pages 1,2,3
pages 1,2,3
1-3 A4.JPG (97.26 KiB) Viewed 3448 times
page 1
page 1
1-2 A4.JPG (106.63 KiB) Viewed 3448 times
html viewer
html viewer
1-1 A4.JPG (211.17 KiB) Viewed 3448 times
Kourosh
Posts: 4
Joined: Wed Aug 17, 2016 9:06 am

Re: Print difficulty

Post 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;
Attachments
pages 1,2
pages 1,2
2-1 custom.JPG (94.91 KiB) Viewed 3448 times
pages 64,65
pages 64,65
2-2 custom.JPG (86.43 KiB) Viewed 3448 times
pages 84,85
pages 84,85
2-3 custom.JPG (91.32 KiB) Viewed 3448 times
pages 110,111,112
pages 110,111,112
2-4 custom.JPG (93.63 KiB) Viewed 3448 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Print difficulty

Post 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.
Kourosh
Posts: 4
Joined: Wed Aug 17, 2016 9:06 am

Re: Print difficulty

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Print difficulty

Post by Alex K. »

Hello,

Can you please send us a request on support@stimulsoft.com with detail description.

Thank you.
Post Reply