Setup a printer on a table

Add on the table the EDT : PrintJobSettingsPacked.

In the form, add a new button which call this code (in clicked method) (this example is based on EmplTable)

void clicked()
{
    PrintJobSettings    printJobSettings;
    boolean             ok              = true;
    EmplTable           emplTableLoc    = EmplTable::find(EmplTable.EmplId, true);  
    ;

    super();

    printJobSettings            = new PrintJobSettings(emplTableLoc.MyPrinterLabel); 
    // open the form standard for printing
    ok                          = printJobSettings.printerSettings(formStr(SysPrintForm)); 

    if (ok) // if close ok
    {
        ttsBegin;
        // return the printjobsettings from the class
        emplTableLoc.MyPrinterLabel    = printJobSettings.packPrintJobSettings(); 
        emplTableLoc.update();
        ttsCommit;
    }

    // Refresh the form data;
    EmplTable_ds.reread();
    EmplTable_ds.refresh();
}