jacob « Excel File « Java I/O Q&A





1. How to saveas Excel File using Jacob (Java)    stackoverflow.com

I am trying to saveas excel file, but it gives an error: Can't map name to dispid: FileSaveAs.

private ActiveXComponent objExcel = new ActiveXComponent("Excel.Application");
excelObject = objExcel.getObject();
Dispatch.put(excelObject, "Visible", new Variant(false));
workbook = objExcel.getProperty("Workbooks").toDispatch();
workbook = ...