Custom Print Format is not working with document print

Description

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.

Environment

None

Activity

Show:
Pritesh Shah
April 14, 2016, 8:05 AM

I have added on resolution as below, below the re.setWindowNo(WindowNo)
re.getLayout()

Please verify the issue and resolution.

Carlos Ruiz
May 9, 2016, 4:12 AM

Thanks , can you please provide a patch? And if possible a class for the test case?

Assignee

Carlos Ruiz

Reporter

Pritesh Shah

Labels

None

Tested By

None

Affects versions

Priority

Major
Configure