page margins is no work

Stimulsoft Reports.NET discussion
Post Reply
silade
Posts: 16
Joined: Thu Feb 05, 2009 2:03 am

page margins is no work

Post by silade »

I use the report in web site.I set the page margins in asp.net Page.It work well when preview in IE.But It do not work afert printed.why?
Did it need set something else?
this is my code
StiPage stiPage = (StiPage)report.Pages["Page1"];
stiPage.Margins = new StiMargins((Double) 2.54, 1, (Double) 2.54, 1);
StiDataBand stiDataBand = (StiDataBand)stiPage.Components["DataSpine8X6"];
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

page margins is no work

Post by Edward »

Hi Silade,

The only way to avoid this behavior is to use export to pdf and then printing from pdf. There is no guarantee that HTML representation of the report will be printed with the same dimensions. But in Pdf representation of the report is exactly as in preview in browser.

Thank you.
Post Reply