Show PrinterDialog in Report Preview

Stimulsoft Reports.NET discussion
Post Reply
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Show PrinterDialog in Report Preview

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Show PrinterDialog in Report Preview

Post by Alex K. »

Hello,

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

Thank you.
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Show PrinterDialog in Report Preview

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Show PrinterDialog in Report Preview

Post by Alex K. »

Hello,

Please check the ShowDialog option.

Thank you.
Attachments
920.Screen.JPG
920.Screen.JPG (87.17 KiB) Viewed 1482 times
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Show PrinterDialog in Report Preview

Post by vorauler »

Hello

Thank you for your reply, my question is dissolved.

Ralf
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Show PrinterDialog in Report Preview

Post by Alex K. »

Hello,

Let us know if you need any additional help.

Thank you.
Post Reply