user1018 Posted March 18, 2014 Report Share Posted March 18, 2014 Hello, Im trying to perform a Copy to Clipboard (as a Bitmap) in my C++ program without having to use the toolbar. Im using my own toolbar, and I've tried the Export function but it does not appear to do anything. m_chartPtr->Export(Cfx62::FileFormat_Bitmap, NULL); Am I missing something? Thanks. Quote Link to comment Share on other sites More sharing options...
XTr33m Posted March 18, 2014 Report Share Posted March 18, 2014 Hello Quote Link to comment Share on other sites More sharing options...
ExequielA Posted March 18, 2014 Report Share Posted March 18, 2014 Hello,In order to achieve the behavior you are looking for, you need to pass a VARIANT object as the second parameter of the Export method. Please refer to the code below:[C++] VARIANT v;V_VT(&v) = VT_EMPTY;m_chartPtr->Export(Cfx62::FileFormat_Metafile,v); I hope this helps. 1 Quote Link to comment Share on other sites More sharing options...
user1018 Posted March 24, 2014 Author Report Share Posted March 24, 2014 It works! Thanks. 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.