doURLPrint(config), call out the printing tool, print the report, use get to pass the parameter, the config parameter is an object object. Format such as:
Parameter Description
Parameter | Instruction |
---|---|
printurl | The application address and service of the template that needs to be printed, such as"http://localhost:8075/webroot/decision/view/report" Empty is allowed. If empty, the current servlet address is used. If cross domain is required, this parameter cannot be empty |
isPopUp | Whether to pop up the settings window
|
data | List of templates to print and their parameters, JSON array
For example: Two templates: [{reportlet: 'name1.cpt', a: 'a1'}, {reportlet: 'name2.cpt', b: 'b1'}] Leaflet template: [{reportlet: 'name.cpt', a: 'a1', b: 'b1'}] |
printType | print type
|
The following parameters are zero-client printing parameters, which only take effect when printType is 0 | |
ieQuietPrint | IE silent printing settings
|
The following parameters are locally printed parameters, which only take effect when printType is 1 | |
printerName | Printer name, string, such as 'Microsoft Print to PDF' |
pageType | print page type
|
pageIndex | Page number range, valid when pageType is 2, only positive integer range is supported, such as '1-3' |
copy | number of copies, number |
needSelectSheet | Whether to print the specified Sheet page, if not, the default is false
|
sheetIndex | Sheet page range, only supports positive integers or positive integer ranges Positive integer example: 2 Example of positive integer range: '7-10' |
Example
Print the report GettingStartedEN.cpt under the local server http://localhost:8075/webroot/decision/view/report, the printing method is local printing, and print pages 1-3 when the parameters are East Chinaand North China respectively. 3 copies are printed.