Default Printer Printing Help
-
- Posts: 74
- Joined: Sun May 20, 2007 9:14 pm
- Location: Singapore
Default Printer Printing Help
I am using stiWebReport & stiWebViewer, version Stimul Reports.Net 2007.1
How do I default the printing direct to the default printer?
I had try using .PrintToDirect() in the page load. But, it always lead me to Print Preview.
Is there any Notes or FAQ teaching me how to do this?
Thanks
Smile :biggrin:
chankl78
How do I default the printing direct to the default printer?
I had try using .PrintToDirect() in the page load. But, it always lead me to Print Preview.
Is there any Notes or FAQ teaching me how to do this?
Thanks
Smile :biggrin:
chankl78
Smile
Chan Kuan Leang
Chan Kuan Leang
Default Printer Printing Help
Unfortunately there is no such a commandto print directly from the StiWebViewer.
But if you render your report as pdf file via the following command:
then printing is possible without additional window and WYSIWYG is guaranteed as well.
Thank you.
But if you render your report as pdf file via the following command:
Code: Select all
StiReportResponse.ResponseAsPdf(this, report)
Thank you.
Default Printer Printing Help
Hello,
I don't know well the stiWebReport class but if you do
it should print directly to the default printer, isn't it ?
Cordially,
Kakone.
I don't know well the stiWebReport class but if you do
Code: Select all
stiWebReport.GetReport().Print(false)
or
stiWebViewer.Report.Print(false)
Cordially,
Kakone.
Default Printer Printing Help
Possible ways for printing are presented in the WebDemo example application from the standard delivery.chankl78 wrote:I am using stiWebReport & stiWebViewer, version Stimul Reports.Net 2007.1
How do I default the printing direct to the default printer?
I had try using .PrintToDirect() in the page load. But, it always lead me to Print Preview.
Please show your code as you trying to print from the stiWebViewer class.
Thank you.
-
- Posts: 74
- Joined: Sun May 20, 2007 9:14 pm
- Location: Singapore
Default Printer Printing Help
Edward wrote:Possible ways for printing are presented in the WebDemo example application from the standard delivery.chankl78 wrote:I am using stiWebReport & stiWebViewer, version Stimul Reports.Net 2007.1
How do I default the printing direct to the default printer?
I had try using .PrintToDirect() in the page load. But, it always lead me to Print Preview.
Please show your code as you trying to print from the stiWebViewer class.
Thank you.
Code: Select all
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim Report As Stimulsoft.Report.StiReport = rwModuleHC.GetReport()
wvModuleHC.Report = Report
wvModuleHC.PrintToDirect()
End Sub
Smile
chankl78
Smile
Chan Kuan Leang
Chan Kuan Leang
Default Printer Printing Help
Yes, the code is correct, but unfortunately it is not possible to print without this popup window.
The html representation of the report can be slightly different from the preview window.
If the report must be printed from the StiWebViewer, than also possible to represent it in pdf format via the following command:
Thank you.
The html representation of the report can be slightly different from the preview window.
If the report must be printed from the StiWebViewer, than also possible to represent it in pdf format via the following command:
Code: Select all
StiReportResponse.ResponseAsPdf(this, report);
-
- Posts: 74
- Joined: Sun May 20, 2007 9:14 pm
- Location: Singapore
Default Printer Printing Help
Thank you for the advice.Edward wrote:Yes, the code is correct, but unfortunately it is not possible to print without this popup window.
The html representation of the report can be slightly different from the preview window.
If the report must be printed from the StiWebViewer, than also possible to represent it in pdf format via the following command:
Thank you.Code: Select all
StiReportResponse.ResponseAsPdf(this, report);
Is it possible to have it in VB code?
Thanks.
Smile
Chan Kuan Leang
Chan Kuan Leang
Default Printer Printing Help
Yes, it is possible.
Here you are:
Thank you.
Here you are:
Code: Select all
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Me, Report)
-
- Posts: 74
- Joined: Sun May 20, 2007 9:14 pm
- Location: Singapore
Default Printer Printing Help
Thank you so much. :biggrin:Edward wrote:Yes, it is possible.
Here you are:
Thank you.Code: Select all
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(Me, Report)
Smile
Chan Kuan Leang
Chan Kuan Leang
Default Printer Printing Help
Please let us know if you need any help.
Thank you.
Thank you.