I create my report's with this code to view it in the preview window.
Code: Select all
StiReport report = new StiReport();
report.Load(printOptions.ReportFile);
report.PrinterSettings.ShowDialog = true;
report.Compile();
StiOptions.Dictionary.BusinessObjects.MaxLevel = 3;
report.RegData(printOptions.DataSourceName, printOptions.DataSource);
report.Render();
report.ShowWithRibbonGUI();
The report is always printed with the default printer settings.
What do I wrong?
TIA
Ralf