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:

Created:

Updated:

Platform:

Replies:

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

Hello,

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.

Avelino

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.

VB:
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,

Regards,
Balamurugan

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

Hello Balamurugan,

Your code worked perfectly well. Thank you!

Regards,

Avelino

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

Hi Avelino,

Welcome..,
Please,let us know if you have any queries,

Regards,
Balamurugan


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.

Thanks

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 8.2.0.18 version,3.5 framework.

For more information regarding the Number format, please navigate to the following link.
http://help.syncfusion.com/ug_82/Reporting_XlsIO/NumberFormatting.html

Please, let me know if you need any clarifications.

Thanks,
Lokesh.




92301_37b7863.zip

CONFIRMATION

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.

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

;