Print Page | Close Window

Copy chart to clipboard

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=24584
Printed Date: 25 July 2025 at 8:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Copy chart to clipboard
Posted By: wopag
Subject: Copy chart to clipboard
Date Posted: 22 July 2025 at 2:58am


HI,

We just upgraded from v15 to 24 version.  We are just getting over the differences in the versions but have noticed that the copy to clipboard method we were using no longer works.


    Clipboard.Clear
    DoEvents
    Picture1.Cls
    Picture1.Width = Me.ChartControl.Width
    Picture1.Height = Me.ChartControl.Height
    Me.ChartControl.PrintToDC Picture1.hDC, -1, -1, Me.ChartControl.Width / Screen.TwipsPerPixelX, Me.ChartControl.Height / Screen.TwipsPerPixelY
    Clipboard.SetData Picture1.Image, vbCFBitmap




Using a a 3d Pie chart only copies the legend - it ignores the chart?

/Stu




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net