LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Printer Error

I have created a VI for printing HTML reports using ActiveX.For the first time after reboot i this vi prints the report, but it gives this error next time i run it. I don't understand why? Can you please let me know how to get over it. Please see the attached VI.
Thanx


Error -2147467259 occurred at Unspecified error
in PrintReport.vi.

Possible reasons:

Windows GetCommError: The hex value of this code is x4005.

Interpret it bit-wise as follows: x4000: serial port VI error; x0001: receiving queue overflowed or character was received after end-of-file character; x0002: character was lost by overwrite; x0004: parity error; x0008: framing error; x0010: break condition; x0020: CTS timeout; x0040: DSR timeout; x0080: RLSD timeout; x0100: t
ransmission queue was full when new character arrived; x0200: parallel device timeout; x0400: parallel device I/O error; x0800: parallel device not selected; x1000: parallel device out of paper; x8000: requested mode is not supported or the idComDev parameter is invalid.
0 Kudos
Message 1 of 4
(3,074 Views)
Do you get this problem if you try to print another page? Also where in your code does the error occur? Run the VI in highlight execution mode to see this. What OS are you using and what version of IE? I ran the VI three times with no problems.
0 Kudos
Message 2 of 4
(3,074 Views)
Hi Jeremy,
Sometimes it works fine, sometimes it gives this error.I'm using Windows XP and IE6.0. Navigate2 method generates this error. Is it because i'm trying to print a file on local machine or IE is not open?

Thanx
atu
0 Kudos
Message 3 of 4
(3,074 Views)
The program launches IE although it is not made visible. I am not sure what could be causing the error. You might try putting a delay before the naviagte or put the method in a loop that will continue to run the mehtod until the error is not present. If you use this method, you will probably want to have the loop terminate after n seconds and monitor the error code. If it is the error you are getting, you interate. If it is a different error code, you terminate.
0 Kudos
Message 4 of 4
(3,074 Views)