Page 1 of 1

Show PrinterDialog in Report Preview

Posted: Thu Apr 14, 2011 4:47 am
by vorauler
Hi

How can I show a Printerdialog when the user click the print button in the Viewer control?
I use this code to show the reports:

StiReport report = new StiReport();
report.Load(reportFile);
report.Compile();
StiOptions.Dictionary.BusinessObjects.MaxLevel = 3;
report.RegData(dataSourceName, dataSource);
report.Render();
report.ShowWithRibbonGUI();

Ralf

Show PrinterDialog in Report Preview

Posted: Thu Apr 14, 2011 6:10 am
by Alex K.
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.

Show PrinterDialog in Report Preview

Posted: Thu Apr 14, 2011 6:47 am
by vorauler
Hello

I try to explain it better. With the code in my first mail I generate a report and show it in the Report Viewer.
If I press now the print button in the Viewer toolbar, the report will printed directly.
Now I want show a Printerdialog to select on which printer the report will printed.

The workflow should be:
Preview Report
Press Printbutton
Show Printerdialog
Select Printer
Print

Ralf

Show PrinterDialog in Report Preview

Posted: Thu Apr 14, 2011 10:03 am
by Alex K.
Hello,

Please check the ShowDialog option.

Thank you.

Show PrinterDialog in Report Preview

Posted: Fri Apr 15, 2011 12:05 am
by vorauler
Hello

Thank you for your reply, my question is dissolved.

Ralf

Show PrinterDialog in Report Preview

Posted: Fri Apr 15, 2011 12:43 am
by Alex K.
Hello,

Let us know if you need any additional help.

Thank you.