Opening documents from within documents 
Author Message
 Opening documents from within documents

I need to be able to open a document from within a document
to grab some data from it.  I don't want the opened document's
views to be created, I just need to serialize the data, get
what I need, then close it.

What I have working calls OpenDocumentFile, I then get the data
and subsequently call OnCloseDocument.  This works fine except
that the view get created and destroyed so a window flash is
seen.

I tried serializing the document directly but that did not work.
Is there a (hopefully easy) way to get data from a serialized
file?

Thanks,

Joe Clark



Sat, 05 Aug 2000 03:00:00 GMT  
 Opening documents from within documents

Can you use CFile or CStdioFile instead of a CDocument derived object?

--
Jeff May
Express Software Services, Inc



Sat, 05 Aug 2000 03:00:00 GMT  
 Opening documents from within documents

Quote:
> I need to be able to open a document from within a document
> to grab some data from it.  I don't want the opened document's
> views to be created, I just need to serialize the data, get
> what I need, then close it.

> What I have working calls OpenDocumentFile, I then get the data
> and subsequently call OnCloseDocument.  This works fine except
> that the view get created and destroyed so a window flash is
> seen.

> I tried serializing the document directly but that did not work.
> Is there a (hopefully easy) way to get data from a serialized
> file?

Have you tried calling CYourDocument::OnOpenDocument(lpszPathName)?

cU
--

                        http://djuga.home.ml.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Retriever 1.0 is out:   http://retriever.home.ml.org

Shareware image viewer, thumbnailer & database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Sat, 05 Aug 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. MDI: Create a new document from within another document

2. Documents within Documents

3. Search within documents

4. Help!!! Load a Document within an ADD-IN

5. Help!!! Load a Document within an ADD-IN

6. Help!!! Load a Document within an ADD-IN

7. Get current Document from within toolbar?

8. Getting the document from within a global function

9. Communicating between multiple document types within application

10. Update menu item within document

11. Newbie: GetClientRect Within Document Class?

12. access Document variables from within a dialog box

 

 
Powered by phpBB® Forum Software