Report margin problems

Stimulsoft Reports.JS discussion
Post Reply
stvhui
Posts: 51
Joined: Wed Apr 22, 2009 3:12 am

Report margin problems

Post by stvhui »

Hello to you,
I'm using Stimulsoft Reports.JS version 2018.2.3
In report file (.mrt) I set paper size to A4, by default the margin top 1, margin bottom 1, margin left 1, margin right 1. (1 means inch or cm ??)
I also set the printer paper size to A4,
I'm using Mozilla Firefox browser, from the Browser I saw the top margin 12.7, left margin 12.7, right margin 12.7, bottom margin 12.7 (12.7 means mm or what)
The Problems is :
When I execute the report, It shown total 4 pages, then I click print ithoutpreview it display printer box then printing.
Result is becomes 8 pages. the first page is printed whole page, the second just 2 rows then the third page whole page, the forth page just 1 row etc
It try of many setting, but cannot solve it.
Would you mind give me guidance flow of "report's printing mechanicm", So I can understanding the problems. I means when report rendering to printer
It problem seems "in margin" setting. but I dont which part (in .mrt or printer or browser)
Please help and thanks in advance.
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Report margin problems

Post by Lech Kulikowski »

Hello,

You can check ReportUnits property.
Also, please try to remove margins in the printer settings dialog.

Thank you.
stvhui
Posts: 51
Joined: Wed Apr 22, 2009 3:12 am

Re: Report margin problems

Post by stvhui »

Hello...
From my point seems :
1. Stimulsoft Report (.mrt) not well passing report-margin value to browser. So the browser margin didn't accept the value from report.
2. Stimulsoft Report (.mrt) databand field (example address) set to word wrap and can grow, this causing printed result becomes more than a pages. it's bugs?
Please advice and thanks in advance
Regards,
Steven
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report margin problems

Post by HighAley »

Hello.

This is the issue of the way browser shows and prints HTML.
Unfortunately, it's impossible to set the print settings from our side.
So the main issue in this case is the page margins added by the browser.
You could remove them in the print settings or you could use the Print with PDF mode.
The Print to PDF mode give more accurate result.

Thank you.
Post Reply