Get ReportSource string from mrt file

Stimulsoft Reports.NET discussion
Post Reply
mehdi13th
Posts: 3
Joined: Fri Oct 02, 2015 7:20 am

Get ReportSource string from mrt file

Post 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?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Get ReportSource string from mrt file

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
mehdi13th
Posts: 3
Joined: Fri Oct 02, 2015 7:20 am

Re: Get ReportSource string from mrt file

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Get ReportSource string from mrt file

Post 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.
mehdi13th
Posts: 3
Joined: Fri Oct 02, 2015 7:20 am

Re: Get ReportSource string from mrt file

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Get ReportSource string from mrt file

Post by HighAley »

Hello.

The Value of the ReportSource is set when you add a report on your form in Visual Studio.

Thank you.
Post Reply