Does anyone know where I can find a reference document for formatting an excel document within Fox Pro.
I have been trying to figure out how to total an Excel table at the end of a column not at line 65000 or what ever the limit is.
Something similar to this:
#DEFINE True .T.
#DEFINE False .F.
#DEFINE xlSaveChanges 2
#DEFINE xlDialogSendMail 2
oExcel = CREATEOBJECT ("Excel.Application"
oExcel.VISIBLE = .T.
WITH oExcel
.DisplayAlerts = .F.
.Workbooks.OPEN ('c:\cstcntr' + mCstcntr + '.xls')
.ROWS("1:1"
.SELECT
.SELECTION.FONT.Bold = True
.Cells.SELECT
.Cells.EntireColumn.AutoFit
.ROWS("1:1"
.SELECT
.SELECTION.EntireRow.INSERT
.RANGE("A1"
.SELECT
.ActiveCell.FormulaR1C1 = 'Expense File for cost center ' + ;
mCstcntr + ' for ' + cmonth(ctod(Lmonth+'/03/03')) + ' ' + alltrim(str(year(date())))
.ROWS("1:1"
.SELECT
.SELECTION.FONT.Bold = True
.SELECTION.FONT
.SELECTION.FONT.NAME = "Arial"
.SELECTION.FONT.SIZE = 12
.COLUMNS("D
"
.SELECT
.SELECTION.NumberFormat = "#,##0.00"
.SELECTION.WrapText = False
.SELECTION.ORIENTATION = 0
.SELECTION.AddIndent = False
.SELECTION.ShrinkToFit = False
.SELECTION.MergeCells = False
.RANGE("A1"
.SELECT
.activewindow.CLOSE(xlSaveChanges)
.APPLICATION.Dialogs(xlDialogSendMail)
.APPLICATION.QUIT
ENDWITH
I have been trying to figure out how to total an Excel table at the end of a column not at line 65000 or what ever the limit is.
Something similar to this:
#DEFINE True .T.
#DEFINE False .F.
#DEFINE xlSaveChanges 2
#DEFINE xlDialogSendMail 2
oExcel = CREATEOBJECT ("Excel.Application"
oExcel.VISIBLE = .T.
WITH oExcel
.DisplayAlerts = .F.
.Workbooks.OPEN ('c:\cstcntr' + mCstcntr + '.xls')
.ROWS("1:1"
.SELECTION.FONT.Bold = True
.Cells.SELECT
.Cells.EntireColumn.AutoFit
.ROWS("1:1"
.SELECTION.EntireRow.INSERT
.RANGE("A1"
.ActiveCell.FormulaR1C1 = 'Expense File for cost center ' + ;
mCstcntr + ' for ' + cmonth(ctod(Lmonth+'/03/03')) + ' ' + alltrim(str(year(date())))
.ROWS("1:1"
.SELECTION.FONT.Bold = True
.SELECTION.FONT
.SELECTION.FONT.NAME = "Arial"
.SELECTION.FONT.SIZE = 12
.COLUMNS("D
.SELECTION.NumberFormat = "#,##0.00"
.SELECTION.WrapText = False
.SELECTION.ORIENTATION = 0
.SELECTION.AddIndent = False
.SELECTION.ShrinkToFit = False
.SELECTION.MergeCells = False
.RANGE("A1"
.activewindow.CLOSE(xlSaveChanges)
.APPLICATION.Dialogs(xlDialogSendMail)
.APPLICATION.QUIT
ENDWITH