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 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.