Viewing a StiReportWeb in a webForm

Stimulsoft Reports.NET discussion
Post Reply
mmepinto
Posts: 3
Joined: Fri Dec 01, 2006 9:26 am
Location: France

Viewing a StiReportWeb in a webForm

Post by mmepinto »

Hello,

I am evaluating StimulReport for ASP.NET 2.0.

Please, could you tell me where I can find documentation about your StiReportWeb control ?
I have created a report with it but I cannot view it using a StiWebViewer as per the following message:

Exception Details: System.FormatException: Invalid character in a Base-64 string.

Source Error:


Line 21: if (StiWebViewer1.IsImageRequest) return;
Line 22: {
Line 23: StiWebViewer1.Report= StiReportWeb1.GetReport();
Line 24: }
Line 25: }

and same error for:

Line 25: StiReport report = StiReportWeb1.GetReport();
Line 26: report.Compile();
Line 27: StiWebViewer1.Report = report;

Please, could you advise me of how to display a StireportWeb on a web form using Visual Studio 2005 if there is no documentation about StiReportWeb.


Thank you


Sincerely

Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Viewing a StiReportWeb in a webForm

Post by Vital »

Please save your report from report designer to mrt file and send it to support [at] stimulsoft [dot] com.

Thank you.
mmepinto
Posts: 3
Joined: Fri Dec 01, 2006 9:26 am
Location: France

Viewing a StiReportWeb in a webForm

Post by mmepinto »

Thank you for your reply. There is no more error since I recreated the report. This test is successful using a SQL server datasource; now I would like to use a custom business object class, how can I load the business object datasource into my report using a StiReportWeb control?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Viewing a StiReportWeb in a webForm

Post by Edward »

mmepinto wrote:Thank you for your reply. There is no more error since I recreated the report. This test is successful using a SQL server datasource; now I would like to use a custom business object class, how can I load the business object datasource into my report using a StiReportWeb control?
Business objects exist only in runtime. But the designer in ASP.Net cannot be called in runtime.
Therefore, it is necessary to create the schema of data of business objects. Then this schema will be registered in the report and it is will be possible for the report to be designed.

When working with business objects in run-time mode in asp.net the following steps are used:
1. Get the DataSet object from business objects.
Use the StiEnumerableToDataSet class for this task.
2. Save the Dataset xml -scheme.
Use the DataSet WriteXmlSchema method for this.
3. Import the DataSet xml–scheme using the Actions->Import XML Schema... command in the designer
4. Design the report template.
5. In the runtime mode register business objects using the RegData method of a report.

Thank you.
mmepinto
Posts: 3
Joined: Fri Dec 01, 2006 9:26 am
Location: France

Viewing a StiReportWeb in a webForm

Post by mmepinto »

Thank you for this information.

Regards
Post Reply