473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Print Error Win98

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.PrintControllerWithStatusDial og.OnStartPage(PrintDocume
nt document, PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop( PrintDocument
document)
at System.Drawing.Printing.PrintController.Print(Prin tDocument 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(MouseEventAr gs 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(M essage& 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
Nov 15 '05 #1
2 1731
Hi David,

It is most likely a known bug in the .NET Framework. It has been fixed in
one of the .NET Service Packs (SP2 I suppose).

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"David Sabo" <ds***@telcel.net.ve> wrote in message
news:ex**************@TK2MSFTNGP12.phx.gbl...
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.PrintControllerWithStatusDial og.OnStartPage(PrintDocume nt document, PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop( PrintDocument
document)
at System.Drawing.Printing.PrintController.Print(Prin tDocument 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(MouseEventAr gs 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(M essage& 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


Nov 15 '05 #2
Thanks, I applied the SP2 and it didn't fix the problem, does anyone have a
clue?

David

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:Ok**************@TK2MSFTNGP12.phx.gbl...
Hi David,

It is most likely a known bug in the .NET Framework. It has been fixed in
one of the .NET Service Packs (SP2 I suppose).

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"David Sabo" <ds***@telcel.net.ve> wrote in message
news:ex**************@TK2MSFTNGP12.phx.gbl...
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.PrintControllerWithStatusDial og.OnStartPage(PrintDocume nt document, PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop( PrintDocument
document)
at System.Drawing.Printing.PrintController.Print(Prin tDocument

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(MouseEventAr gs 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(M essage& 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

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bruce W...1 | last post by:
I've got MySQL running as a service on my Windows 2000 box. And I can work with it using a command window (DOS box). I used the default install of MySQL and here's what status says: mysql>...
2
by: jon morgan | last post by:
Hi, I need to debug my app. under Windows 98. Although VS.net can't be installed it I have been able to install both Framework 1.1 and the SDK. Can I debug the app. in VS.net remotely from an...
0
by: Macadair | last post by:
I develop mid-range multi-user applications for a large site. Currently Win98 and Office97 are the standards used however we are slowly moving to WinXP. Due to the site upgrade cost, we are...
14
by: David W. Fenton | last post by:
I'm no stranger to this error message, but I have a client who is experiencing it, but, fortunately, without any actual data corruption, and it's driving them made. Their inability to grasp that...
4
by: Wasi Rehman | last post by:
hi friends, I have one webservice which i want to run on win98 system because some reference in that webservice only run in win98, and my ASP.net application is on win2000 pro. I want to call that...
1
by: Erico Gomes | last post by:
I have an application vb6.0 running in win98 that have the command "print #1" used to print directly to the printer and return me an error related "Disk Full" . What may be occurs?
2
by: David Sabo | last post by:
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...
1
by: Jean-Marc St-Hilaire | last post by:
I need to access Windows API NetShareEnum. It is working fine in the post Win98 version but the Win98 function is returning me error number 87 (Invalid parameters) Whats I am doing wrong ? ...
9
by: jim-on-linux | last post by:
This is the situation I'm in. I've built a single file utility using py2exe. I zip the dist directory and send it to the client. For clients that use win95, win98 machines, They unpack the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.