Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //遮罩句柄
- IOverlaySplashScreenHandle splashHandle = null;
- IWorkbook workbook = excelControl.Document;
- try
- {
- splashHandle = SplashScreenManager.ShowOverlayForm(excelControl);
- workbook.LoadDocument(tbFilePath.EditValue.ToString());
- }
- catch
- {
- Common.MessageUtil.ShowErrorHint("加载文件错误");
- }
- finally
- {
- if (splashHandle != null)
- SplashScreenManager.CloseOverlayForm(splashHandle);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement