Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel PageBreaks(1).DragOff Feature
Message
From
02/07/2007 09:16:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/07/2007 07:32:48
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:
01237092
Message ID:
01237112
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform