
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~