I have a requirement, based on some condition i have to choose different report template design.
For normal Freetextinvoice, i am using default report template “Report”
For special type of invoice, i want to use another report template “someothername*”.
where should i change to tell the printmanager to use another template(“someothername*”) instead of default report template(“Report”) while generating the report?
What exactly do you want to achieve? To add an additional document type to print management setup? Or to select some report design at runtime (based on some business logic), ignoring the designed configured in print management? Or something else?
If your condition is met, simply set the new design name (this.parmReportName(ssrsReportStr(ReportName, DesignName)) in FreeTextInvoiceController class.
Thanks, if i want to setup different Report format on Printmanagement, how i can change to choose another format on the Printmanagement UI, it shows only one default report. i am just checking this can solve my problem instead of changing code.
It is not like that. i am looking what could be the better solutions for my requirement. If there are multiple ways of doing, i am trying to figure which one is suitable. Thanks for helping.
But what’s the requirement? Once you talk about a decision at runtime, then about static definition in a parameter. These are two different things; solutions for completely different requirements. You can’t use them interchangeably.
And I obviously can’t know your requirements unless you explain them.
i am using AIF FreetextinvoiceService to create Freetextinvoices in AX. while generating the normal invoices i am also printing and saving reports as pdf with default report design. i have another requirement to generate special invoice which should endup generating report as pdf with different invoice report design.
And i also use the print management to send the invoices to customers via printmanagement as email. In this case i want to change the report design when sending special invoice reports.
i believe, during this process the default design is selected and saved. i would like to change the design while runtime. i need to to know where to change the design name. i don’t have full understanding how Reports generation work in AX. i really appreciate for your time and help. Please reply