Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi All,
Is it possible to export a rdl report to Excel file using URL link?
Regards,
Jimmy
Solved! Go to Solution.
No, there are no changes to server settings required. Did you use the url format from the documentation link?
eg.
https://<server>/ReportServer?/<reportfolder>/<reportname>&rs:Format=PDF
Note that you need to use the Webservice url (/reportserver by default), not the portal url (/reports by default)
Hi Guy,
I discovered that if I used rs:format parameter to export as Excel file, the file format is different from the one that I selected from menu bar. Did anybody have idea, please help?
Regards,
Jimmy
@Anonymous wrote:I discovered that if I used rs:format parameter to export as Excel file, the file format is different from the one that I selected from menu bar. Did anybody have idea, please help?
What sort of differences are you seeing? There is only one Excel rendering engine in the product, in theory the menu bar option is just calling in to the rs:format=Excel url endpoint.
When I export the file with rs:format=EXCEL parameter, the file extension is '.xls'. However, if I export using menu bar, the file extension is '.xlsx'. Although they still can be opened by MS Excel program, I want to know if there is a possible solution to export in '.xlsx' by either way
@Anonymous wrote:
When I export the file with rs:format=EXCEL parameter, the file extension is '.xls'. However, if I export using menu bar, the file extension is '.xlsx'. Although they still can be opened by MS Excel program, I want to know if there is a possible solution to export in '.xlsx' by either way
Ooh that's really bad. There is an option missing from the documentation for rs:Format=EXCELOPENXML which is what you need to use to generate XLSX files. This should fix your issue and I've left a comment on the documentation page so hopefully microsoft fix this omission.
Thanks.
Yes, you would just add the rs:Format=Excel url parameter. There are a bunch of different url access parameters that you can use see https://docs.microsoft.com/en-us/sql/reporting-services/url-access-parameter-reference?view=sql-serv...
Thanks for your resply.
Is there any setting needed in the server setting, I have added the paraameter but it did not work.
No, there are no changes to server settings required. Did you use the url format from the documentation link?
eg.
https://<server>/ReportServer?/<reportfolder>/<reportname>&rs:Format=PDF
Note that you need to use the Webservice url (/reportserver by default), not the portal url (/reports by default)
Hi,
Many thanks, it works now. Despite the web service url, the folder does not need to include the <home> folder.
Jimmy
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |