Ouvrir la rubrique avec les liens de navigation
Automating Print Portal |
You can automate certain print actions for Print Portal by adding Print Document dialog query parameters directly to your Print Portal URL address in your browser window. The URL scheme to print a document is as follows:
http://
servername/BarTender/PrintPortal/Print/[RootFolderName]/[RelativePathToDocument]?parameters
You must know ahead of time the base URL for the desired document, and if the root folder name or path contains special characters, they must be URL encoded.
The available query parameters are as follows:
Copies (integer): Specifies the number of identical copies to print for the doc
ument, if the document supports changing the number of copies.
SerialNumbers (integer): Specifies the number of serialized items to print, if the document supports serialization.
Printer (string): Specifies the printer you want to print the document to. This parameter value must exactly match a printer name for a printer already configured for use with Print Portal. You can view a list of these printers on the Printers property page. This parameter is case sensitive.
Task (string): Specifies whether the print job is immediately initiated or if the page opens in Print Preview for the document. Valid values for this query string are "Print" and "PrintPreview". If the selected printer is a client printer, the requested task will complete after the client print module has successfully loaded. The behavior is the same as if you had manually clicked the Print or Print Preview button, so if any data entry is required, the data entry form will open first.
ReturnAfterCompletion (boolean): This parameter specifies Print Portal's behavior after a specified task ("Print" or "PrintPreview") is completed. When set to true, Print Portal's default behavior is specified. For example, after a successful print task (including data entry if appropriate), Print Portal will return to its browser page. When set to false, the Print Document dialog remains open after the successful print task.
<Data Entry Control Name>=<value> (string): Sets the default value of a data entry control. This parameter is case sensitive.
The following URL specifies that you want 2 serialized items to print for a document named "serial.btw" located at the base level of the "My Files" root folder.
http://
localhost/BarTender/PrintPortal/Print/My%20Files/serial.btw?SerialNumbers=2
The following URL specifies that you want 5 identical copies printed for a document named "AIAG_PT1.btw" located in "New Folder/AIAG" of the root folder "Labels". It specifies that the copies will be printed to the "Easycoder IP" printer.
http://
localhost/BarTender/PrintPortal/Print/Labels/New%20Folder/AIAG/AIAG_PT1.BTW?Copies=5&Printer=Easycoder%20IP
This URL is the same as in the example above, except that it automatically prints (or shows the data entry form if required) when the client print module has loaded.
http://
localhost/BarTender/PrintPortal/Print/Labels/New%20Folder/AIAG/AIAG_PT1.BTW?Copies=5&Printer=Easycoder%20IP&Task=Print
This is the same as above, except that it automatically displays a print preview (or shows the data entry form if required) when the client print module has loaded.
http://
localhost/BarTender/PrintPortal/Print/Labels/New%20Folder/AIAG/AIAG_PT1.BTW?Copies=5&Printer=Easycoder%20IP&Task=PrintPreview
This URL sets the default value of the "Text Input Box 1" datas entry control to a value of "Sample Text".
http://
localhost/BarTender/PrintPortal/Print/My%20Files/serial.btw?Text%20Input%20Box%201=Sample%20Text