When the following method is executed from within Developer it works fine, however when used with Servoy Client the print job fails after about 50 pages.
controller.recordIndex = 1;
for ( var i = 1 ; i <= controller.getMaxRecordIndex() ; i++ )
{
controller.recordIndex = i;
forms.Page1.controller.print(true,false);
if(utils.stringWordCount(attachment) > 0)
{
forms.Page2.controller.print(true,false);
}
}
controller.recordIndex = 1;
plugins.dialogs.showInfoDialog('Print Status','Print job completed!','OK');
Does anyone have any idea how to resolve this?
Dean