Hello,

When trying to print a page in one of our applications, we are getting the above error message.

The code the line is breaking on is :

Code:
Friend WithEvents zg1 As ZedGraph.ZedGraphControl
Dim g As Graphics = zg1.CreateGraphics
Dim ibitMap As New Bitmap(zg1.ClientSize.Width, zg1.ClientSize.Height, g)
ibitMap.Save(DocServerPath & EmployeeNumber & "\d" & CStr(SummaryID) & ".bmp", System.Drawing.Imaging.ImageFormat.Bmp)
I didn't write this app so I don't really know much about it, other than to say that the code appears to be saving a graph as a bitmap, using this zedgraph control.

I know it's a longshot, but can anyone shed any light on how I can get to the bottom of this ?

Thanks.