| Greg Slagell 2005-12-28, 9:23 am |
| Does anyone have any Ideas I can Try?
I am using the RTM Version of SQL Server 2005, and I am trying to print a
fairly large database diagram to my plotter. When I try to print, or even
resize some of the table diagram elements, I get the following error in the
..NET Framework:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Image.get_Width()
at
Microsoft.SqlServer.Management.UI.Grid.GridBitmapColumn.DrawBitmap(Graphics
g, Brush bkBrush, Rectangle rect, Bitmap myBmp, Boolean bEnabled)
at
Microsoft.SqlServer.Management.UI.Grid.GridCheckBoxColumn.DrawCell(Graphics
g, Brush bkBrush, SolidBrush textBrush, Font textFont, Rectangle rect,
IGridStorage storage, Int64 nRowIndex)
at
Microsoft.SqlServer.Management.UI.Grid.GridControl. DoCellPainting(Graph
ics g,
SolidBrush bkBrush, SolidBrush textBrush, Font textFont, Rectangle cellRect,
GridColumn gridColumn, Int64 rowNumber, Boolean enabledState)
at
Microsoft.SqlServer.Management.UI.Grid.GridControl. PaintOneCell(Graphic
s g,
Int32 nCol, Int64 nRow, Int32 nEditedCol, Int64 nEditedRow, Rectangle& rCell,
Rectangle& rCurrentCellRect, Rectangle& rEditingCellRect)
at Microsoft.SqlServer.Management.UI.Grid.GridControl.PaintGrid(Graphics g)
at
Microsoft.SqlServer.Management.UI.Grid.GridControl. OnPaint(PaintEventAr
gs pe)
at System.Windows.Forms.Control. PaintWithErrorHandli
ng(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Microsoft.SqlServer.Management.UI.Grid.GridControl.WndProc(Message& m)
at Microsoft.VisualStudio.DataTools.UI.Grid.GridControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at
System.Windows.Forms.Control.ActiveXImpl.System.Windows.Forms.IWindowTarget.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)
.........
|