LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PrintTextFile hangup

When I call PrintTextFile LabWindows/CVI hangs up and can only recover by Terminate Application. I'm calling windows PrintDlg subroutine before that but all variables set properly. Any idea?
0 Kudos
Message 1 of 4
(3,408 Views)
Does this problem happens only with PrintTextFile or with other printing functions like for example PrintPanel?

I passed a lot of trouble some years ago for a new printer driver not following GDI standards (on wich CVI rely for printing). In my case it was a known problem due the printer driver and moving back to an older one solved my problem until I switched to CVI 6.0.

Have you tried with a different printer?


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,408 Views)
The problem is the same with other printer drivers. It's interesting that the PrintTextBuffer works okay if I do NOT call the Windows SDK PrintDlg redirecting printing to my individual printer device settings.

Did CVI 6.0 solve the problem?
0 Kudos
Message 3 of 4
(3,408 Views)
Hi,

have you tested the PrintDlgEx(...) function? after Windows 2000 PrintDlg() was replaced with PrintDlgEx(). Since the problem is introduced when you call this function I would focus on this part before playing with the driver.

You can also get the CVI 7.0 evaluation version to test it in a newer version. You can find it at http://www.ni.com/cvi

I hope this helps.

Juan Carlos
N.I.
0 Kudos
Message 4 of 4
(3,408 Views)