improve:PPT联动

This commit is contained in:
2026-01-18 01:05:54 +08:00
parent 60c341927f
commit 6ce2aea000
2 changed files with 63 additions and 42 deletions
+7 -1
View File
@@ -69,7 +69,13 @@ namespace Ink_Canvas.Helpers
{
try
{
Microsoft.Office.Interop.PowerPoint.Application pptApp = bestApp as Microsoft.Office.Interop.PowerPoint.Application;
Type appType = typeof(Microsoft.Office.Interop.PowerPoint.Application);
Microsoft.Office.Interop.PowerPoint.Application pptApp = null;
if (appType.IsInstanceOfType(bestApp))
{
pptApp = (Microsoft.Office.Interop.PowerPoint.Application)bestApp;
}
if (pptApp != null)
{