New Error in Code
Posted: Tue Dec 12, 2006 12:16 am
Our reports have worked flawlessly and we never fault them.
Until today :/
We use the Report.Show() function to preview our reports. This has never been an issue. However, we run through the standard processes, which is
Report.regdata(ds)
Report.load(file)
Report.Show()
This used to work flawlessly, and show the report in a print preview stage. This now however spawns no new window. No error message. The code calls the .show() method and returns normally.
To print, we would use:
Report.Render()
Dim PrinterSettings As PrinterSettings = New PrinterSettings
PrinterSettings.Copies = 1
Report.Print(PrinterSettings)
This however now calls the .Print() line and shows a messagebox (generated by stimulsoft) of "Object Reference not set to reference to object", and then does not print the document.
The strange thing is this; If we use the the report preview pane control, then the reports preview and print fine. If we use the export features: ie
Dim PdfExport As StiPdfExportService = New StiPdfExportService
PdfExport.ExportPdf(Report, ExportFile)
Then this will correctly generate the report.
We're at a loss, and with no source code have no where left to turn. We are using stimulsoft v1.50, .net 1.1.
Thanks in advance.
Until today :/
We use the Report.Show() function to preview our reports. This has never been an issue. However, we run through the standard processes, which is
Report.regdata(ds)
Report.load(file)
Report.Show()
This used to work flawlessly, and show the report in a print preview stage. This now however spawns no new window. No error message. The code calls the .show() method and returns normally.
To print, we would use:
Report.Render()
Dim PrinterSettings As PrinterSettings = New PrinterSettings
PrinterSettings.Copies = 1
Report.Print(PrinterSettings)
This however now calls the .Print() line and shows a messagebox (generated by stimulsoft) of "Object Reference not set to reference to object", and then does not print the document.
The strange thing is this; If we use the the report preview pane control, then the reports preview and print fine. If we use the export features: ie
Dim PdfExport As StiPdfExportService = New StiPdfExportService
PdfExport.ExportPdf(Report, ExportFile)
Then this will correctly generate the report.
We're at a loss, and with no source code have no where left to turn. We are using stimulsoft v1.50, .net 1.1.
Thanks in advance.