LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

changing printer settings on Win2000

Hi,
Thanks for this useful service!
I have a test program written in CVI5.0 and it generates a print out. Initially it was running on a Win98 PC and the program could correctly set the printing font and size. After I upgraded to Win2000 the printer started to type using an ugly (not monospaced) font and I can not change it within my program. However, if I open the saved test log (which is a .txt file) using Notepad, set the font of Notepad to Courier and print it using File-Print menu, everything goes fine and I get a neat printout. I am using SetPrintAttribute function in my program.

Do you have any suggestions?

Regards,
0 Kudos
Message 1 of 4
(3,312 Views)
Hi erenbalci,

Since each operating system has its own set of printer drivers, it is possible that the newest driver you have is implementing a newer version of the GDI API. However I'm not entirely sure this is the reason why you're not able to change the font programmatically. Are you able to print a source file from within CVI? When the print dialog window comes up, can you change the font?
And finally, what do you mean by "I cannot change [the font] within my program"? Do you get an error?
If possible, can you post some simple code that shows how you're configuring the font and size properties?

Thanks,
Azucena
0 Kudos
Message 2 of 4
(3,312 Views)
Hi Azucena,
I found the problem and corrected it. It was my code, not the OS.
Thanks for your interest!
0 Kudos
Message 3 of 4
(3,312 Views)
Sure thing. Glad to hear you got it fixed!
0 Kudos
Message 4 of 4
(3,312 Views)