08-17-2005 10:10 AM
08-18-2005 02:47 AM
08-18-2005 03:51 PM
Donna,
In order to allow your end user to chose those values, you have 3 possibilities:
1. When you pass 1 as the last parameter to the PrintPanel function, CVI will display an options dialog. The user can select the printer from this dialog, and also click on the Properties button to then select the orientation and the number of copies.
2. If you don't want to expose the user to all the options that are in that dialog, you can enable the ATTR_SYSTEM_PRINT_DIALOG_ONLY print attribute. When you do so, the dialog that PrintPanel displays is the settings dialog for the default printer (the same dialog that comes up when you click on Properties from the CVI dialog). This will allow the user to select the orientation and number of copies, but not the printer.
3. You can create and display a custom panel that allows the user to specify all three of these options. Then you can read the user's choices, and programmatically configure CVI to use those settings, by setting the corresponding print attributes (look at the SetPrintAttribute documentation for information on the specific attributes to use).
Luis
NI
08-18-2005 04:07 PM
Luis,
Can I use the three possibilites that you described for the PrintTextFile command? I actually want to print a text file and not a panel.
Thanks,
Donna
08-19-2005 11:13 AM