Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a terrible problem! help! Pin
Joaquín M López Muñoz11-Oct-02 5:22
Joaquín M López Muñoz11-Oct-02 5:22 
GeneralRe: a terrible problem! help! Pin
ns11-Oct-02 5:34
ns11-Oct-02 5:34 
GeneralRe: a terrible problem! help! Pin
Joaquín M López Muñoz11-Oct-02 5:36
Joaquín M López Muñoz11-Oct-02 5:36 
GeneralRe: a terrible problem! help! Pin
ns11-Oct-02 5:56
ns11-Oct-02 5:56 
GeneralRe: a terrible problem! help! Pin
ns11-Oct-02 6:00
ns11-Oct-02 6:00 
GeneralRe: a terrible problem! help! Pin
Joaquín M López Muñoz11-Oct-02 6:00
Joaquín M López Muñoz11-Oct-02 6:00 
Generalupdate! Pin
ns15-Oct-02 3:14
ns15-Oct-02 3:14 
GeneralStoring additional data in MsWord 2000/XP file Pin
mariuszpopiolek11-Oct-02 4:06
mariuszpopiolek11-Oct-02 4:06 
Hi
I issued this problem recenty but now I know a bit more about its nature.
I'm trying to store some data in MsOffice files and the problem is that MsWord 2000/XP removes my data after I save document from the Word (I tried also MsWord 97,MsExcel 97/2000/XP and here my data remains untouched). Now some explanation how I store my data in doc file:

1. Using StgOpenStorage I open office file as a compound file
2. I create new storage with IStorage::CreateStorage
3. Within newly created storage I create new stream using IStorage::CreateStream
4. I store my data within newly created stream using IStream::Write
5. I release all opened streams and storages

I discovered that when in doc file Word adds stream 0Table (1Table is probably always present) my data doesn't dissapear (I don't know why). I don't know how to prevent Word from deleting my data but I suppose that forcing Word to add 0Table stream could solve my problem (but how can I do this). I would appreciate any hints.

Mariusz Popiolek
GeneralCount appl in DLL Pin
Raphael Kindt11-Oct-02 3:21
Raphael Kindt11-Oct-02 3:21 
GeneralRe: Count appl in DLL Pin
Jon Hulatt11-Oct-02 3:44
Jon Hulatt11-Oct-02 3:44 
GeneralRe: Count appl in DLL Pin
Raphael Kindt11-Oct-02 4:10
Raphael Kindt11-Oct-02 4:10 
GeneralRe: Count appl in DLL Pin
Jon Hulatt11-Oct-02 4:25
Jon Hulatt11-Oct-02 4:25 
GeneralRe: Count appl in DLL Pin
Raphael Kindt11-Oct-02 4:40
Raphael Kindt11-Oct-02 4:40 
GeneralRe: Count appl in DLL Pin
Steve S11-Oct-02 6:27
Steve S11-Oct-02 6:27 
GeneralRe: Count appl in DLL Pin
Paul M Watt11-Oct-02 5:47
mentorPaul M Watt11-Oct-02 5:47 
GeneralRe: Count appl in DLL Pin
Daniel Lohmann11-Oct-02 13:45
Daniel Lohmann11-Oct-02 13:45 
Generalsplash screen Pin
ns11-Oct-02 2:28
ns11-Oct-02 2:28 
GeneralRe: splash screen Pin
Chris Losinger11-Oct-02 2:46
professionalChris Losinger11-Oct-02 2:46 
GeneralRe: splash screen Pin
ns11-Oct-02 2:51
ns11-Oct-02 2:51 
GeneralRe: splash screen Pin
Joaquín M López Muñoz11-Oct-02 3:12
Joaquín M López Muñoz11-Oct-02 3:12 
GeneralRe: splash screen Pin
ns11-Oct-02 3:44
ns11-Oct-02 3:44 
GeneralRe: splash screen Pin
Joaquín M López Muñoz11-Oct-02 3:51
Joaquín M López Muñoz11-Oct-02 3:51 
GeneralRe: splash screen Pin
ns11-Oct-02 4:45
ns11-Oct-02 4:45 
Generalzip format Pin
includeh1011-Oct-02 2:24
includeh1011-Oct-02 2:24 
GeneralRe: zip format Pin
Chris Hambleton11-Oct-02 2:33
Chris Hambleton11-Oct-02 2:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.