Hi,
Please anyone tell me how to open a text file as an Excel file inside a Wpf window(C#).
Thanks & Regards,
Ramana
Hi,
Please anyone tell me how to open a text file as an Excel file inside a Wpf window(C#).
Thanks & Regards,
Ramana
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sahil Jani196 reputationPosted Apr 24, 2011, 10:45 PM EDT
I have attached one file that one might be help ful to you.
Ramana19 reputationPosted Apr 24, 2011, 11:00 PM EDT
Thanks for ur reply.
What is XlsDocument ? and from which assembly can I get this ?
Even I should be able to edit(Cut/Copy/Paste) the opened excel file.
Thanks & Regards,
Ramana
Sahil Jani196 reputationPosted Apr 25, 2011, 12:00 AM EDT
For that you have to import :: using System.Windows.Xls.Packaging;
XlsDocument is a class for read, write and edit of Excel files.
And yes you can do that using mode change. Just change mode from read to write in code.