- Home
- Forum
- ASP.NET Web Forms (Classic)
- Workbook''s size increments considerably after formatting column
Workbook''s size increments considerably after formatting column
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
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
SIGN IN To post a reply.
5 Replies
BR
Balamurugan R
Syncfusion Team
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
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
AR
Avelino Ruiz
January 6, 2010 07:01 PM UTC
Hello Balamurugan,
Your code worked perfectly well. Thank you!
Regards,
Avelino
Your code worked perfectly well. Thank you!
Regards,
Avelino
BR
Balamurugan R
Syncfusion Team
January 6, 2010 10:12 PM UTC
Hi Avelino,
Welcome..,
Please,let us know if you have any queries,
Regards,
Balamurugan
Welcome..,
Please,let us know if you have any queries,
Regards,
Balamurugan
RT
Ram Thatikonda
June 16, 2010 08:44 PM UTC
Could you provide a sample to format a cell as "Currency"? I would appreciate your response.
Thanks
Thanks
LR
Lokesh R
Syncfusion Team
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
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
SIGN IN To post a reply.
- 5 Replies
- 4 Participants
-
AR Avelino Ruiz
- Jan 4, 2010 04:20 PM UTC
- Jun 17, 2010 05:03 AM UTC