Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - SOLVED: SaveAsImage does not work
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: SaveAsImage does not work

 Post Reply Post Reply
Author
Message
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: SaveAsImage does not work
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.