471,319 Members | 2,689 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

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

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
3 8773
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
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
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.

Similar topics

reply views Thread by james545 | last post: by
2 posts views Thread by LeTubs | last post: by
14 posts views Thread by IVETH | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.