September 1, 2010 at 3:51 pm
I am running ssis package to export data in Excell sheet, By doing this i am loosing all my formats , For an example if i put column name in BOLD , entire records become bold after i export records in it. Please provide a way to keep the formatting in Excell by using SSIS.
More Specific:
QUe : Please provide a way to keep formatting in Excell file while exporting data in it from SQL Server (ADO).
Thanks A lot Seniors.
September 1, 2010 at 9:30 pm
Neither SSIS nor the OpenRowset/OpenDatasource functions can do this... they all use the JET database engine, and all they do is manipulate data (insert, update, delete, select).
To do formatting, you will have to go into the unsupported area of Office Automation (via either SSIS Script tasks, or the sp_OA* extended stored procedures). This article Automating Excel from SQL Server[/url] covers the sp_OA method, and you might find it useful. But, having Excel loaded on a server is not a Microsoft supported configuration.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply