Issue with Report Flash Viewer

Stimulsoft Reports.WEB discussion
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Issue with Report Flash Viewer

Post by HighAley »

Hello.

All works right. The problem is in next expression:

Code: Select all

(string)this["CATID"]
It's impossible to convert type 'int' to 'string' this way.
So the processing of this text component stops on this error.
If you remove this code from text box of put each string in the separate text box. You will see the result.

Thank you.
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

Re: Issue with Report Flash Viewer

Post by jay@bplogix.com »

I am still having trouble with the newer versions of the report engine with drill down. I have attached your sample WebDemo project with minor customizaitons to show the problem I am having.

The sample report is simple ... it just has a databand to show two columns from a database. The first column uses "interaction" to launch the second page. The second page when using the Preview for the report designer shows the drill down parameter correctly. But when I run the report with the flash viewer, the drill down parameter is empty. This used to work in older versions of Stimulsoft.

I am using the StiWebViewerFx1_GetDataSet for the flash viewer and StiWebDesigner1_GetPreviewDataSet for the flash designer to add the single SQL connection. To run the sample, simply point to any SQL table that has a column named Col1 and Col2, and modify the StiSqlDatabase connection string for your database.

Perhaps I am doing things in the wrong order in StiWebViewerFx1_GetDataSet (Report.Dictionary.Synchronize, sti_src.FillColumns) ?

Thanks,
Jay
Attachments
WebDemo.zip
(6.56 MiB) Downloaded 210 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Issue with Report Flash Viewer

Post by HighAley »

Hello.

There is a compiled report is the GetDataSet event. And it's impossible to change data sources there.
If you want to make any changes in the report you should do it in the GetReport event. For example,

Code: Select all

protected void StiWebViewerFx1_GetReport(object sender, StiWebViewerFx.StiGetReportEventArgs e)
{
StiReport Report = new StiReport();
Report.Load(appDirectory + "\\Reports\\report.mrt");

...
//your code
...

e.Report = Report;
}
Thank you.
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

Re: Issue with Report Flash Viewer

Post by jay@bplogix.com »

Thanks, that did the trick.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Issue with Report Flash Viewer

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you will need any additional help.

Thank you.
Post Reply