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.