Page 1 of 1
Get ReportSource string from mrt file
Posted: Fri Oct 02, 2015 7:23 am
by mehdi13th
Hi,
Is it possible to get reportsource string for stiReport from mrt file in stimulsoft?
Or is it possible to load a report from reportSource string?
Re: Get ReportSource string from mrt file
Posted: Fri Oct 02, 2015 7:34 am
by Alex K.
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
Re: Get ReportSource string from mrt file
Posted: Fri Oct 02, 2015 7:45 am
by mehdi13th
stiReport has a property named ReportSource of type string.
I wanna know how can I set this property?
I mean is it possible to have whole report in string format?
Thank you.
Re: Get ReportSource string from mrt file
Posted: Fri Oct 02, 2015 10:38 am
by HighAley
Hello.
You could save the report template as string with SaveToString() method.
The ReportSource property is for internal use. You should not use it.
Thank you.
Re: Get ReportSource string from mrt file
Posted: Sat Oct 03, 2015 6:50 am
by mehdi13th
Hello,
I've seen some projects that they have used this property and embedded their reports in project resources. But the value of ReportSource string is different from what the SaveToString() returns. I wanna know how they did it?
Thank you.
Re: Get ReportSource string from mrt file
Posted: Mon Oct 05, 2015 6:57 am
by HighAley
Hello.
The Value of the ReportSource is set when you add a report on your form in Visual Studio.
Thank you.