Exporting in Excel Sheets and loosing format

  • 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.

  • 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


    If you can't explain to another person how the code that you're copying from the internet works, then DON'T USE IT on a production system! After all, you will be the one supporting it!
    Links:
    For better assistance in answering your questions
    Performance Problems
    Common date/time routines
    Understanding and Using APPLY Part 1 & Part 2

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply