How Print A5 Paper in Web?

Stimulsoft Reports.NET discussion
Post Reply
roiadel
Posts: 2
Joined: Fri Aug 21, 2009 11:36 pm

How Print A5 Paper in Web?

Post by roiadel »

Hi All,
I have A Report "salereport.mrt" that is in A5 size.
when i export a Report to pdf i can print it in A5 size
but whene print Directly from "StiWebViewer" Menu or with Below Code Result is not A5.

StiWebViewer1.PrintToDirect()

Please Help me...:tire:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How Print A5 Paper in Web?

Post by Edward »

Hi,

PrintToDirect function uses only browser features for printing. But these features are very limited.

The best way to print from web viewer is to use pdf for printing:

Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this, report)

Thank you.
roiadel
Posts: 2
Joined: Fri Aug 21, 2009 11:36 pm

How Print A5 Paper in Web?

Post by roiadel »

thanks Edward,

when i export report to pdf we can open it in foxit reader and print it in A5 Paper, but when i print it directly( i select in Printer Preferences A5 Paper) prints Report in A5/2 size .(my Report.mrt file Design in A5 forms).my users should use a print preferences to Print Reports and for this no problem.

i will use a popup window to view exported pdf in window with Foxit Reader(in crystall report this is automatically even in Foxit Reader and Acrobat Reader).
how Report can view without (Open Save Dialog)?

Crystall Report also show print in pdf format in Foxit Reader withou open/save dialog.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

How Print A5 Paper in Web?

Post by Andrew »

Hello,

The PdfShowDialog property is used to call the PDF automatically without the Save dialog. Set this property to "false".

Otherwise use the overriden export method
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this, report, false)

Thank you.
Post Reply