15,919,774 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ajitsit07 (Top 8 by date)
ajitsit07
13-Sep-16 8:56am
View
Can't zip the file, because here are inserting the rows in the temp sheet of excel and further macro will run to use these dumped data and generate the report.
ajitsit07
12-Sep-16 9:06am
View
Here sbColumns contain all the name which is there in excel and sbValues contain all the value. we are inserting the it row by row into the temp sheet of excel. While debuging 'oledbCmd.ExecuteNonQuery();' line taking time.
oledbCmd.CommandText = string.Format("insert into [{0}$]({1})values({2})", tempSheetName, sbColumns.ToString(), sbValues.ToString());
oledbCmd.CommandType = System.Data.CommandType.Text;
// oledbCmd.CommandTimeout = 200;
if (oledbConn.State == System.Data.ConnectionState.Closed)
{
oledbConn.Open();
oledbCmd.Connection = oledbConn;
}
oledbCmd.ExecuteNonQuery();
ajitsit07
12-Sep-16 8:16am
View
Thanks Richard.
Yes, I do agree with you. But optimized code makes difference.
Is there any scope to optimize the above code?
ajitsit07
12-Sep-16 8:15am
View
I need to user macro enabled excel, so can't use .csv.
Is there any scope to optimize the above code?
ajitsit07
12-Sep-16 6:16am
View
There is no problem in the code, i have to improve the speed. so that the excel will get downloaded in less time. Ex. now it is take 40secs and i want to reduce its time to 20 secs.
This excel download in under C#. ASP.net website under a menu.
public static bool fillExcelFile(string filePath, DataSet dataSet, string sheetName, string tempSheetName)
Here: Filepath - is the server mapped path of file (macro enable excel file) available on the server.
Dataset: Contain the data need to insert into the temp sheet of excel.
Do you need any other info. too.
ajitsit07
22-Jul-15 1:53am
View
I tried your advice,but no luck. Is there any memory limit in dumping data into the excel? Do you have any information? I did enough google too, many of the developers are facing this sticky problem, but no one has any solution. Please help to overcome this. Thanks.
ajitsit07
21-Jul-15 2:32am
View
Thanks for your reply. I have pasted the snippet of actual code. Please check and if I am doing any mistake please let me know.
ajitsit07
5-Mar-14 5:30am
View
If you will see the code, we are creating a temporary excel file on the server and after that dumping the data. When no. of companies (rows) increases we are getting this issue on LIVE server. At local development server is working fine.
Show More