Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. //遮罩句柄
  2. IOverlaySplashScreenHandle splashHandle = null;
  3.  
  4. IWorkbook workbook = excelControl.Document;
  5. try
  6. {
  7. splashHandle = SplashScreenManager.ShowOverlayForm(excelControl);
  8. workbook.LoadDocument(tbFilePath.EditValue.ToString());
  9. }
  10. catch
  11. {
  12. Common.MessageUtil.ShowErrorHint("加载文件错误");
  13. }
  14. finally
  15. {
  16. if (splashHandle != null)
  17. SplashScreenManager.CloseOverlayForm(splashHandle);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement