Print Page | Close Window

SOLVED: SaveAsImage does not work

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=18039
Printed Date: 21 November 2024 at 4:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: SaveAsImage does not work
Posted By: McKloony
Subject: SOLVED: SaveAsImage does not work
Date Posted: 11 March 2011 at 9:34am
are they any conditions or propertys if the SaveAsImage Funcion doesn't work? I use:

ChartControl.SaveAsImage "c:\test.png", ChartControl.Width, ChartControl.Height




-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: Oleg
Date Posted: 11 March 2011 at 12:49pm
parameters should be in Pixels... check if you your scale mode is pixels.

Also maybe your Windows 7 just doesn't allow save directly to C:


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: McKloony
Date Posted: 12 March 2011 at 4:37am
The scalemode of witch object I have to set to vbPixels?

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6


Posted By: Aaron
Date Posted: 12 March 2011 at 6:41am

Hi,

If .Width and .Height is too large it doesn't create image. Try this instead:

ChartControl.SaveAsImage "c:\test.bmp", ChartControl.Width / Screen.TwipsPerPixelX, ChartControl.Height / Screen.TwipsPerPixelY

 
This way you have at least 'normal' size image (like a screenshot)
 

 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: McKloony
Date Posted: 14 March 2011 at 3:35am
Yes thanks, this works fine!




-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



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