User (Legacy) Posted March 13, 2000 Report Share Posted March 13, 2000 Is there any reason I can't import the same template into more than one chart? For instance, I've got the following code: // pChart1 and pChart2 are valid ChartFX IChartFX pointers (the objects already exist.) // pStream is an IStream* which contains a previously // exported CHART_CFXOLETEMPLATE stream. long nRetVal = 0; // Copy the stream into variant. VARIANT vChartFXTemplate; VariantClear(&vChartFXTemplate); V_VT(&vChartFXTemplate) = VT_STREAM; V_UNKNOWN(&vChartFXTemplate) = pStream; pChart1->raw_Import(CHART_CFXOLETEMPLATE, vChartFXTemplate, &nRetVal); pChart2->raw_Import(CHART_CFXOLETEMPLATE, vChartFXTemplate, &nRetVal); Now when I display pChart1 and pChart2, only pChart1 has the template applied to it and pChart2 shows the default properties. The returned HRESULT is S_OK for both calls, and nRetVal is 0 for both calls. ??? Andrew Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.