Posted 27 November 2017, 9:59 pm EST
Hello,
Is there a way to load saved flexpivot file (.olapx) through code, so i can give flexpivot a default view.
Thanks
Richard
Forums Home / ComponentOne / WinForms Edition
Posted by: grapecity on 27 November 2017, 9:59 pm EST
Posted 27 November 2017, 9:59 pm EST
Hello,
Is there a way to load saved flexpivot file (.olapx) through code, so i can give flexpivot a default view.
Thanks
Richard
Posted 28 November 2017, 5:09 am EST
Hi Richard!
Yes, for this, you can use ReadXml method like this:
c1FlexPivotPage.ReadXml(*.olapx file path here*);
Regards,
Meenakshi
Posted 28 November 2017, 7:36 am EST
Hi Meenakshi ,
Thank you very much for quick response. It works!
Richard
Posted 28 November 2017, 7:57 am EST
Hi Meenaskshi,
Additioanal query, is there a way to give a default file name when the user click the “Save” button so I can pass on the my default file name.
Thanks
Richard
Posted 29 November 2017, 3:11 am EST
Hi Richard!
It won’t be possible to achieve the desired behaviour with ‘Save’ button on FlexPivot’s toolbar. Please let me know if I can help you with some other issue.
Regards,
Meenakshi
Posted 4 December 2017, 10:01 pm EST
Meenakshi,
Thanks for the reply. It would have been better if there are two buttons, “Save” and “Save As”.
Thanks again.
Richard.
Posted 5 December 2017, 5:16 am EST
Hi Richard!
This matter is in discussion with the team internally. I will come back to you as soon as there is any update on this.
Regards,
Meenakshi
Posted 7 December 2017, 12:48 am EST
Hi!
Please find the workaround in the attached sample. It should serve the purpose.
Regards,
Meenakshi
Posted 12 December 2017, 6:05 am EST
Hi Meenkashi,
I tried your suggested solution and it works!!! The user now can modify the view to his liking and automatically loaded the next time around.
Many thanks.
Richard