RE: Text Formatting of Excel cells to export data through code
Hi Will,
Thanks for your response.
Yes the field mentioned is a String field in AX. Let's say the field has data like 000123, 000011, XYZ etc.
I have below concerns:
1. Formatting the cell to TEXT in excel after data is exported won't bring back the 0's.
2. I have referred to the link you shared above. It mainly focuses on number formatting and other type conversions used to extract the data needed to file.
In my case, I don't need any type conversion as the field is STRING.
Please help me if you know how to format the column to TEXT by x++ code before extracting data?
xlsWorkSheet.cells().range(strFmt("H%1:H%1",row)).numberFormat("00000000000000");
Can the above be somehow applied to TEXT formatting? I tried but to no avail.
Thanks