User (Legacy) Posted November 7, 2000 Report Share Posted November 7, 2000 Hi, I know that the Export method from the IDispatch interface can be utilized to save a template of the chart without the data. My question, is that I am using the IPersistStreamInit interface to save the chart, and I was wondering how I could go about eliminating the data in this method. A snippet of my code is shown below...do I need to call the Export method, or is there another interface I need to use? IPersistStorage *pIPS; IPersistStreamInit *pIPSI; hr = pObject->QueryInterface(IID_IPersistStorage,(void **)&pIPS); if (SUCCEEDED(hr)) hr = pIPS->QueryInterface(IID_IPersistStreamInit,(void **)&pIPSI); pIPS->Release(); if (SUCCEEDED(hr)) { CLSID clsID; hr = pIPSI->GetClassID(&clsID); hr = WriteClassStm(pStream, clsID); hr = pIPSI->Save(pStream, TRUE); pIPSI->Release(); } } pStream->Release(); return hr; Thanks Abe Krebs Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.