Automating Print Portal

You can automate certain print actions for Print Portal by adding Print Document dialog query parameters 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 the base URL for the document that you want, and if the root folder name or path contains special characters, they must be URL-encoded.

The following query parameters are available:

Sample URLs

The following URL specifies that you want two serialized items to be printed for a document that is named "serial.btw", which is 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 five identical copies to be printed for a document that is named "AIAG_PT1.btw", which is located in the "New Folder/AIAG" folder of the root folder "Labels". It specifies that the copies are printed to the "Easycoder IP" printer.

http://localhost/BarTender/PrintPortal/Print/Labels/New%20Folder/AIAG/AIAG_PT1.BTW?Copies=5&Printer=Easycoder%20IP

The following URL is the same as in the preceding example except that it is automatically printed (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

The following URL is the same as in the preceding example 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" data entry control to a value of "Sample Text".

http://localhost/BarTender/PrintPortal/Print/My%20Files/serial.btw?Text%20Input%20Box%201=Sample%20Text