Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

How to give the dynamic name of ssrs report when we export to pdf.

Posted on by 121

How to give the dynamic name of ssrs report when we export to pdf.

var hight=800;
var width=900;
var left = (window.screen.width / 2) - ((width/ 2) + 10);
var top = (window.screen.height / 2) - ((hight/ 2) + 50);
var bidSheetId=formContext.data.entity.getId().replace("{", "").replace("}", "");
var rdlName = "BidSheetSummary.rdl";
var reportGuid = getReportId("BidSheetSummary");
if(reportGuid=="")
{
alert("Sorry, report does not exists");
return;
}
var parameter = encodeURIComponent(bidSheetId);
var url = formContext.context.getClientUrl() + "/crmreports/viewer/viewer.aspx?action=filter&helpID=" + rdlName + "&id={" + reportGuid + "}&p:bidsheetid=" + parameter + "&p:bidSheet="+ parameter;
window.open(url, null, "width="+width+ ", height="+hight+", top ="+top+", left="+left);

This is my java script code to view the report.

  • Suggested answer
    Soumen S Profile Picture
    Soumen S on at
    RE: How to give the dynamic name of ssrs report when we export to pdf.

    Hi,

    I believe this is not possible, When you export it will always take the save report name by default.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans