Proper way to print from Web.

Stimulsoft Reports.NET discussion
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Proper way to print from Web.

Post by fkmfkm »

Pavel,

Thanks for your reply, but I think you got me wrong.

1. What I mean header was the header in IE. The one in the IE page setup, where the URL, page number etc etc.

2. I dont mean the preview. In the preview everything appears fully. But when I send it to an actual printer the right side got chopped off.

Please Help.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Proper way to print from Web.

Post by Vital »

Sorry we can't control this parameters of IE from css or html.

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Proper way to print from Web.

Post by fkmfkm »

How bout the cropping of the report on the right side ? Can this be set from STI report ? Or how do I work around it ?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Proper way to print from Web.

Post by Edward »

Could you send the asp page with your report to Image for analysis, please?

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Proper way to print from Web.

Post by fkmfkm »

The page has been sent to you.

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Proper way to print from Web.

Post by Edward »

Thank you for the sample.

Please note that we can't control printing of the html page. The only solution I recommend is to set stiWebViewer.PrintDestination = Pdf.

Except this we cannot suggest any control of html printing.

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Proper way to print from Web.

Post by fkmfkm »

Ok Thank you...:)

Did I do the right thing on the form for web reporting ? or is there a better way ?

Another question: Can I print to PDF without using the StiWebViewer ? In another word can I print directly from the StiWebReport ?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Proper way to print from Web.

Post by Edward »

Exists another way of printing via Pdf, via the following code:

StiReportResponse.ResponseAsPdf(this, report)

but the both methods are equivalent.

Thank you.
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Proper way to print from Web.

Post by fkmfkm »

Edward,

Cool, this is exactly what i needed.

Thanks a lot.
Post Reply