Posted 28 May 2020, 9:08 am EST
Hello,
I have a v12 XML-based section report in an application that several of my customers have run except one and I don’t know the cause and I can’t yet duplicate it in my development environment. I am hoping you might give me a clue. The exception is
System.ComponentModel.Win32Exception (0x80004005): The data is invalid
at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal(String printer)
at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal()
at System.Drawing.Printing.PrinterSettings.GetHdevmode()
at System.Drawing.Printing.PageSettings.get_PaperSource()
at GrapeCity.ActiveReports.Viewer.Win.Controls.CustomPrintDialog.RunDialog(IntPtr hwndOwner)
at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
at System.Windows.Forms.CommonDialog.ShowDialog()
at GrapeCity.ActiveReports.Viewer.Win.Printing.PrintImpl.#zs(#q0B documentPrintAdapter, Action
1 action, Boolean useStandardDialog, Boolean useXpStyleDialog) at GrapeCity.ActiveReports.Viewer.Win.Printing.PrintImpl.Print(#q0B documentPrintAdapter, Boolean showPrintDialog, Boolean showPrintProgressDialog, Boolean usePrintingThread, Boolean useStandardDialog, Boolean useXpStyleDialog, Action
1 action)at GrapeCity.ActiveReports.Viewer.Win.Printing.PrintImpl.Print(DocumentModel documentModel, ReportModelBase reportModel, IApplicationContext context, Boolean showPrintDialog, Boolean showPrintProgressDialog, Boolean usePrintingThread, Boolean useStandardDialog, Boolean useXpStyleDialog)
at GrapeCity.ActiveReports.Viewer.Win.Printing.PrintImpl.Print(DocumentModel documentModel, ReportModelBase reportModel, IApplicationContext context, PrintingSettings settings)
at #1sz.#RiL.Print(DocumentModel documentModel, ReportModelBase reportModel, IApplicationContext context, PrintingSettings settings)
at GrapeCity.Viewer.Common.ViewModel.ToolbarViewModel.<>c__DisplayClass3e.#9kz()
Regards
Brian