MSWord reading from DB and saving into DB in .net

Zakhar
Уже с Приветом
Posts: 558
Joined: 19 Nov 2002 19:12
Location: MD

MSWord reading from DB and saving into DB in .net

Post by Zakhar »

On behalf of my friend:

Hi, I am new to .net and word automation.

I have Windows.Net application . On btnclick I am creating MsWord object and a new document object.

I need to read MSWord document from the blob field in db and be able to save the Document to the blob datafield. I can do it by saving into a file and reading from that file and saving into a db. Is it possible to avoid creating file and save a document directly into a DB ?

I can read from a field into memory stream , and I can save blob field. But I don't know how to populate a new document from the stream or array and how I can get MsWord document as a blob or array.

Thank you.

Return to “Вопросы и новости IT”