This project has moved. For the latest updates, please go here.

Retrieving Document from Memory

Mar 26, 2012 at 5:10 PM

I was wondering if there was a way to use DocX to handle the changes that I want and then take that document and print it and save it, while in memory, with word?

I am trying to avoid opening these documents again if I can obtain them from memory from DocX.

Any suggestions on doing this?

Thanks,

TG

Coordinator
Mar 27, 2012 at 9:49 AM
Hi,

>> I was wondering if there was a way to use DocX to handle the changes that I want and then take that document and print it and save it, while in memory, with word?
DocX does not use word. Word does not need to be installed on a machine for DocX to work. This is one of the best things about DocX. If you want to use word then please look into Microsoft.Office.Interop.Word

DocX cannot print, the work around people are using is the following.

1) Create or load a document using DocX
2) Manipulate the document using DocX
3) Save the document using DocX
4) Print the document using Interop

I know this violates your restriction because it means loading the document into memory twice.
But so far this is the best solution.

Kind regards,
Cathal