We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Workbook''s size increments considerably after formatting column

Thread ID:





92301 Jan 4,2010 04:20 PM UTC Jun 17,2010 05:03 AM UTC ASP.NET Web Forms (Classic) 5
Tags: XlsIO
Avelino Ruiz
Asked On January 4, 2010 04:20 PM UTC


I am using the following code to format a single column in a spreadsheet:

Dim sheet As IWorksheet = workBook.Worksheets(1)
sheet.Range("A1").EntireColumn.NumberFormat = "m/d/yyyy"

After saving the workbook its size increments from 8KB to 8MB.

However if I do the same manually using a normal column select and format in Excel, it only increments up to 10KB.

Could you please advise? Thanks.


Balamurugan R [Syncfusion]
Replied On January 5, 2010 09:08 AM UTC

Hi Avelino,

Thank you for using syncfusion products.

I have analyzed your problem.Use the IStyles for format rows and columns with large number of cells with same styles.Please use the code snippet given below for setting the date format to a single column.

Dim columnStyle As IStyle = workbook.Styles.Add("Number Format")
columnStyle.NumberFormat = "m/d/yyyy"
sheet.SetDefaultColumnStyle(1, 1, columnStyle)

please,let us know if you have any queries,


Avelino Ruiz
Replied On January 6, 2010 07:01 PM UTC

Hello Balamurugan,

Your code worked perfectly well. Thank you!



Balamurugan R [Syncfusion]
Replied On January 6, 2010 10:12 PM UTC

Hi Avelino,

Please,let us know if you have any queries,


Ram Thatikonda
Replied On June 16, 2010 08:44 PM UTC

Could you provide a sample to format a cell as "Currency"? I would appreciate your response.


Lokesh R [Syncfusion]
Replied On June 17, 2010 05:03 AM UTC

Hi Ram,

As you have reported, i have created a console sample for the Currency number format. Could you please try the sample from the below link and let me know if this helps you.

Note: The sample is tested with the version,3.5 framework.

For more information regarding the Number format, please navigate to the following link.

Please, let me know if you need any clarifications.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon