LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Export Chart as TIFF or JPG

Hello,

I wrote an application with Excel and VBA to create charts and then export
them as GIF. Works great. However, I then need to create a report. Crystal
Reports does not support GIF.

I need to change the code to export to TIFF or JPG. I thought I could, but
am getting an error.

Could someone please let me know how to export a chart to TIFF or JPG?


Thanks.

Here is my current code:

Set CurrentChart = Sheets("chart").ChartObjects(1).Chart

myFileName = ThisWorkbook.path & "\images\" & reviewFileName & "_" &
mPageNameStr & "_ch1.gif"

If Not FileExists(myFileName) Or iChartFlag = "Y" Then
CurrentChart.Export FileName:=myFileName, FilterName:="GIF"
End If

Me.Image1.Picture = LoadPicture(myFileName)

This works great. I tried changing GIF to TIFF or JPG. I get this error
message.

The specified dimension is not valid for the current chart type. ??!!


Thanks,

Tony
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i export a pivot chart as a static chart object? James Charts and Charting in Excel 2 November 11th 08 10:05 PM
Chart.Export images are shrinking as I export more images Jared Charts and Charting in Excel 3 January 29th 08 03:23 AM
excel chart to tiff or eps format Raoul Charts and Charting in Excel 1 November 18th 06 05:22 AM
How to export Excel chart as tiff or bmp file? Michal Charts and Charting in Excel 3 June 28th 05 12:34 AM
export chart - what controls exported chart width Art Parra Excel Programming 2 December 6th 04 04:35 AM


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"