We are using CRM 365 V9 on premise. I have a report that display the record summary in an iframe on the form. I use the javascript to set the report URL. The problem is that I got a "Edit Filter" button and report toolbar on top of the report that I don't know how to remove. Any help? Thanks.
var orgUrl = Xrm.Page.context.getClientUrl();
var action = "run";
var context = "records";
var reportId = "8158b6c6-b354-e911-a2c5-005056933618";
var recordid = Xrm.Page.data.entity.getId().replace("{", "").replace("}", "");
var etc = Xrm.Page.context.getQueryStringParameters().etc;
var url = orgUrl +
"/crmreports/viewer/viewer.aspx?action=" + encodeURIComponent(action) +
"&context=" + encodeURIComponent(context) +
"&id=%7b" + encodeURIComponent(reportId) + "%7d" +
"&records=%7b" + encodeURIComponent(recordid) + "%7d" +
"&recordstype=" + encodeURIComponent(etc););
iframeObject.setSrc(url);
*This post is locked for comments