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. Data Exchange MS Word 2000

Data Exchange MS Word 2000

Scheduled Pinned Locked Moved ASP.NET
csharpcomasp-netvisual-studiodesign
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.
  • R Offline
    R Offline
    Rhys__666
    wrote on last edited by
    #1

    I am writing a data exchange tool in asp.net (c#). I', looking to access data in csv or xml files or word 2000 documents. The first two are relatively simple but I'm strufggling a little on the Word 2000 interoperability. I am using a text editor and command line compiler and have no choice but to do this as I do not have access to an IDE to reference a com object with that nice point, click and go functionality. I've looked at the tlbimp and SDK sample but just don't seem to be getting it I'm afraid, (Monday morning brain-block?). I can adapt the SDK Word Interop sample and use a bat file to create what I believe should be a Wrapper for Word called Word.dll, and successfully compile my application referencing the metadata from the word.dll tlbimp "%ProgramFiles%\Microsoft Office\Office\msword9.olb" /silent /out:Word.dll IF NOT EXIST bin mkdir bin %CORPATH%csc /t:library /out:bin\DataExchange.dll /r:System.dll /r:System.Web.dll /r:System.Xml.dll /r:System.Data.dll /r:Word.dll /optimize+ /recurse:*.cs However, when i change my .cs files to reference interop services and the Word wrapper; using System.Runtime.InteropServices; using Word; ...I get the follwing compiler errors; Default.cs(16,32): error CS0234: The type or namespace name 'Web' does not exist in the class or namespace 'Word.System' (are you missing an assembly reference?) Default.cs(19,20): error CS0234: The type or namespace name 'Web' does not exist in the class or namespace 'Word.System' (are you missing an assembly reference?) Default.cs(20,20): error CS0234: The type or namespace name 'Web' does not exist in the class or namespace 'Word.System' (are you missing an assembly reference?) Default.cs(21,20): error CS0234: The type or namespace name 'Web' does not exist in the class or namespace 'Word.System' (are you missing an assembly reference?) Default.cs(22,20): error CS0234: The type or namespace name 'Web' does not exist in the class or namespace 'Word.System' (are you missing an assembly reference?) Default.cs(23,20): error CS0234: The type or namespace name 'Web' does not exist in the class or namespace 'Word.System' (are you missing an assembly reference?) Default.cs(24,20): error CS0234: The type or namespace name 'Web' does not exist in the class or namespace 'Word.System' (are you missing an assembly reference?) but all that is on these lines are my class declaration; public class Default : System.Web.UI.Page and control declarations

    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