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. Web Development
  3. ASP.NET
  4. count character of word document using asp.net

count character of word document using asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcomhelpquestion
1 Posts 1 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.
  • S Offline
    S Offline
    sharma rajkumar
    wrote on last edited by
    #1

    Hello Friends,How are you, In my web application I wanna count no. of characters in ms-word document.I am using reference of com. and Wrote the Code as object filePath="d:\\Test\\test.doc"; object readOnly=false; object missing=System.Reflection.Missing.Value; Word.ApplicationClass wa=new Word.ApplicationClass(); Word.Document cc=wa.Documents.Open(ref filePath,ref missing,ref readOnly,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing); int coun=cc.Characters.Count; wa.Application.Quit(ref missing,ref missing,ref missing); Button1.Text=coun.ToString(); But After running this there is an error of macro. Is there any other way of doing this or How can I remove this error. rajkumar Sharma

    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