|  | 
| SOLVED: SaveAsImage does not work | 
| Post Reply   | 
| Author | |
| McKloony   Senior Member     Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| McKloony   Senior Member     Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Aaron   Senior Member   Joined: 29 January 2008 Status: Offline Points: 2192 |  Post Options  Thanks(0)  Quote  Reply  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.... | |
|  | |
| McKloony   Senior Member     Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |