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

How to export as a Bitmap?

Recommended Posts

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
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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...