We have datawindow designed to display a report.
Objective: We want to export the data in the datawindow to an Excel Sheet.
Code to achieve the above objective is:
dw_1.SaveAsFormattedText(LocationToBeSavedAt)
Problem: Data gets displayed in the excel sheet but the alignment gets incorrect.
Powerbuilder version: Powerbuilder 2017 R3 Build 1858.
This design worked fine with PowerBuilder 12.5 Classic.
For Example, the datawindow is designed as following table:
Header1 | Header2 | Header3 |
SubHeader1_1|SubHeader1_2 | SubHeader2_1|SubHeader2_2 | SubHeader3_1|SubHeader3_2 |
But when the values get stored in the excel sheet, it displays as follows:
Header1 | Header2 | Header3 |
|
|
|
SubHeader1_1 | SubHeader1_2 | SubHeader2_1 | SubHeader2_2 | SubHeader3_1 | SubHeader3_2 |