Page 1 of 1

Get MRT from code

Posted: Tue Mar 09, 2010 2:53 pm
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

Get MRT from code

Posted: Tue Mar 09, 2010 4:58 pm
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.

Get MRT from code

Posted: Wed Mar 10, 2010 12:14 pm
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

Get MRT from code

Posted: Wed Mar 10, 2010 1:08 pm
by Jan
Hello,

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

Thank you.