Hi Team,
How do i set a pivot column as number format?
In the attached file, how do I make column Original Forecast Quantity as number format.
We are using Aspose 8.3.0
Thanks,
Sukesh
Hi Team,
Hi Sukesh,
Thanks for your posting, video file and using Aspose.Cells.
If you want to set Built-in Number format, then use PivotField.setNumber() method and if you want to set Custom Number format, then use PivotField.setNumberFormat() method.
Please see the following sample code. It sets the built-in number format i.e 4 to get the desired results as shown in your video. I have attached the output Excel file generated by the code for your reference.
Java
Hi Shakeel,
Hi Sukesh,
Thanks for your feedback and using Aspose.Cells.
It is good to know that your issue is resolved with the given code. Let us know if you encounter any other issue, we will be glad to look into it and help you further.