LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Select from a VI generated list of printers.

I am looking for a way to create a list within a VI which I can present to the user to select from.

For example, I want to give the user the ability to select any printer configured for the computer he is using.  Obviously this can change from computer to computer, so I do not want to hard wire in a list of printers to choose from.


Or is there something that I am overlooking in the existing Lab-View toolbox for selecting a printer?
0 Kudos
Message 1 of 5
(3,137 Views)

Here is a code snipit of what I did to allow a user to select a printer for printing a report.  It uses the Report Generation Toolkit for listing all available printers.  The list is displayed in an array of string indicators.  The user is then prompted to select a line number of the printer he wishes to use.  The dialog vi I use is a custom built vi.  It contains a numeric control and an OK button.  There is a loop to wait for the OK button.  When OK is pressed, the numeric control is output to a numeric indicator tied to a connector pane terminal.



Message Edited by tbob on 03-10-2008 01:06 PM
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 5
(3,130 Views)
The finished program will be used by staff that are not too computer saavy.  I was thinking that it would be good to have a cleaner selection process for the user (Ring, radio buttions, etc).  I just do not know how I can create a list of arbitrary length with arbitrary items that I can select from.
0 Kudos
Message 3 of 5
(3,123 Views)
How about a list to select the printer from. Similiar to the previous version
0 Kudos
Message 4 of 5
(3,118 Views)
It would be best to put a small wait statement inside that inner while loop so it doesn't consume 100% CPU resources waiting for the user to his a button.Smiley Wink
0 Kudos
Message 5 of 5
(3,106 Views)