I am using Microsoft Excel for all our reporting needs which is run from Visual Foxpro application - using automation. This is how I call the excel and run a macro to format or to do any other changes in the report.
ocMacfile = " macro file name e.g c:\macros\testreport.xls "
ocMacsub = "sub routine name in the macro e.g testreport "
oExcel = CREATEOBJECT("Excel.Application")
oExcel.Workbooks.OPEN(ocMacfile)
oExcel.APPLICATION.RUN("&ocMacsub", lcInputFile, ocOutfile,
ocHd00,ocHd0,ocHd1,ocHd2,ocHd3,ocHd4)
I pass various parameters to the macro to format the report.
Now our company is planning to move to Open Office and I would like to know any one have done this type of automation from Visual FoxPro using Open office.
Any help or suggetion greatly appreciated.
Kurjo
ocMacfile = " macro file name e.g c:\macros\testreport.xls "
ocMacsub = "sub routine name in the macro e.g testreport "
oExcel = CREATEOBJECT("Excel.Application")
oExcel.Workbooks.OPEN(ocMacfile)
oExcel.APPLICATION.RUN("&ocMacsub", lcInputFile, ocOutfile,
ocHd00,ocHd0,ocHd1,ocHd2,ocHd3,ocHd4)
I pass various parameters to the macro to format the report.
Now our company is planning to move to Open Office and I would like to know any one have done this type of automation from Visual FoxPro using Open office.
Any help or suggetion greatly appreciated.
Kurjo