I want to insert a page break in a excell sheet with ole
What is the instruction ??
oSheet:HPageBreaks:Add("Before") ???
Thanks
#define xlPageBreakManual -4135
FUNCTION MAIN()
LOCAL oExcel := CREATEOBJECT( "Excel.Application" )
LOCAL oSheet
oExcel:WorkBooks:Add()
oSheet = oExcel:ActiveSheet
oSheet:Cells( 1, 1 ):Value = "This is the first page"
oSheet:Rows( 2 ):PageBreak = xlPageBreakManual
oSheet:Cells( 2, 1 ):Value = "This is the second page"
oExcel:Visible = .T.
RETURN NIL
Jack wrote:Thanks, it works .
Where did you find the syntax about OLE ?
Thanks .
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 75 guests