Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How do i open an excel file in a Richtextbox in vb.net 2008?

How do i open an excel file in a Richtextbox in vb.net 2008?

Scheduled Pinned Locked Moved Visual Basic
questioncsharphelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    r_mohd
    wrote on last edited by
    #1

    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

    N R 2 Replies Last reply
    0
    • R r_mohd

      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

      N Offline
      N Offline
      Naji El Kotob
      wrote on last edited by
      #2

      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[^]

      1 Reply Last reply
      0
      • R r_mohd

        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

        R Offline
        R Offline
        Rod Kemp
        wrote on last edited by
        #3

        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[^].

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups