How to build mrt file programmatically?

Stimulsoft Reports.WEB discussion
Post Reply
Nuts_ethanol
Posts: 5
Joined: Fri May 08, 2020 4:41 pm

How to build mrt file programmatically?

Post by Nuts_ethanol »

Is there a way I can build the template mrt file with code?

I mean to create mrt file with the code. For example, I want to have a label placed in a definite position in report. Can I manually create the label object from code and let Stimulsoft generate this object and put in mrt file? So when I open this generated mrt file, I will see this label.

Thank you in advance
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to build mrt file programmatically?

Post by HighAley »

Hello.

Yes, you can create the report with your code.
You could find a sample here:
https://github.com/stimulsoft/Samples-W ... 20Creation

Thank you.
Nuts_ethanol
Posts: 5
Joined: Fri May 08, 2020 4:41 pm

Re: How to build mrt file programmatically?

Post by Nuts_ethanol »

Thank you. It works great
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: How to build mrt file programmatically?

Post by Andrew »

Hello,

Okay, thank you!
mkzm
Posts: 1
Joined: Sat May 28, 2022 6:37 am

Re: How to build mrt file programmatically?

Post by mkzm »

HighAley wrote: Tue May 12, 2020 9:38 am Hello.

Yes, you can create the report with your code.
You could find a sample here:
https://github.com/stimulsoft/Samples-W ... 20Creation

Thank you.
Hello,
I have the same problem but the link you provided is broken. also I searched through the repository on github and checked the projects in the solution but didn't find any example. how can I build mrt files at runtime?
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: How to build mrt file programmatically?

Post by Lech Kulikowski »

Hello,

Please check the following link:
https://www.stimulsoft.com/en/samples/r ... at-runtime

Thank you.
Post Reply