Page 1 of 1

Regarding report rendering from database

Posted: Tue Jul 19, 2011 3:15 am
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

Regarding report rendering from database

Posted: Wed Jul 20, 2011 2:22 am
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.