LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

printer dialog

I'm writing a program that needs to print various reports, some of which are generated into text buffers. PrintControl() brings up the printer selection box before printing,  PrintTextBuffer() and PrintTextFile()  do not. Here is a routine that will bring up the Windows printer selection box, copy some initial parameters into it from the current LabWindows/CVI printer settings, allow the user to select the printer, and then load the results back into the active printer settings to that PrintTextBuffer() and PrintTextFile() will print to the selected printer with the selected paper orientation. 

 

You need to have the full SDK installed to use this. For further information, look in the microsoft online documentation:

http://technet.microsoft.com/en-us/library/ms646940%28v=VS.85%29.aspx

 

0 Kudos
Message 1 of 6
(3,480 Views)

Hi pblase,

 

Maybe you'd be interested in uploading your code to the NI Developer Community? Also, which SDK are you referring to?

 

Cheers,

KyleP
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,455 Views)

Ah, pardon me. I meant to hyperlink the NI Developer Community for you. Anyway...by posting there you should be able to get more feedback and also make it easier for others to find your program. Robot Happy

 

Cheers,

KyleP
Applications Engineer
National Instruments
0 Kudos
Message 3 of 6
(3,454 Views)

Code was attached, but I can do it again. I'm using LabWindows/CVI 2010.

0 Kudos
Message 4 of 6
(3,446 Views)

I just want to double check that you don't have any specific questions about your program. Your initial post led me to believe that you were posting code for everyone else's benefit. Let us know if you need help with something specific.

 

Cheers,

KyleP
Applications Engineer
National Instruments
0 Kudos
Message 5 of 6
(3,438 Views)

No questions, and yes it's for people to use.

Thanks

Paul

0 Kudos
Message 6 of 6
(3,435 Views)