Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

Commented Unassigned: Cannot get HWND of a PowerPoint SlideShow window [21837]

$
0
0
Hi,

I migrated my WPF app from PIA v14 to NetOffice. I have problem with getting HWND (window handle) from PowerPoint. It was working on PIA v14, but when I try to access to __ppPresentation.SlideShowWindow.HWND__ property (ppPresentation is my PowerPoint presentation opened as SlideShow) with NetOffice, exception __"Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))"__ is thrown. How I can get handle to SlideShow window using NetOffice? Other functiomns works ok.
Comments: ** Comment from web user: SebastianDotNet **

the extension imitate the behavior of the "normal" interop assemblies 1:1
(PIA is a custom set of interop assemblies, may MS create a special workaround here)

It looks like you want the main window handle of the ppoint application. are you sure its the same as your slideshow window handle?(i think its not because the slideshow use its own [child] window)

(get the ppoint application main handle is easy trough the netoffice powerpoint application utils)


Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>