LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SetPrintAttribute with ATTR_PRINT_FONT_NAME always returns 0

LabWindows/CVI 5.5.1, Windows NT 4.0 SP 6A.

Regardless of what string I put in the 'Attribute Value' field of the SetPrintAttribute with ATTR_PRINT_FONT_NAME function call, it returns 0 (Success). How do I know that I have chosen a valid font? My application runs on several platforms and they each have a different set of fonts. I want my application to loop through my set of font names until it finds one that is valid on that platform. However, SetPrintAttribute always returns success and exits on the first time through my loop.

Test this by using an invalid font name like, "AAAAA". My next line of code calls the PrintTextFile function.
0 Kudos
Message 1 of 1
(2,487 Views)