How do I Read & Create DOC files(Structured Storage Files)

D

Dwight

I need to be able to read and create Structured Storage Files. I have not
been able to find anything about this except for C++, which I do not know.
currently i'm using a DOC viewer (eDoc) just to view them. But I need to do
this programatically. Could anyone point me to a place where I can find info
on how to achieve this?

Sybari has content filter lists that are stored in DOC files and I need to
be able to manage them.


Thanks

--------------------------------------------------------------------------------
 
Y

Yuan Ren[MSFT]

Hi,

Welcome to MSDN newsgroup!

For your issue, I suggest you call the Win32 native API using the P/Invoke.
There are tow methods you can use. One is the StgCreateDocfile which can
create a doc file; another is the StgOpenStorage which can open the storage
object in the file system. These methods are described in the MSDN
documentation links below:
[StgCreateDocfile]:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stg/stg/stg
createdocfile.asp

[StgOpenStorage]:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stg/stg/stg
openstorage.asp

Here is a good sample for the code project site:
http://www.codeproject.com/file/structstor.asp?df=100&forumid=341&exp=0&sele
ct=569529

Additionally, the link below shows us how to use these methods with C++:
http://www.dotnetheaven.com/Uploadfile/mahesh/_com104252005081250AM/_com1.as
px?ArticleID=307eca4f-723b-4ed5-b823-2a05e71a1402

I appreciate your understanding and hope the above information helps, if
you have any issues or concerns please let me know. I will be happy to be
of further assistance.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
 

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