52
©2002-2016, Ido Millet, ido@MilletSoftware.com
Page 78
Arguments to Specify Printer Bursting Destination
If you need each group level 1 of your report to be printed separately (e.g., to a fax printer driver
or for automatic stapling), you must have the Export and Burst options turned on in the Visual
CUT saved settings for that report. Then, use the following command line argument structure:
"C:\Program Files (x86)\Visual CUT\Visual CUT.exe"
-e
"C:\Program Files\Visual
CUT\Visual_CUT.rpt" "Parm1:1998" "Printer_Burst:\\pc10\hp04"
Note that the syntax is constructed as the word "Printer_Burst:" followed by the printer name.
If instead of "Printer_Burst:
…
" you use "Printer_Burst_Only:
….
", Visual CUT will skip the
export bursting processing and would just burst the report to the printer.
If you use "Default" as the printer name, the report gets printed to its default destination.
The printer name argument is dynamic (field/formula names are replaced with values from the
report). This means you can create a formula that returns a different printer name for different
group values, place that formula (suppressed) in GH1 or GF1, embed that formula as the printer
name argument, and sent the printouts for different groups to different printers. For example:
"C:\Program Files (x86)\Visual CUT 11\Visual CUT.exe"
-e
"C:\Program Files\Visual
CUT\Visual_CUT.rpt" "Parm1:1998" "Printer_Burst_Only:{@Group_Printer_Name}"
Specifying Number of Copies
To control the number of printed copies, you can use a "Print_Copies" argument. The syntax is
constructed as the word “
Print_Copies
”, followed by a colon and the number of desired copies.
For example: "
Print_Copies
:3"
Setting Custom Text for each Print Copy
When printing directly to a printer (not via PDF_Print), each print copy can have custom text
(such as 'Copy 1 of 2', 'Copy 2 of 2'). Simply place a formula called {@Print_Copy_Template}
on the report canvas. For each printed copy, Visual CUT would first update the text in that
formula by replacing [[N]] with the copy number and [[M]] with the total number of copies.
For example, "Copy [[N]] of [[M]]" would become 'Copy 1 of 3', 'Copy 2 of 3'
…
See
demo image
.
Visual CUT would also:
a) Replace references to recognized fields/formulas with their dynamic values.
For example "Copy [[N]] of {@G1_Count}"
b) Replace [[{StartCount}+N]] with the dynamic value of a {@StartCount} formula + copy
number. Note: the token does not include the @ symbol in the formula name.
Note: you can dynamically control the number of copies by referring to a Crystal formula/field in
a "Print_Copies" argument (e.g. "Print_Copies:{OrderDetail.Quantity}" or by simply dragging &
dropping the field/formula into the Copies option (see image).