Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Convert Rdl file into PDf format in button Click

Posted on by 1,345

Hi,
How to generate "rdl" file into "pdf" from a custom ribbon button click event ,I know we can export a report to pdf format but the requirement is to directly attach pdf file in email to reduce the clicks.

*This post is locked for comments

  • Suggested answer
    Iswarya Profile Picture
    Iswarya 1,345 on at
    RE: Convert Rdl file into PDf format in button Click

    Hi Bharat & PZ123,

    refer this it will work for version 9.

    community.dynamics.com/.../715309

  • Iswarya Profile Picture
    Iswarya 1,345 on at
    RE: Convert Rdl file into PDf format in button Click

    Hi,

    i am not tested in version 9. but it works fine in version 1612(8.2.1.411).

  • PZ123 Profile Picture
    PZ123 on at
    RE: Convert Rdl file into PDf format in button Click

    Trying to accomplish this with the OOB Quote Report that CRM has created. I receive this error when stepping over the code below. Please help!

    CODE:

    retrieveEntityReq.send("id=%7B" + reportGuid + "%7D&uniquename=" + Xrm.Page.context.getOrgUniqueName() + "&iscustomreport=false&reportnameonsrs=&reportName=" + reportName + "&isScheduledReport=false");

    ERROR:

     "<!DOCTYPE html><html><head><script type='text/javascript'>window.location.href = '/_common/error/errorhandler.aspx?BackUri=https%3a%2f%2fcrmca1.crm.dynamics.com%2fform%2fClientApiWrapper.aspx%3fver%3d789416022&ErrorCode=0x8004832C&Parm0=%0d%0a%0d%0a&Parm1=%28rsItemNotFound%29&RequestUri=%2fCRMReports%2frsviewer%2freportviewer.aspx&user_lcid=1033';</script></head><body></body></html>"

  • PZ123 Profile Picture
    PZ123 on at
    RE: Convert Rdl file into PDf format in button Click

    So, just to clarify, you are saying this does not work in version 9?

  • Iswarya Profile Picture
    Iswarya 1,345 on at
    RE: Convert Rdl file into PDf format in button Click

    Hi,

    i am Implement this in Dynamics 365 online Version  1612(8.2.1.411).  as bharat said it is not work in latest version.

  • PZ123 Profile Picture
    PZ123 on at
    RE: Convert Rdl file into PDf format in button Click

    Hello Iswarya, Are you guys implying this does not work in D365? I have a trial version 1612(9.0.0.2072) 

    Is there are work around? Thanks in advanced. 

  • Iswarya Profile Picture
    Iswarya 1,345 on at
    RE: Convert Rdl file into PDf format in button Click

    Hi Bharat,

    i will check with latest trial organisation.

  • BharatPremji Profile Picture
    BharatPremji 2,485 on at
    RE: Convert Rdl file into PDf format in button Click

    Thanks for confirming.

    Looks like it might need looking at again when you get upgraded to Version 9

  • Iswarya Profile Picture
    Iswarya 1,345 on at
    RE: Convert Rdl file into PDf format in button Click

    Hi Bharat,

    Currently i am working on the dynamics 365 online Version  1612(8.2.1.411).

  • BharatPremji Profile Picture
    BharatPremji 2,485 on at
    RE: Convert Rdl file into PDf format in button Click

    Hi Iswarya,

    What version of Dynamics 365 are you working on?

    The above code works in version 1612 (8.2.1.411) but doesn't seem to work in version 1612 (9.0.0.1103)

    The line its failing on in version 9.0.0.1103 is:

    retrieveEntityReq.send("id=%7B" + reportGuid + "%7D&uniquename=" + Xrm.Page.context.getOrgUniqueName() + "&iscustomreport=true&reportnameonsrs=&reportName=" + reportName + "&isScheduledReport=false&p:CRM_quote=" + strParameterXML);

    I get a 404 error.

    Regards

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans