Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Page Break
Message
De
12/05/2006 09:07:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/05/2006 08:44:14
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01121270
Message ID:
01121278
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>I am trying to apply Page Breaks to an excel sheet object. I have identified the cells to apply the breaks. The syntax I get from the Macro goes like;
>
> ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
>
>I How do I apply this using VFP Syntax assuming the break is to be at cell Loxls.Cells(10,1) ?.

Named parameters are not supported in VFP, but usually Excel has an alternative syntax, which places the parameters (without the names) between parentheses.

So, assuming that loXls is a spreadsheet, I guess that would translate to something similar to:
loSheet.HPageBreaks.Add(loXls.Cells(10,1))
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform