Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i export a pivot chart as a static chart object? | Charts and Charting in Excel | |||
Chart.Export images are shrinking as I export more images | Charts and Charting in Excel | |||
excel chart to tiff or eps format | Charts and Charting in Excel | |||
How to export Excel chart as tiff or bmp file? | Charts and Charting in Excel | |||
export chart - what controls exported chart width | Excel Programming |