User (Legacy) Posted March 6, 2002 Report Share Posted March 6, 2002 Hi! I'm trying to export chart data to an OLE stream ( IStream* ). I pass CHART_CFXOLEFILE as the first argument to Export method. But what should be the second argument? It seems to be VARIANT structure but of what type? (VT_I4, VT_UNKNOWN, or else?) Here's my code: IStream* pStream = ... // create stream here VARIANT var; V_VT(&var) = VT_UNKNOWN; V_UNKNOWN(&var) = pStream; HRESULT hr = pChartFX->Export(CHART_CFXOLEFILE, var); pStream->Commit(...); Export method returns S_OK but the stream remains empty (nothing is saved). Please help! Thanks in advance, Serge Quote Link to comment Share on other sites More sharing options...
Software FX Posted March 7, 2002 Report Share Posted March 7, 2002 You must use VT_STREAM -- FP Software FX, Inc. 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.