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)

How do I save a PDF copy of Free Text Invoice on a remote server using X ?

(0) ShareShare
ReportReport
Posted on by 160

I am new to AX technology and I am trying to save a PDF copy of Free Text Invoice to a remote server using X++ but I have no idea where to start, which classes and tables to use. Please help me.

Thanks

*This post is locked for comments

I have the same question (0)
  • akuehn Profile Picture
    1,995 on at
    Re: How do I save a PDF copy of Free Text Invoice on a remote server using X ?

    HI,

    if you are using AX 2009 you can find an example with salesinvoide (not freetextinvoice!) on my blog.

    translate.google.com/translate|en

    Basicly you have to use the class PrintJobSettings to control where you want to print the report to.

    You can use something like this to create a pdf from a report:

    printJobSettings = new PrintJobSettings(salesFormLetter.printerSettingsFormletter(

                                                              PrintSetupOriginalCopy::Original));

    printJobSettings.setTarget(PrintMedium::File);

    printJobSettings.format(PrintFormat::PDF);

    printJobSettings.fileName(@"C:\Test_Order.pdf");

    Because i currently haven't access to a AX System, i can't exactly say what code is needed to print the freetextinvoice to pdf, but this should be a good point to start.

    Hope this helps you solving this issue.

  • Ramakrishna Eadara Profile Picture
    20 on at
    Re: How do I save a PDF copy of Free Text Invoice on a remote server using X ?

    Hi Akuehn,

    i have one issue with Pdf file . i am trying to run freetextinvoice report and want to save report as pdf file. the report generated properly but the issue here is pdf contains 4 pages instead of 1. the 1st page looks good but the pages 2,3,4 contains only page header and footer.

  • akuehn Profile Picture
    1,995 on at
    Re: How do I save a PDF copy of Free Text Invoice on a remote server using X ?

    Which version of are you using?

    There are some hotfixes available (i.e for Ax 2009) adressing some problems with pdf files.

    If never seen such a problem. So could you please check theses hot fixes?

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
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans