Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel PageBreaks(1).DragOff Feature
Message
De
02/07/2007 09:16:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/07/2007 07:32:48
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:
01237092
Message ID:
01237112
Vues:
15
>Celtin !
>
>Thanks for your response. I had tried that before and even now but to no avail.
>Mine goes like ;
>
>"loxls.ActiveWorkbook.ActiveSheet.VPageBreaks(1).DragOff(xlToRight,1)"
>
>I also tried;
>
>"loxls.ActiveWorkbook.ActiveSheet.VPageBreaks(1).DragOff(-4161,1)"
>
>I have included the Excel header file via #INCLUDE EXCEL9.H at the begining of the procedure that runs this code. I use Office 2000.
>
>The Ole Error Code is 0x800a03ec (Unknown COM status Code)
>
>However, typing Obj=loxls.ActiveWorkbook.ActiveSheet.VPageBreaks(1) at the error level results in an Oject variable
>
>Did it work at your end ? if you haven't tried it, please do and give me the feedback
>
>Fred Matano

Yes it works here. Probably you didn't switch view.
PS: I don't know what would be the benefit of this command for you. I'd instead use:
with oXL.ActiveWorkBook.ActiveSheet
 .VPageBreaks(nIndex).Location = .RAnge('K1') && for example set including column J
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform