Different Subreports in one report
Hi all,
Actually I have different .frx Reports for different customers. But the main content is always the same. So after a change request I have to modify 3 reports, which is stupid.
So i'm looking for a solution to have only one report, but different subreports e.g. for the header and footer information.
So I am looking for something like: IF "Customer1" than use SubReport1 - IF "Customer2" use the SubReport2.
With simple texts it is easy to add "[IIf([customer] == "customer1", "Dear Mister", "Hello Friend"]
Because I have to adapt different things like the logo and the letter-adress (left or right) etc. I think the best is to use SubReports, am I right? If yes, how can I do this if-conditions using SubReports? Or how should I implement this problem else?
Thank you so much,
Best Regards
Marcel
Actually I have different .frx Reports for different customers. But the main content is always the same. So after a change request I have to modify 3 reports, which is stupid.
So i'm looking for a solution to have only one report, but different subreports e.g. for the header and footer information.
So I am looking for something like: IF "Customer1" than use SubReport1 - IF "Customer2" use the SubReport2.
With simple texts it is easy to add "[IIf([customer] == "customer1", "Dear Mister", "Hello Friend"]
Because I have to adapt different things like the logo and the letter-adress (left or right) etc. I think the best is to use SubReports, am I right? If yes, how can I do this if-conditions using SubReports? Or how should I implement this problem else?
Thank you so much,
Best Regards
Marcel
This discussion has been closed.
Comments
I could solve it by using "Report inheritance"
Thread can be closed.
Regards
Marcel
Hello!
We're glad you found a solution using Report Inheritance (report inheritance is the perfect mechanism for a common master layout with three slim .frx child files for different clients)!
Alternatively, within a single .frx file, you can place the common section on the main page and the client-specific headers on hidden Subreport pages (or load the header .frx files dynamically) by toggling the SubreportObject.ReportPage property in the StartReport event based on the client parameter.