How do i open an excel file in a Richtextbox in vb.net 2008?
-
Hi all Happy new year. Currently i am working on a project which required an Excel File to be opened at the run time in a Richtextbox. i tried the following code Richtextbox.loadfile(path,type) it load the required file but content of the file was not readable. kindly help me. Thanks
rmshah Developer
-
Hi all Happy new year. Currently i am working on a project which required an Excel File to be opened at the run time in a Richtextbox. i tried the following code Richtextbox.loadfile(path,type) it load the required file but content of the file was not readable. kindly help me. Thanks
rmshah Developer
Hi, Actually, Excel and RTF (RichTextFile) use different structure!Actually, you can use the Excel Object Library to access and manage your excel files (check this article Opening and Navigating Excel with C#[^] hope it helps. Do you want to open it as read-only or for editing? good luck and happy new year.
NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice... http://www.facebook.com/group.php?gid=5932660937[^]
-
Hi all Happy new year. Currently i am working on a project which required an Excel File to be opened at the run time in a Richtextbox. i tried the following code Richtextbox.loadfile(path,type) it load the required file but content of the file was not readable. kindly help me. Thanks
rmshah Developer
To put it simply you don't display an Excel file in a RichTextBox, this control is really only designed to display RTF and plain text files. I think your best option would be to invest in a 3rd party control designed to display Excel files such as those from Spreadsheet Gear[^].