Skip to content

Commit

Permalink
Improve Office docsments support; Fix QL-Win#13 (with flaws).
Browse files Browse the repository at this point in the history
  • Loading branch information
xupefei committed May 20, 2017
1 parent a4aeea4 commit e0a7f38
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ private void LoadApplication()
case FileTypeEnum.Word:
_wordApp = new Microsoft.Office.Interop.Word.Application();
_wordApp.DisplayAlerts = WdAlertLevel.wdAlertsNone;
_wordApp.Documents.Add(_path);
_wordApp.Documents.Open(_path);
succeeded = true;
break;
case FileTypeEnum.Excel:
_excelApp = new Application();
_excelApp.DisplayAlerts = false;
_excelApp.Workbooks.Add(_path);
_excelApp.Workbooks.Open(_path);
var worksheets = _excelApp.ActiveWorkbook.Sheets;
if (worksheets != null)
foreach (Worksheet sheet in worksheets)
Expand Down

0 comments on commit e0a7f38

Please sign in to comment.