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.
Hi,
I believe this is not possible, When you export it will always take the save report name by default.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156