Excel Export - Include Embedded Print Format

Description

Test Case:

  1. Open Sales Order window

  2. Print a sales order with lines

  3. Export as Excel. Note that only order header is exported.

Environment

None

Activity

Show:
Carlos Ruiz
June 26, 2019, 2:52 PM
Jonatas Silvestrini
July 8, 2019, 12:15 PM
Edited

Performing tests occurred an NPE when exporting a report in XLS.

When analyzing, we have seen that in the method createXLS in ReportEngine class, when instantiating the PrintDataExcelExport class, the constructor method requests a Map named childPrintFormatDetails obtained by the m_layout object. However, this object can be null, which causes NPE to try to access a method on a null object. Because there is a handling in the PrintDataExcelExport class if the childPrintFormatDetails is null, we treat it according to the patch sent. What do you think?

Test case:

1 - Open Sales Order
2 - Click on Report
3 - Export to XLS
4 - Nothing happens. NPE is on console

 

Assignee

Heng Sin Low

Reporter

Heng Sin Low

Labels

None

Tested By

None

Components

Fix versions

Priority

Minor
Configure