I Print a UltraWingrid with ultragridPrintdocument und ultraprintPreview.
with
this
.ultraPrintPreviewDialog1.Show();
I call the Peview and all seems to be fine.
After Closing (with or without printing) I cannot call the Dialog once more. It seems to be disposed (Debugger: You cannot acces to a disposed object).
What's wrong?
This is correct behavior. Whenever you close a modeless Form (it is modeless because you are calling Show and not ShowDialog) a Form will dispose itself. You would either need to show it modally (i.e. use ShowDialog - usually print preview dialogs are modal as they represent a snapshot of the state of an object at the time the preview was requested) or you would need to cancel the closing and hide the form (but then you might hit issues when you go to close your app because you'd be preventing that window from closing) or create a new instance of the printpreviewdialog in code every time you're going to show a new instance.
Do you still require assistance with this case? If not may I close it? You can open it again if you need to within 30 days of its closure and you can always open a new case at any time.
Thank you for using Infragistics.