Could someone tell me how to insert a page break in a Excel sheet using VFP, please? Following is my codes,
sfile=Fullpath('EST.xls')
oExcel=CreateObject("Excel.Application"
oExcel.visible=.T.
oExcel.Workbooks.Open(sfile)
WITH oExcel
oSheet = oExcel.ActiveSheet
.range("F3".Value ="ABC"
* need to add a pagebreak here.**
ENDWITH
oExcel.Quit()
sfile=Fullpath('EST.xls')
oExcel=CreateObject("Excel.Application"
oExcel.visible=.T.
oExcel.Workbooks.Open(sfile)
WITH oExcel
oSheet = oExcel.ActiveSheet
.range("F3".Value ="ABC"
* need to add a pagebreak here.**
ENDWITH
oExcel.Quit()