protected override OfficeDocument Open(System.IO.FileInfo file, String contentid, String rep) { Excel.Workbook workbook = application.Workbooks.Open(file.FullName, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing); Excel2003OfficeDocument officeDocument = new Excel2003OfficeDocument(workbook); officeDocument.SaveContentProperties(contentid, rep); return(officeDocument); }
private void ActivateDocument(Excel.Workbook workbook) { OfficeDocument officeDocument = new Excel2003OfficeDocument(workbook); if (officeDocument.IsPublished) { if (MenuListener != null) { OfficeApplication.MenuListener.DocumentPublished(); } } else { if (MenuListener != null) { OfficeApplication.MenuListener.NoDocumentPublished(); } } }