The /P option is used on the command line to print the specified file(s). V will immediately start printing the file (in a minimized state), and will exit when it has finished. If you have V installed in the tray, a separate instance of V will be launched to do the printing.
The Print Dialog box will not appear when printing from the command line (unless the /PD option is specified). All the current print settings will be used for printing. Most of these settings can be overridden by specifying them on the command line. The following command line options are available:
If one of the above 3 options is used, the /P option is implied and does not need to be specified.
|/Font:"Font Name",size||eg, /Font:"Courier New",10|
|/Printer:"Printer Name"||eg, Printer:"HP LaserJet III"|
|/AM:0.5||Set ALL margins to 0.5 inches|
|/Header:"Header Text"||/Header:"%f;;Page %p"|
/From:2 /To:3 Print From Page 2 to Page 3
/L1:1 /L2:200 Print From Line 1 to Line 200
|/Pagelen:60||Override Page Length|
|/Wrap||Wrap Long Lines|
|/Wrappage||Wraps long lines onto a new page instead of onto a new line|
|/EOL||Print End of Line|
|/PLN||Print Line Numbers|
|/IFFP||Ignore Form Feeds|
|/ODD||Only print odd numbered pages|
|/EVEN||Only print even numbered pages|
|/PX||Use Text Only printing|
|/PB||Use Raw/Binary printing|
|/PGB||Enables Greenbar printing|
|/Profile:"Profile Name"||Use the settings stored in the specified printer profile|
You may also specify the /PD option which will cause the Print Dialog box to be displayed, allowing the user to override any print options.
If your printer supports duplexing (double sided printing), you may also specify one of the following options:
/dups Enable duplexing with short edge binding
/dupl Enable duplexing with long edge binding
If you do not specify a print setting, the current (most recent) setting will be used. To disable a setting, prefix the corresponding option with NO.
For example, if the default setting was to print a Header, you would have to specify the /NOHEADER option to disable the header. You can also use, NOFOOTER, NO2UP, NOWRAP, NOEOL, NOPLN and NOPAGELEN.
When the /P option is used (or implied), V will immediately start to print the file. However, if you would like the user to be able to view the file before it is printed, you need to specify the /NOP option. V will retain the command line parameters and use them when the user decides to print the file.
The /PAGELIMIT option is used to specify the maximum number of pages that can be printed. This can be used to prevent users from accidentally printing the entire contents of very large files.
Case is not important (ie, /Font or /font can be used).
Make sure that there is no space before or after the ":" in each option, and no space before or after the comma separating the font name and font size.
The header text, printer name and font name should be enclosed in "quotes".
If not specified, the default margins will be used. However, if one margin is specified on the command line, they must ALL be specified. Any margin not specified will default to ZERO.