473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 8968
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: james545 | last post by:
I am having a problem with ofstream creating files. Sometimes when I run the program, ofstream creates a new file for writing and writes to it. No problem. But sometimes it fails to create the...
2
by: LeTubs | last post by:
Hi I have few questions in realtion to arrays, I assume that they are not available as a data type, is this correct ? The reason why is that I want to store a large amount of data for a...
3
by: Kay | last post by:
IIS cannot read files in a directory reporting that : Microsoft VBScript runtime (0x800A01B6) Object doesn't support this property or method: 'Fso.GetFolder' This has to do with...
13
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to...
7
by: Grace | last post by:
Does it have any ways that asp.net web application can create the file on client computer or get files from client computer? Thanks.
14
by: IVETH | last post by:
Hi Can anyone provide an example of how to read files in java and upload this information to the database ? Thanks
4
by: smartjoe85 | last post by:
can anyone give me a program to read files from my harddisk from dos environment
1
by: pritdongare | last post by:
hiiiii, pritam here. i m doing xml parsing,,in dis i hav to take xml files one by one from folder and then parse them,,In this i won to know how to read files from folder.plz try to reply fast.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.