Jump to content
Software FX Community
Sign in to follow this  
user1018

How to export as a Bitmap?

Recommended Posts

user1018    0

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.

 

Share this post


Link to post
Share on other sites
ExequielA    1
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.
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×