Page 1 of 1
Control margins in printing web
Posted: Thu Nov 12, 2009 5:06 am
by Leandro
When I open the report Simple List in winform are 3 pages printed correctly.
When viewing the report on the web has 3 pages, but when print generates 6 pages. Below the print screen.
Designer
Report in Web
Configuration IE8
Printer spool
What should I do to print the number of pages equal to the display?
Control margins in printing web
Posted: Thu Nov 12, 2009 6:15 pm
by Edward
Hi,
The result you received was a 6 pages instead of 3 because when a report was printed from the browser it is always HTML representation of the report which is obviously can not be WYSIWYG. To avoid this use better printing using Adobe Acrobat and there is an option for such printing.
But you could still receive the result you were after. Just open the Page properties in IE and set header and footer as blank and reduce page margins to zero.
Unfortunately there is no rule about margins - you always need to set them a bit bigger in the report template if you going to print using HTML representation of the report from the browser.
Thank you.
Control margins in printing web
Posted: Tue Nov 17, 2009 8:23 pm
by Leandro
Hi Edward,
Is there a setting that instead of opening the preview normal html open the pdf file directly in the browser?
Control margins in printing web
Posted: Wed Nov 18, 2009 12:09 am
by Jan
Hello,
You can use "Print to Pdf" option from Print menu.
Thank you.
Control margins in printing web
Posted: Wed Nov 18, 2009 10:43 am
by Leandro
Hello Jan,
I would like to render the report directly to PDF, without opening the page with the visualization.
How to implement it?
Control margins in printing web
Posted: Wed Nov 18, 2009 11:56 am
by Edward
Hi
Yes, that is possible. Please use the following code:
Code: Select all
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this, report, false)
Thank you.
Control margins in printing web
Posted: Wed Nov 18, 2009 12:55 pm
by Leandro
Hello Edward,
Perfect, thank you!!!
Control margins in printing web
Posted: Thu Nov 19, 2009 2:28 am
by Edward
Hi Leandro,
You are welcome.
Please let us know if you need any help.
Thank you.
Control margins in printing web
Posted: Thu Nov 19, 2009 5:17 am
by Leandro
Thanks, so far it's alright