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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sahil JaniPosted Apr 25, 2011, 4:00 AM
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.
RamanaPosted Apr 25, 2011, 3:00 AM
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 JaniPosted Apr 25, 2011, 2:45 AM
I have attached one file that one might be help ful to you.