Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Charts in excel
Message
 
À
08/08/2005 15:11:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01039387
Message ID:
01039396
Vues:
18
This message has been marked as the solution to the initial question of the thread.
Don,


The syntax for ApplyCustomType method is:

expression.ApplyCustomType(ChartType, TypeName)

See more in Excel VBA Help (from Excel, hit ALT+F11, F1)


>If the excel code to create a chart is
>
> ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, TypeName:="Line - Column"
>
>how would you write this in foxcode?
>
>The following 4 lines will work OK.
>
>xlColumnClustered = 51
>xlBuiltIn = 21
>oExcel.Charts.add
>oExcel.ActiveChart.ChartType = xlColumnClustered
>
>
>But when I try to make it a custom chart it fails. I have tried all of the following variations without success.
>
>oExcel.ActiveChart.ApplyCustomType.ChartType(xlBuiltIn).TypeName = "Line - Column"
>oExcel.ActiveChart.ApplyCustomType.ChartType(xlBuiltIn,"Line - Column")
>oExcel.ActiveChart.ChartType(xlBuiltIn,"Line - Column")
>oExcel.ActiveChart.ChartType = xlBuiltIn
>oExcel.ActiveChart.ChartType = "Line - Column"
>oExcel.ActiveChart.ChartType(xlBuiltIn) = "Line - Column"
>
>
>Also, didn't we used to have a section on UT for OFFICE automation?
>
>Thanks for any help.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform