Answered by:
Merging external file with C# .EXE

Question
-
I am thinking to make C# .EXE file and I need an excel file permanently merged with EXE.
Necessity is I am reading and displaying data from excel in Forms, so how can I merge Excel with EXE.
Saturday, April 19, 2014 5:46 PM
Answers
-
You can add the Excel file as Resource. On client machine the Excel file (Resource) can be extracted to temporary location and from there you can read and display data.
Hope This Helps....
- Edited by Eswararao Duvvu Saturday, April 19, 2014 5:54 PM
- Proposed as answer by Frank Heimes Sunday, April 20, 2014 7:16 PM
- Marked as answer by Caillen Sunday, April 27, 2014 11:38 AM
Saturday, April 19, 2014 5:52 PM -
Hiya,
Well, you can embed the Excel file as a Resource or you can append the entire file to the end of
your .EXE. Then write code for the .EXE to read the Excel data as if it was a seperate Excel file.
The last choice maybe harder on coding but easier because its a single file.
Hope this helps. Thanks :)
- Marked as answer by Caillen Sunday, April 27, 2014 11:38 AM
Sunday, April 20, 2014 7:29 AM
All replies
-
You can add the Excel file as Resource. On client machine the Excel file (Resource) can be extracted to temporary location and from there you can read and display data.
Hope This Helps....
- Edited by Eswararao Duvvu Saturday, April 19, 2014 5:54 PM
- Proposed as answer by Frank Heimes Sunday, April 20, 2014 7:16 PM
- Marked as answer by Caillen Sunday, April 27, 2014 11:38 AM
Saturday, April 19, 2014 5:52 PM -
Hiya,
Well, you can embed the Excel file as a Resource or you can append the entire file to the end of
your .EXE. Then write code for the .EXE to read the Excel data as if it was a seperate Excel file.
The last choice maybe harder on coding but easier because its a single file.
Hope this helps. Thanks :)
- Marked as answer by Caillen Sunday, April 27, 2014 11:38 AM
Sunday, April 20, 2014 7:29 AM