|
|
|
|
|
|
After clicking the OK button the report viewer shows the same message
This error is not consistent and I haven’t been able to pin down the circumstances that cause it to happen.
Any suggestions on where to start would be greatly appreciated.
Jim
|
|
|
|
|
|
After clicking the OK button the report viewer shows the same message
This error is not consistent and I haven’t been able to pin down the circumstances that cause it to happen.
Any suggestions on where to start would be greatly appreciated.
Jim
Error Generating Report to Viewer
EternalLight
DeathByNukes
Hope the following is what you were asking for as I'm somewhat new in developing with VS and learning as I'm going along.
I think I'm starting to have an idea about what the problem is. In order to get around the issue of the print button not wokring the first time it is clicked, I've replaced the ReportViewer print dialog with PrintDocument from System.Drawing.
With the new dialog, the report does print on the first click, but all my columns have shifted a bit to the right and there is something different about the spacing of the fonts too. In any case, the shifting causes one page to become two.
The error comes up if I restict the output to the printer for one page. The GDI error comes up at this point.
So I guess the solution will be to either go back to the original print dialog or look at reformatting all of the reports I have created so far. I'm not too excited about either :(
Thanks for the help.
at DietUtils.Reports.evntReportError(Object sender, ReportErrorEventArgs e)
at Microsoft.Reporting.WinForms.ReportViewer.OnError(Exception e)
at Microsoft.Reporting.WinForms.ReportViewer.UpdateUIState(Exception e)
at Microsoft.Reporting.WinForms.ReportViewer.OnPrint(Object sender, EventArgs e)
at Microsoft.Reporting.WinForms.ReportToolBar.OnPrint(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
DraganAxo
Have continued to investigate this problem and now found out that the issue is not related to the generic dialog.
For each line of the report, I have a graphic of a box so that a client can mark desired items on the report. The graphic of the box is about the size of the font (10pts) but it is used quite extensively as there are three panels (or 3 super-columns) on the report. It would not be uncommon for the graphic to display on 50 per page.
I seems if the report is only a couple of pages, there is no problem. However, if the report is a good number of pages then the report crashes at some point when sent to the printer with the GDI+ error.
I built that ability to show or hide the graphic when the report is generated and if the graphic is hidden, then there is no GDI+ error.
Are there any know issues with regards to graphics on reports
Thanks for the help