By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,911 Members | 1,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,911 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

--------------------------------------------------------------------------------

Jan 12 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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/de...us/stg/stg/stg
createdocfile.asp

[StgOpenStorage]:
http://msdn.microsoft.com/library/de...us/stg/stg/stg
openstorage.asp

Here is a good sample for the code project site:
http://www.codeproject.com/file/stru...341&exp=0&sele
ct=569529

Additionally, the link below shows us how to use these methods with C++:
http://www.dotnetheaven.com/Uploadfi...250AM/_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

Jan 13 '06 #2

P: n/a
Thanks, the info Helps a lot

""Yuan Ren[MSFT]"" <v-****@microsoft.com> wrote in message
news:TY**************@TK2MSFTNGXA02.phx.gbl...
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/de...us/stg/stg/stg
createdocfile.asp

[StgOpenStorage]:
http://msdn.microsoft.com/library/de...us/stg/stg/stg
openstorage.asp

Here is a good sample for the code project site:
http://www.codeproject.com/file/stru...341&exp=0&sele
ct=569529

Additionally, the link below shows us how to use these methods with C++:
http://www.dotnetheaven.com/Uploadfi...250AM/_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

Jan 13 '06 #3

P: n/a
Hi,

You are welcome!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Jan 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.