word 2007 and C#

G

Gidi

Hi,

I've a windows application using C# (VS 2005).
one of my forms is opening a word document and replacing text and then print
the document.

for some reason, one of the computers i'm using with office 2007 installed,
crashes the program when i try to print the document.

I would like to know if there's a new way to find&replace strings in word
2007 (the document is *.doc).

I'm using:
Microsoft.Office.Interop.Word

Thanks,
Gidi.
 
J

James Finch

In order to understand what's causing the crash we'd need a little more
detail. As to your question, if the documents are in the old proprietary
..doc format there is no other way I know of doing this with C# apart
from the method you're using. If you know a little VBA you could use
that instead, but if you don't... Debug the code on the machine in
question and send us some details if you get stuck.

James Finch (MCDST)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top