annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

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
Messaggio 1 di 5
3.163Visualizzazioni

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
Messaggio 2 di 5
3.156Visualizzazioni
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
Messaggio 3 di 5
3.149Visualizzazioni
How about a list to select the printer from. Similiar to the previous version
0 Kudos
Messaggio 4 di 5
3.144Visualizzazioni
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 Strizza l'occhio
0 Kudos
Messaggio 5 di 5
3.132Visualizzazioni