SHARE
TWEET

Untitled

a guest Oct 20th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top