Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Page Break
Message
De
12/05/2006 09:30:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/05/2006 09:26:34
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:
01121289
Vues:
11
>Hilmar
>
>You are right. Loxls.HPageBreaks.Add(loXls.Cells(Ln,i)) works perfectly well.

OK, great.

>I was using "ActiveWindow" instead of "ActiveSheet"

I usually keep two object references: one for the Excel object (loExcel), and one for the active sheet (loSheet). Sometimes I need the workbook which contains the sheet, but then I simply get the parent of the Sheet when I need it. The other two references, I keep throughout the entire Automation process.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform