In order to bring you the best possible user experience, this site uses Javascript. If you are seeing this message, it is likely that the Javascript option in your browser is disabled. For optimal viewing of this site, please ensure that Javascript is enabled for your browser.
Login  |   On Demand  |   Home  |   qad.com




Defining Document Formats
Some programs let you specify alternative formats for printed documents in addition to the system-defined default formats. For example, an Italian customer may require a different sales order layout than a US customer. In that case, you can specify a predefined alternate format in the Form Code field of Sales Order Print (7.1.3).
You do not use a menu-level program to define alternate document formats. Instead, you must create a Progress program to generate them. Use the following steps to do this.
1
Create a Progress program to format the document as required.
2
Name the new program file appropriately so it can be located by the print program. The file name is typically created by removing the first two characters of the print program name and appending a two-character form code.
3
Modify the applicable print function to consider the new form code as valid.
Example: You create two new sales order formats, identified with form codes AA and 2. The program name for Sales Order Print is sosorp05.p and the default sales order layout is defined by sorp0501.p. Use program file sorp05AA.p to store sales order form code AA and program file sorp0502.p to store form code 2. Be sure to include the zero preceding theĀ 2. Then, modify sosorp05.p to define the two new formats as valid.