we all know that printing is available from all forms with a data source through the Auto Report.
If a special report has been created to support general printing from the form, implement it on the form’s user interface.
To do this we need to Override the standard print method on the form. The report prints when the Print icon is activated. Please note: An explicit Print button should not be added to the form.
If (in rare cases) a Print button is needed, implement it by using a Print CommandButton control.
Implement the call to the report by using its menu item (depending on the functionality needed) as shown in the following example.
void print()
{
;
new MenuFunction(menuitemoutputstr(Cust),MenuItemType::Output).run();
}
Reports with more specialized functionality should be added to the form by using menu item buttons.
If a special report has been created to support general printing from the form, implement it on the form’s user interface.
To do this we need to Override the standard print method on the form. The report prints when the Print icon is activated. Please note: An explicit Print button should not be added to the form.
If (in rare cases) a Print button is needed, implement it by using a Print CommandButton control.
Implement the call to the report by using its menu item (depending on the functionality needed) as shown in the following example.
void print()
{
;
new MenuFunction(menuitemoutputstr(Cust),MenuItemType::Output).run();
}
Reports with more specialized functionality should be added to the form by using menu item buttons.