Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to generate a pdf view of Invoice or opportunity or quote using Plugin/ JavaScript?

Posted on by Microsoft Employee

Hi,

I'm looking for some suggestion on how to generate a PDF view from Opportunity, Invoice/Quote entity.

I have gone through many community posts but nowhere been able to find PDF generator from Invoice Entity. 

My requirement is simple. I just want to create a PDF view of a current Invoice that is open.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to generate a pdf view of Invoice or opportunity or quote using Plugin/ JavaScript?

    Is there any way I can query data directly form Invoice entity using odata query and javascript then render the data as PDF? the javascript will help me create a button and once I click on the button it will download the PDF of that particular record. I want to avoide report creation route as from a users perspective it's double work.

  • RE: How to generate a pdf view of Invoice or opportunity or quote using Plugin/ JavaScript?

    Hi,

    Please refer the below URL where the requirement can be achieved by using SSRS report (using rdl file) and the custom code to generate PDF from it.

    community.dynamics.com/.../253073

  • Suggested answer
    Michel van den Brink Profile Picture
    Michel van den Brink 4,697 on at
    RE: How to generate a pdf view of Invoice or opportunity or quote using Plugin/ JavaScript?

    Hello,

    There are two routes you can take, both have some manual steps.

    1. Use a Word Template

    Create a Word Template that you can run on the Invoice entity and export it to Word. In Word, use the [File] > [Save As] option to save to the PDF file format.

    2. Use a Report

    Create a SSRS Report (which you can do with the Reporting Wizard) that can run on the Invoice Entity. Then run your report on an invoice and click the Save Icon (floppy disk icon) in the report viewer and click 'PDF' to export it as PDF.

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    Rajkumar Rajaraman 18,108 on at
    RE: How to generate a pdf view of Invoice or opportunity or quote using Plugin/ JavaScript?

    You can refer the following thread:

    community.dynamics.com/.../205829

    Hope this helps

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans