473,385 Members | 1,872 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,385 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 20 '05 #1
2 1255
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 20 '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 20 '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...
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...
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?
12
by: ML | last post by:
I am trying to test a vb.net app in VirtualPC on a Win98 install. The app runs but I get "Generic GDI+" errors on any form with a groupbox. Does anyone know what this issue is or how to fix it? ...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.