Get MRT from code

Stimulsoft Reports.NET discussion
Post Reply
Danillo
Posts: 2
Joined: Tue Mar 09, 2010 2:38 pm
Location: Brazil

Get MRT from code

Post by Danillo »

In this afternoon i realized that I lost some of my reports design files (.mrt) and I just found the source code
of these reports. I googled trying to find some solution for that - Get my C# report code and generate a MRT
file that I could work on, and change it, in stimulsoft report design tool. I did not have success.
After this I tried to open the report design tool and put the code at the Code TAB and save the report, but without
success again - the tool just roll back any alteration i did.

I'd like to know if there is a way to generate a report file (.mrt) from the code of that report.


Thx in advance.
Sorry for my "bad english"
Danillo Corvalan
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Get MRT from code

Post by Edward »

Hi Danilo,

Unfortunately there is no way to re-create report using only code from code tab. You always need to keep mrt file to be able to modify report template later.

Thank you.
Danillo
Posts: 2
Joined: Tue Mar 09, 2010 2:38 pm
Location: Brazil

Get MRT from code

Post by Danillo »

:cry:

I tried now to instantiate the class that represents the report i want to edit and called the Design() Method,
running in a windows forms application. The Designer.exe openned with my report there, with data-sources,
variables, etc. The problem was just that the labels with Binding text to the datasources fields was all blanks.

Tried to save but it raised an error:

Method: GetPropertyImpl
Ambiguous match found.


I can't believe I will need to create the report again :brick:

So. Thx for the attention!
Sorry for my"bad english"
Danillo Corvalan
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Get MRT from code

Post by Jan »

Hello,

Sorry, but report saved as class contain information which required only for report rendering.

Thank you.
Post Reply