ObjectDisposedException in Print()
Posted: Thu Nov 30, 2017 6:17 pm
Hello,
I use Stimulsoft Version 2013.3.1800 and I have a ObjectDisposedException in method Print() in my application. In Designer I haven't not problems for my report. The report validator show me not errors and warnings. I use in report a strength type dataset as datasource.
...
Public Class Form1
Private StrReport as StiReport
...
Private btn_Print(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_Print.Click
dim ds As BusinessDataSet = New BusinessDataSet()
StrReport.DataStore.RegData("Data", ds)
Dim settings = New Printing.PrintDocument().PrinterSettings
settings.PrinterName = "Microsoft XPS Document Writer auf nnn.nnn.nnn.nnn"
settings.DefaultPageSettings.PaperSource = 0
StrReport.Print(showPrintDialog:=False, printerSettings:=settings)
End Sub
...
End Class
What ist the problem for the ObjectDisposedException in method Print()?
Best Regards
Wolfram
I use Stimulsoft Version 2013.3.1800 and I have a ObjectDisposedException in method Print() in my application. In Designer I haven't not problems for my report. The report validator show me not errors and warnings. I use in report a strength type dataset as datasource.
...
Public Class Form1
Private StrReport as StiReport
...
Private btn_Print(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_Print.Click
dim ds As BusinessDataSet = New BusinessDataSet()
StrReport.DataStore.RegData("Data", ds)
Dim settings = New Printing.PrintDocument().PrinterSettings
settings.PrinterName = "Microsoft XPS Document Writer auf nnn.nnn.nnn.nnn"
settings.DefaultPageSettings.PaperSource = 0
StrReport.Print(showPrintDialog:=False, printerSettings:=settings)
End Sub
...
End Class
What ist the problem for the ObjectDisposedException in method Print()?
Best Regards
Wolfram