Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp5.0 and MS Excel Automation
Message
De
18/06/1998 04:20:24
 
 
À
17/06/1998 18:10:42
Pamela Bulmahn
The University of Iowa
Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00109311
Message ID:
00109417
Vues:
26
>I am attempting to use MS Excel to produce a report from vfp data. I have the spreadsheet loaded and formatted just the way I want it, except, I can not get hard page breaks in. I have tried every possible format I can think of but it still gives me an error. The actual line of code I have is:
> objexcel.Worksheets(1).HpageBreaks.Add.Range("A166")
>The error message is:
> Invalid number of parameters.
>Thanks for your help.

Try to use:

objexcel.worksheets(1).Range("C10").Select
objexcel.worksheets(1).HPageBreaks.Add(objexcel.ActiveCell)
objexcel.worksheets(1).VPageBreaks.Add(objexcel.ActiveCell)
Saludos,
A.G.P.
---------
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform