D
David Sabo
Hi all...
I having trouble printing on Win98. I cannot print more than once if I'm
lucky in win98, when the printdocument.print() is executed the following
Exception is raised. It doesn't start to execute the method raised by the
event PrintPage.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an
object.
at System.Windows.Forms.BackgroundThread.UpdateLabel()
at
System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPage(PrintDocume
nt document, PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument
document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at Reportes.Ordenes.btnImprimir_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
*************************************************************
I already check and the printdocument object is not Null, also the
printer is valid (it was checked with isValid Function).
I'm trying to print on a local and remote printer, sometimes I get lucky
and the local one print the document.
This problem only appears in win98, the program in winxp doesn't have
troubles.
I appreciate an answer for this dilemma...
Thanks,
David Sabo
Caracas, Venezuela
I having trouble printing on Win98. I cannot print more than once if I'm
lucky in win98, when the printdocument.print() is executed the following
Exception is raised. It doesn't start to execute the method raised by the
event PrintPage.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an
object.
at System.Windows.Forms.BackgroundThread.UpdateLabel()
at
System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPage(PrintDocume
nt document, PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument
document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at Reportes.Ordenes.btnImprimir_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
*************************************************************
I already check and the printdocument object is not Null, also the
printer is valid (it was checked with isValid Function).
I'm trying to print on a local and remote printer, sometimes I get lucky
and the local one print the document.
This problem only appears in win98, the program in winxp doesn't have
troubles.
I appreciate an answer for this dilemma...
Thanks,
David Sabo
Caracas, Venezuela