Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
SSIS -> Excel Formatting Issue
SSIS -> Excel Formatting Issue
Rate Topic
Display Mode
Topic Options
Author
Message
Jako de Wet
Jako de Wet
Posted Thursday, February 14, 2013 1:23 AM
SSC Journeyman
Group: General Forum Members
Last Login: Thursday, April 11, 2013 2:25 AM
Points: 85,
Visits: 137
Hi everyone
What is the best way to keep the formatting in Excel? I have created a template with the font, column types, graphs, sums etc and removed all the data.
When I export the data into the columns, the formatting is gone, font size is different and the SUM/Graphs does't auto update as I thought it would have.
Is there any easy way around this?
Most of the posts Ive read about this, talks about using a Script Task to do further formatting?
Thanks
Post #1419858
nick.ryan 5248
nick.ryan 5248
Posted Tuesday, February 19, 2013 8:13 PM
Forum Newbie
Group: General Forum Members
Last Login: Thursday, March 07, 2013 7:18 PM
Points: 4,
Visits: 1
I had to do this recently and my workaround was to have 1 row of formatted data retained under the column headings in my template but hidden.
However, that was a simple table of data without graphs and formulae. It did cause the correct formatting and data types to be applied to all lines inserted so it may work for you.
Post #1421915
joeroshan
joeroshan
Posted Tuesday, February 19, 2013 8:41 PM
Mr or Mrs. 500
Group: General Forum Members
Last Login: 2 days ago @ 4:12 AM
Points: 573,
Visits: 1,165
In addition to nicks suggestion, you can use script task as per the below link
http://stackoverflow.com/questions/1954582/ssis-2008-excel-2007-formatting-excel-columns-properly-exporting-not-importin
I have not used this , but will keep this in mind so may be useful one day
-- Roshan Joe
*******************************************
Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help
Custom cleanup script for backups
Post #1421918
Jako de Wet
Jako de Wet
Posted Tuesday, February 19, 2013 11:27 PM
SSC Journeyman
Group: General Forum Members
Last Login: Thursday, April 11, 2013 2:25 AM
Points: 85,
Visits: 137
Hi everyone
Just to let you know what I did.
I created a XLS template with the headers and a hidden/formatted row, this just formats the actual numbers etc. You still need to apply the font-size via a script. The formulas also seem to auto run.
So I created a C# Script file that adds all the formatting and formulas afterwards. Works really well and takes out human intervention.
Only problem is that, that was the easiest report of the 25+ I need to do...
Post #1421935
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.