Hi all
I am using Excel automation for reporting in my vfp application.
there are certain reports I need to generate an excel as well as a PDF output. the output is properly formatted as per requirement in Excel
I tried out the excel export feature for which the code is as below
oExcel = Createobject('Excel.application')
excelfilename=fullpath(curdir()) + "excelxxxxx"
... (content)
...
savelocation = excelfilename + ".pdf"
oExcel.Activeworkbook.ExportAsFixedFormat(0,savelocation,0,.f.,.t.,.f.,.f.,.t.)
I am getting an error as
Ole dispatch exception code 0 from microsoft excel. Document not saved. Error encountered while saving
Any help on this would be highly appreciated
Thanks
Ravi
I am using Excel automation for reporting in my vfp application.
there are certain reports I need to generate an excel as well as a PDF output. the output is properly formatted as per requirement in Excel
I tried out the excel export feature for which the code is as below
oExcel = Createobject('Excel.application')
excelfilename=fullpath(curdir()) + "excelxxxxx"
... (content)
...
savelocation = excelfilename + ".pdf"
oExcel.Activeworkbook.ExportAsFixedFormat(0,savelocation,0,.f.,.t.,.f.,.f.,.t.)
I am getting an error as
Ole dispatch exception code 0 from microsoft excel. Document not saved. Error encountered while saving
Any help on this would be highly appreciated
Thanks
Ravi