Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Page Break
Message
From
12/05/2006 09:30:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/05/2006 09:26:34
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01121270
Message ID:
01121289
Views:
8
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform