Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
Creating Excel file with StringBuilder, running slow
A Repasky
Nov 11 2011 4:10 PM
4.9k
Reply
I have attached a file with the code I am talking about. I am converting a program from VB.NET and I thought StringBuilder would be much more efficient. I took the concatenation and changed it to StringBuilder, but it is running for ever. Or is it because the insert is taking so long? I commented out the concatenated code, just in case I needed it again.
This is taking too long for one file and I have to make multiple files. The Excel file starts with a blank file with only a header row.
I hope someone can help me with this.
Thanks,
arep
Attachment:
example.zip
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
C# using ints in Textbox.Visible
Help(dont know what to name)