C1.Win.FlexPivot

Posted by: porwal_kumudini on 24 December 2019, 5:36 am EST

    • Post Options:
    • Link

    Posted 24 December 2019, 5:36 am EST

    Hello,

    I am using C1.Win.FlexPivot Control Version 4.5.20193.393.

    I am loading view definition by code and calling SaveExcel()/SaveGrid() method which is not working when the form is not visible. I am using a thread for performing all these tasks, working properly when displaying the form and call the same process.

    Please find attached demo code

    Kumudini PorwalQuickStart.zip

  • Posted 26 December 2019, 1:03 am EST

    Hello,

    I am unable to replicate the error at my end. Please refer to the file generated at my end. Could you please share If I am missing something.

    Thanks,

    Mohit

    gridSave.zip

  • Posted 26 December 2019, 2:41 am EST

    Hello,

    Please check attached demo code, it will generate blank file when run from timer event. Its working proper when use button click.

  • Posted 26 December 2019, 8:00 am EST

    Hello,

    Please try with the following code in “SaveReport” method:

    
    this.Invoke((Action)(() =>
                {
                    Form1 frm = new Form1();
                    Control[] ctrls = frm.Controls.Find("_c1OlapPage", true);
                    if (ctrls.Length > 0)
                    {
                        if (ctrls.Length > 0)
                        {
                            var olapPage = ctrls[0] as C1FlexPivotPage;
                            olapPage.Refresh();
                            olapPage.Validate();
                            if (olapPage != null)
                            {
    
     
    
                                olapPage.Updated += OlapPage_Updated;
                                olapPage.Update();
                            }
                        }
                    }
                }));
    
    

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels