web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

sales invoice printing different design when i use specific company

(0) ShareShare
ReportReport
Posted on by 2,050

i'm trying to printing sales invoice different design when i use specific company

so i add this code in class SalesInvoiceController into main method between if condition as you see in this pic 

else if (curext()=='SHW')
    {
        formLetterController.parmReportName(ssrsReportStr(SalesInvoice, ReportA4));
    }

codeif.JPG

but stil show me original design and i want apply my specific design to this company only 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    B K Sharma Profile Picture
    737 on at
    RE: sales invoice printing different design when i use specific company

    Hey dear ,

    Write this condition on the PrintReport Method and not in main method or check the issue by debugging it, Here I have checked the code in my server and it is working fine

    if(curext() == "100")

       {

       this.getReportName(ssrsReportStr(WCL_BK_BulkGRNAnnexureReport,PrecisionDesign1));

       }

       else if(curext() == "200")

       {

           this.getReportName(ssrsReportStr(WCL_BK_BulkGRNAnnexureReport,PrecisionDesign2));

       }

  • mohammed.mqi Profile Picture
    2,050 on at
    RE: sales invoice printing different design when i use specific company

    thanks for reply but my class doesn't have PrintReport Method

    as you see here

    if2.JPG

    and if you mean printDocumentSet Method where must i put my code?

    if2.JPG

  • Verified answer
    mohammed.mqi Profile Picture
    2,050 on at
    RE: sales invoice printing different design when i use specific company

    i solve it by add this code into outputReport method 

        str reportDesign = 'SalesInvoice.ReportA4';
        if (curext()=='SHW')
        {
    
       this.parmReportName(reportDesign);
    
       this.parmReportContract().parmReportName(reportDesign);
    
       formLetterReport.parmReportRun().settingDetail().parmReportFormatName(reportDesign);
        }


Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans