Command Line Options List

You can activate Viewer Light and display DocuWorks files using a command from the command prompt or a user program. You can also print DocuWorks documents and DocuWorks binders with a command.
By specifying command options, you can also specify a view or a printer.

Command line format

The format of the command (dwvlt.exe) used in Viewer Light is as follows:
 
dwvlt.exe DocuWorks_file_name [/npage_number] [/i"document_name_in_binder"]
[/mzoom_ratio] [/mw] [/mh] [/mp]
[/p] [/ptprinter_name driver_name port_name]
 
  • Use lower case characters for the command, options, and text strings.
  • Change the path of "dwvlt.exe" according to your environment.
  • For "DocuWorks_file_name", specify the full path to the DocuWorks file you want to display or print. The path cannot exceed 255 characters. A DocuWorks container cannot be specified as the object to be printed.

Description of options

The following table describes each option:
Options Description
/npage_number
Specify the page number you want to display.
Do not enter a space between /n and the page number.
  • When the /i option is also specified, this number refers to the page number of a document contained in a binder.
  • This option is ignored if you specify the /p or /pt option.
/i"document_name_in_binder"
If you specified a binder name as the DocuWorks file name, specify the name of the document in the binder that you want to display.
Do not enter a space between /i and the document name. Enclose the document name with double quotation marks (""). The document name cannot exceed 255 characters.
  • This option is ignored if you specify the /p or /pt option.
/mzoom_ratio
Specify the zoom ratio.
Do not enter a space between /m and the value.
  • The range of value you can specify is from 10 to 1,600. Specifying a value outside this range will display the DocuWorks file in 100% ratio.
/mw
Displays the DocuWorks file to fit to the window width.
/mh
Displays the DocuWorks file to fit to the window height.
/mp
Displays the DocuWorks file to fit to the entire page.
/p
Prints the DocuWorks file with the "default printer".
  • If you specify this option, the /n, /i, /m, /mw, /mh, and /mp options are ignored.
/pt printer_name driver_name port_name
Specify the printer to print the DocuWorks file.
Enter spaces between /pt, the printer name, the driver name, and the port name.
  • If you specify this option, the /n, /i, /m, /mw, /mh, and /mp options are ignored.

Example of use

The examples below show the usage of this command.
If the file name contains a space such as "C:\Program Files (x86)\FUJIFILM\DocuWorks\bin\dwvlt.exe", enclose the name with double quotations (" ").
  • Displaying the 25th page of the document named "Chapter 2" in the binder called "User Guide"
    "C:\Program Files (x86)\FUJIFILM\DocuWorks\bin\dwvlt.exe" "C:\User Guide.xbd" /i"Chapter 2" /n25
  • Printing the document named "proposal" with the default printer
    "C:\Program Files (x86)\FUJIFILM\DocuWorks\bin\dwvlt.exe" "C:\proposal.xdw" /p
  • Printing the document named "proposal" with the printer named "Printer Name" using the driver named "Driver1" and connected to "Port1"
    "C:\Program Files (x86)\FUJIFILM\DocuWorks\bin\dwvlt.exe" "C:\proposal.xdw" /pt "Printer Name" Driver1 Port1