Regarding report rendering from database

Stimulsoft Reports.WEB discussion
Post Reply
AbdulAleem
Posts: 37
Joined: Tue Sep 15, 2009 9:42 am
Location: jeddah

Regarding report rendering from database

Post by AbdulAleem »

Hi

I have stored the report.mrt file in database in string format using asp.net and c#.

How can I render it back to .mrt file,Please provide the sample code.

Thanks,
Abdul Aleem
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Regarding report rendering from database

Post by Ivan »

Hello,

You can save your reports to a string or load them from a string.

Code: Select all

//Save Report as a string
StiReport myReport = new StiReport();
/* ... Load or design a report here ... */
string reportString = myReport.SaveToString();

//Load a Report from a string
StiReport myReport2 = new StiReport();
myReport.LoadFromString(reportString);
myReport.Save(filePath);
Thank you.
Post Reply