Show office exception instead of crash

This commit is contained in:
ema
2025-06-12 15:31:28 +08:00
parent e2e5885fd5
commit f897ce46ea
3 changed files with 17 additions and 11 deletions

View File

@@ -44,9 +44,6 @@ public class PreviewPanel : WindowsFormsHost, IDisposable
_control = new PreviewHandlerHost();
Child = _control;
_control.Open(file);
//SetForegroundWindow(new WindowInteropHelper(context.ViewerWindow).Handle);
//SetActiveWindow(presenter.Handle);
}
[DllImport("user32.dll")]