Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Export Charts as JPG using VB.NET

Hi,
I tried searching this group and others to find a way to export a chart from
excel using vb.net but I can't seem to find any solution. I'm trying to
avoid using VBA.

I'm trying:

xlsheet.ChartObjects("ChartName").Export("test.jpg ", "test")

but that doesn't seem to be working. The export method doesn't seem to
work.

I get this error:
"Public member 'Export' on type 'ChartObject' not found."

Any help would be great.

Thanks,
JP



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Export Charts as JPG using VB.NET

I mean,

xlsheet.ChartObjects("ChartName").Export("test.jpg ", "jpg")

"JP" wrote in message
...
Hi,
I tried searching this group and others to find a way to export a chart

from
excel using vb.net but I can't seem to find any solution. I'm trying to
avoid using VBA.

I'm trying:

xlsheet.ChartObjects("ChartName").Export("test.jpg ", "test")

but that doesn't seem to be working. The export method doesn't seem to
work.

I get this error:
"Public member 'Export' on type 'ChartObject' not found."

Any help would be great.

Thanks,
JP






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Export Charts as JPG using VB.NET

Hi

ChartName seems like a variable ? If so then don't put quotes around it.

You need a .Chart in there too. Quote Excel VBA Help:
"This example exports chart one as a GIF file.

Worksheets("Sheet1").ChartObjects(1) _
..Chart.Export _
FileName:="current_sales.gif", FilterName:="GIF"HTH. Best wishes Harald

"JP" skrev i melding
...
I mean,

xlsheet.ChartObjects("ChartName").Export("test.jpg ", "jpg")



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Export Charts as JPG using VB.NET

Nevermind, I found it.

Wrong:
xlsheet.ChartObjects("ChartName").Export("test.jpg ", "jpg")

Correct:
xlsheet.ChartObjects("ChartName").Chart.Export("te st.jpg", "jpg")

"JP" wrote in message
...
I mean,

xlsheet.ChartObjects("ChartName").Export("test.jpg ", "jpg")

"JP" wrote in message
...
Hi,
I tried searching this group and others to find a way to export a chart

from
excel using vb.net but I can't seem to find any solution. I'm trying to
avoid using VBA.

I'm trying:

xlsheet.ChartObjects("ChartName").Export("test.jpg ", "test")

but that doesn't seem to be working. The export method doesn't seem to
work.

I get this error:
"Public member 'Export' on type 'ChartObject' not found."

Any help would be great.

Thanks,
JP









Reply
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
export Pivot Charts to MS Word? srpd Excel Discussion (Misc queries) 2 January 28th 10 10:56 PM
Export charts crôtul Charts and Charting in Excel 1 July 3rd 07 09:35 PM
Excel should let me export charts as .eps or .png milton585 Charts and Charting in Excel 2 July 22nd 06 02:36 AM
export excel charts for animated gif parkesarah Charts and Charting in Excel 2 July 12th 06 04:52 PM
How can I export charts as graphics sequentially? wibsy Charts and Charting in Excel 2 October 25th 05 11:51 AM


All times are GMT +1. The time now is 08:10 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"