Registry COP Export / Commercial Invoice (sys-report-rcopexprtinvce)


Controls formatting, graphics and archiving on this pro-forma or export invoice.

Testing Your Registry Entries
The system does not verify the validity of registry entries. Be sure to test your registry entries after completing them to verify that they are functioning correctly.

Setting Values are Uppercase-Lowercase Sensitive:
The Setting Value is case-sensitive: be sure that you enter the value exactly as specified in the documentation. If the documentation specifies a value of true, do NOT enter True or TRUE.

Important Fields:

Registry Id:


Adjust the Number of Lines Per Page

This registry option enables you to adjust the number of lines per page on the body of the Client Order Invoice. It would be implemented if this report runs a little long (or a little short) on your printer.

The footer information on the COP invoice is not controlled by this entry.

The Setting Key/Setting Value of the Registry Entry must conform to one of the following formats:

This option conform to one of the following formats:

Setting Key: linesperpageadjustment Setting Value: +n

Setting Key: linesperpageadjustment Setting Value: -n

where n is replaced by the number of lines you wish to shorten (for example, -1) or lengthen the page (+2).

Extra Lines Option

Setting Key: ExtraLinesForView~orderitem Setting Value: n

This new functionality was implemented to correct a COP Export Invoice problem that occurred when 7 detail lines were printed and then the total lines were not hitting within the bitmap total box. The number of lines to correct this problem with typically range from 1 to 3, and will force the 7th line to the next page, resulting in the totals being positioned correctly.


Setting Key: linesperpageadjustment Setting Value: +3  (existing option for this report)

Setting Key: ExtraLinesForview~orderitem Setting Value: 2  (new option)


To include your logo on the report, see Report Graphics.

Include Message of the Day

Setting Key: motd# Setting Value: Message to Appear on Invoice

Where # is replaced by the line number of the message. Lines are to be printed in ascending order of their keys. Up to 6 lines (of 60 characters or less) may be printed.

The print area is shared with the rarely used proforma advice lines on the lower left-hand section of the page. MOTD lines will only by printed if there are no proforma advice lines to be printed.

Note than when doing an invoice reprint, the current MOTD, not the original MOTD will be printed.

Autosaving COP Export Invoices

This enhancement adds the auto-saving functionality to COP Export Invoices.  The following registry entries are required to implement this functionality.

Setting Key: autosavefilename Setting Value: name,^sectionkeyvalue^,^date^,^time^
You may use some or all of the parameters in this option. If more that one is used, parameters should be separated by commas.

If used, name should be replaced a short description of the report (ExportInvoice).

If used, the system will replace ^sectionkeyvalue^ with the corresponding invoice number stored in the report. Note that if you use this parameter you must also specify the autosavebysection option is set to true discussed below.

If used, the ^date^ and ^time^ parameters will be replaced by the system date and time when the report is run. These parameters effectively prevent the system from overwriting existing copies of the report. (as the date and time combination will serve to create a unique filename). If only the most recent version of a document is to be retained, the ^date^ and ^time^ parameters should not be used.

Setting Key: autosavebysection Setting Value: true
This option is used to save COP Invoices as individual files. autosavebysection=true should only be used in conjunction with the ^sectionkeyvalue^ parameter of the autosavefilename option discussed above.

Setting Key: autosave Setting Value: true

or Setting Key: autosavewhenprinted Setting: true
Autosave is implemented when you specify one of these options. If you specify the autosave=true option, the report will be saved when it appears on the screen. If you specify the autosavewhenprint=true option, the report will be saved when it is sent to the printer; this option is highly recommended.

Setting Key: autosavefiletype Setting Value: filetype

where filetype is replaced by the format in which you wish to save the report. If you do not include this entry, DBReport is selected. The following are recommended options:

 Value  Notes

 PDF  (Adobe Acrobat)

 DBReport (Requires Data-Basics report reader to view)

Setting Key: autosaveoverwrite Setting Value: true or false
If you specify the true option, the system will overwrite the most recent copy of a report file. Typically, this is the setting that you would use for invoices.

Setting Value: autosavedirectory Setting Value: path

where path is replaced by full path to the directory that you want your reports stored in. If you are specifying a url share path make sure that the directory below the ones that will be created is shared.