Export Salesforce standard Report in Visualforce page
Many of us might be developing some custom code to export data to excel. You can use this simple hack to generate excel from Salesforce standard report.
String reportDeveloperName = 'Sample_Report'; reports = new List([select developername,id from report where developername= :reportDeveloperName]); mailLogReportUrl = URL.getSalesforceBaseUrl().toExternalForm() + '/' + reports[0].id + '?pv0=' + pv0 + '&export=1&enc=UTF-8&xf=xls';
Comments
Post a Comment