I have one scenario where I need to create custom new print format for Invoice. I have one process in which calls ReportCtl.startDocumentPrint (int type, MPrintFormat customPrintFormat, int Record_ID, IProcessUI parent, int WindowNo,
boolean IsDirectPrint, String printerName)
I have passed my custom print format in above method.
Now what happens, ReportEngine object will be created and in internally it creates the object of PrintData for the default print format. Now when the custom Print Format is set, it does not reloads printData according to my print format because there is condition layout!=null. There is no layout prepared by that time, so printData is not refreshed.
I have added on resolution as below, below the re.setWindowNo(WindowNo)
Please verify the issue and resolution.
Thanks , can you please provide a patch? And if possible a class for the test case?