TechSapphire Sunday, 2024-12-22, 6:01 AM
Site menu
Login form
News
Play Games
  • Deep Freeze
  • Ice Slide
  • Gyroball
  • Fat Fish
  • Bush Royal Rampage
  • 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

    You could download this dll pack from here

    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 © 2024