Regarding Save changes in the report in run time

Stimulsoft Reports.WEB discussion
Post Reply
m.issa
Posts: 27
Joined: Tue Sep 04, 2012 8:08 am

Regarding Save changes in the report in run time

Post by m.issa »

Hello

I am trying to save changes in the report after edit it in run time, by save the report as string, i am using this event:

protected void StiWebDesigner1_SaveReport(object sender, StiWebDesigner.StiSaveReportEventArgs e)

so this is my code:

Code: Select all

protected void StiWebDesigner1_SaveReport(object sender, StiWebDesigner.StiSaveReportEventArgs e)
 {
     string a = string.Empty;

     a = e.Report.SaveToString();
 }
But there is exception generated in this line ( a = e.Report.SaveToString(); ), and the error message is:

Unable to cast object of type 'System.String' to type 'Stimulsoft.Report.StiStyleCondition'.

Thank you
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Regarding Save changes in the report in run time

Post by Alex K. »

Hello,

Which version do you use?
Please check the last prerelease build.

Thank you.
m.issa
Posts: 27
Joined: Tue Sep 04, 2012 8:08 am

Re: Regarding Save changes in the report in run time

Post by m.issa »

Hello

I am using demo version 2012.1, i download it from the site of stimulsoft, with FX viewer.

Thank you
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Regarding Save changes in the report in run time

Post by HighAley »

Hello.

We have just release our next major version of all our products.
Please, download the latest release.

Thank you.
m.issa
Posts: 27
Joined: Tue Sep 04, 2012 8:08 am

Re: Regarding Save changes in the report in run time

Post by m.issa »

Dear Aleksey

i would like to tell you that i downloaded the latest version as you told me, now i can edit properly and the problem solved.

Thank you
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Regarding Save changes in the report in run time

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.
Post Reply