This question is not directly related to .NET but it is sort of.
1. I have a case where I generate Receipt based on ReceiptNo. I have got a requirement that if the Receipt is for *this product* then the format should be this, if it for "that product", the format should be this. Ideally what I would want, I have designed 2 pages in the report. I should be able to use page1 or page2 for the report depending on the product. Can I do that using MRT Code behind or directly in MRT Designer?
2. I also have another situation,where lets say if a particular receipt has 3 Lab Tests, I should be able to print all in one page on each Test on different page, depending on which "Lab Tests" they are. If they are minor, I would print them on one page. If they are major test, I should be print each test on separate page.
My reports are in Stimulsoft Designer. I would like to use either code behind or achieve this other wise in the designer.
Thanks
Conditional Report in MRT, Is it possible?
Re: Conditional Report in MRT, Is it possible?
Hello.
You could read more in our User Manual and Tutorial videos
Thank you.
You could set the conditions of each page to disable it.hammad wrote:1. I have a case where I generate Receipt based on ReceiptNo. I have got a requirement that if the Receipt is for *this product* then the format should be this, if it for "that product", the format should be this. Ideally what I would want, I have designed 2 pages in the report. I should be able to use page1 or page2 for the report depending on the product. Can I do that using MRT Code behind or directly in MRT Designer?
You could set the New Page Before property of the Band.hammad wrote:2. I also have another situation,where lets say if a particular receipt has 3 Lab Tests, I should be able to print all in one page on each Test on different page, depending on which "Lab Tests" they are. If they are minor, I would print them on one page. If they are major test, I should be print each test on separate page.
You could read more in our User Manual and Tutorial videos
Thank you.
Re: Conditional Report in MRT, Is it possible?
Thanks @Aleksey. I am going to try these. Disabling the page depending on which product it is would work for my first scenario. For the second case, for now I have resolved it using the property you have mentioned but it is not conditional though. Basically if the products are different, the bank will print the receipt on a different page, otherwise on the same page. If I could apply condition on "New Page", that would be perfect. For now my second issue is almost resolved though.
Thank you.
Thank you.
Re: Conditional Report in MRT, Is it possible?
Hello.
Sorry we don't understand your first question but will try to answer.
In the Condition editor you could set the Component is Enabled option.
If you need to create a new page by any condition you could do it in Before Print event by next code:
Thank you.
Sorry we don't understand your first question but will try to answer.
In the Condition editor you could set the Component is Enabled option.
If you need to create a new page by any condition you could do it in Before Print event by next code:
Code: Select all
Engine.NewPage();