TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > C#(C Sharp)

Notices

C#, Word document

C#(C Sharp)


Reply
 
Thread Tools Display Modes
Old 25-11-2007, 05:28 PM   #1
lsg
Guest
 
Posts: n/a
C#, Word document

Hi,
Is there any possibility to write an application i C# to open a MS Word
document (doc, docx), find any form fields and fill them, save and print
modified (filled) document without Word installed? Or make that
application works with Word 2k, XP, 2003 version?
  Reply With Quote
Old 25-11-2007, 08:28 PM   #2
Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
Re: C#, Word document

Yes, but given that you want to span all of those versions, it will be
slightly difficult.

The reason is because microsoft only had primary interop assemblies for
versions of office back to XP. Because of this, you will have to create an
interop assembly to make the calls to Word 2k yourself.

Or, you could make all the calls late bound, through reflection,
although you might take a performance hit by doing so. However, it would
simplify making the same calls across different versions (assuming the
parameter signatures of the methods you are calling are the same).

--
- Nicholas Paldino [.NET/C# MVP]
-

"lsg" <> wrote in message
news:fiblvf$kor$...
> Hi,
> Is there any possibility to write an application i C# to open a MS Word
> document (doc, docx), find any form fields and fill them, save and print
> modified (filled) document without Word installed? Or make that
> application works with Word 2k, XP, 2003 version?


  Reply With Quote
Old 26-11-2007, 06:29 AM   #3
Mark Rae [MVP]
Guest
 
Posts: n/a
Re: C#, Word document

"lsg" <> wrote in message
news:fiblvf$kor$...

> Or make that application works with Word 2k, XP, 2003 version?


Aspose can do this:



--
Mark Rae
ASP.NET MVP


  Reply With Quote
Old 24-12-2008, 05:36 AM   #4
Newbie
 
Join Date: Dec 2008
Age: 21
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 vitalii.symon is an unknown quantity at this point


OS: Windows XP Windows Vista


Re: C#, Word document

Aspose isn't cheap (>1K). use this - Invoke Solutions Ltd - Docx Library it's free and doesn't need neither COM nor P/Invoke
vitalii.symon is offline   Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 03:49 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional