Anybody have any idea, how to convert a .xml file (XML Spreadsheet 2003)
to a .pdf file in Sql Server only.
I am trying below approach.
Open the .xml file in excel.application using sp_oa Methods.
And then save as .pdf file.
the issue is, I am not able to open the .xml file into
window.application using oa methods.
Rahul Verma (rahul.girdharwal@gmail.com) writes:
Anybody have any idea, how to convert a .xml file (XML Spreadsheet 2003)
to a .pdf file in Sql Server only.
What? SQL Server is a tool for data processing, not file conversion.
I am trying below approach.
Open the .xml file in excel.application using sp_oa Methods.
And then save as .pdf file.
the issue is, I am not able to open the .xml file into
window.application using oa methods.
Calling anything that interact with the desktop from a service (which
does not have a desktop) is an utterly bad idea.
I would suggest that you go back to the drawing board and think of a different solution that does not involve SQL Server.
--
Erland Sommarskog, Stockholm, esquel@sommarskog.se
But my requirement is to convert it within sql server. The reason
is.....I want to call this stored procedure from my stored procedure to within SSRS report to export the report in excel/ pdf.
Till yet i got success to export the same into excel (.xml) format. The reason of exporting all by coding, not using internal ssrs export functionality, is SSRS export data in worst format.
I got success to export the same into .xml file. But unfortunately not
able to open this .xml file into sp_oaMethod window.application.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 62:31:40 |
Calls: | 6,654 |
Files: | 12,200 |
Messages: | 5,331,627 |