Autor Beitrag
MisterBum83
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 245
Erhaltene Danke: 2

WIN XP
Delphi 6
BeitragVerfasst: Do 13.01.11 16:05 
Hallo zusammen,

ich möchte in Excel 2007 ein Chart (Tortendiagramm) erstellen, aber leider funktioniert der Befehl, der mit Excel 2003 noch funktioniert, unter 2007 nicht mehr. Für andere Diagramme gehts, aber halt nicht das Tortendiagramm.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
if Chart_Gallery = xl3DPie then
      begin

        Excel.Charts[1].Chartwizard(Excel.Worksheets['Tabelle1'].Range[Bereich], 
          Chart_Gallery,
          Chart_Format,
          Chart_PlotBy,
          Chart_CategoryLabels,
          Chart_SeriesLabels,
          Chart_HasLegend,
          Chart_Title, 
          Chart_CategoryTitle, 
          Chart_ValueTitle, 
          Chart_ExtraTitle); 

end;


Hat von euch jemand eine Idee?


Der Fehler lautet (nur unter Office 2007):
Die angegebene Dimension ist ungültig für den aktuellen Diagrammtyp.

Gruß und Dank


Moderiert von user profile iconNarses: Topic aus Windows API verschoben am Do 13.01.2011 um 17:28