- Home
- Forum
- ASP.NET Web Forms (Classic)
- Hint on XlsIO performance excel generation
Hint on XlsIO performance excel generation
Hi Nikolay,
1.Data Population:
We have optimized method for numbers and not for DateTime,
NumberFormat in 11.4. The below code snippets illustrates on how to
achieve this. Kindly try this at your end.
|
sheet.SetNumber(1, 1, 4); sheet.SetRowHeight(1,15); |
We
have optimized method for numbers and date in our upcoming release 12.1m which will be rolled out by this week.
|
DateTime time
= DateTime.Now; IMigrantRange range =
sheet.MigrantRange;range.ResetRowColumn(1,1); range.SetValue("string"); |
2.Styling of Rows and Columns:
We have optimized way to apply the styles for rows and
columns. The below code snippets illustrates on how to achieve this.
Kindly try this at your end.
|
sheet.UsedRange.AutofitRows(); sheet.UsedRange.AutofitColumns(); IStyle rowStyle
= workbook.Styles.Add("RowStyleFormatterContent"); sheet.UsedRange.CellStyle
= rowStyle; |
Note: No need of using SetRow height method while using AutoFitRows method.
Regards,
Prakash
- 1 Reply
- 2 Participants
-
NI Nikolay
- Apr 3, 2014 08:18 AM UTC
- Apr 7, 2014 04:30 AM UTC