Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting Print Page Breaks
Message
From
13/01/2003 10:28:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/01/2003 10:13:10
Todd Brown
Teachers Credit Union
Granger, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00740978
Message ID:
00740986
Views:
14
This message has been marked as the solution to the initial question of the thread.
>I am running an automated program that prints the final product to the printer and I need to insert a page break at line 42 if certain parameters are met within the program.
>
>I am having problems converting this into VFP code.
>
> Range("A42").Select
> ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
>
>Thanks
>Todd
with oExcel.Sheets('SheetNameOrIndex')
 .HPageBreaks.Add(.Range("A42"))
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
Next
Reply
Map
View

Click here to load this message in the networking platform