TechSapphire Wednesday, 2018-10-17, 1:31 PM
Site menu
Login form
News
Play Games
  • Deep Freeze
  • Ice Slide
  • Gyroball
  • Fat Fish
  • Bush Royal Rampage
  • Main » 2011 » October » 5 » Reading Doc and Docx using .Net
    6:59 PM
    Reading Doc and Docx using .Net

    Reading Doc and Docx using .Net

    There is no open source doc and docx reader. So you could use richtextbix for reading doc and docx reader.

    Code for reading doc and docx file:

                RichTextBoxPrintCtrl1.Text = ""

                Try

                Dim wd As New Word.Application

                With wd

                    .Documents.Open(Path)

                    .Selection.WholeStory()

                    .Selection.Copy()

                    RichTextBoxPrintCtrl1.Paste()

                    .Quit()

                End With

                wd = Nothing

    Catch ex As Exception

                 MsgBox("Don't give frequent commands.")

               End Try

    For this you need 2 name space

     Microsoft.Office.Tools.Word

     Word

    Move to solution page.

    You could download this dll pack from here

    Category: Programming | Views: 807 | Added by: Admin | Tags: word in .net, word reader using vb, worpad using .net, doc and docx reader using .net, word in vb | Rating: 2.0/1
    Total comments: 0
    Only registered users can add comments.
    [ Registration | Login ]
    Categories
    Programming [27]
    Tips for programming
    Security [2]
    Security Tips
    Google [1]
    Use google faster then ever you use
    Project [14]
    HTML [2]
    Electronics [0]
    Data Structure [0]
    Database [16]
    SQL SERVER
    SSRS [1]
    Sql Server Reporting Services
    Copyright MyCorp © 2018