Page 1 of 1

help Needed On Printing Landscape

Posted: Thu May 15, 2008 3:38 am
by vijendra
Hi,
We are having some reports Portrait and some landscape in web application
befor printing we have to manually select 'Portrait' or 'lanscape' page setup of the browser is there any way to set it
automatically according to type of report because it is not helpfull to client to set the printer setting for every report


And one more thing

There is event for exporting report i.e. 'StiWebViewer1_ReportExport'
But there is no event when we click on the print button



help Needed On Printing Landscape

Posted: Thu May 15, 2008 4:14 am
by Edward
vijendra wrote:Hi,
We are having some reports Portrait and some landscape in web application
befor printing we have to manually select 'Portrait' or 'lanscape' page setup of the browser is there any way to set it
automatically according to type of report because it is not helpfull to client to set the printer setting for every report

Unfortunately we do not have access to the browser from the web application. This setting can not be managed.
There is a way how to print the report without setting any parameter in browser.
It is rendering report as PDF via the following:

Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this, report, false)
vijendra wrote:There is event for exporting report i.e. 'StiWebViewer1_ReportExport'
But there is no event when we click on the print button
Please provide us with more information about the task you undertake during the printing. Printing may be done in three different ways:
PrintToPdf(), PrintToDirect(), PrintToPopupWindow().

Thank you.

help Needed On Printing Landscape

Posted: Thu May 15, 2008 4:36 am
by vijendra
We are using PrintToDirect() for printing

help Needed On Printing Landscape

Posted: Thu May 15, 2008 6:54 am
by Edward
Unfortunately we can not add this functionality because of call-back functions and requests are used together with these methods.

Thank you.