积极答复者
WPF如何调用PPT的笔和橡皮工具?

问题
答案
全部回复
-
Hi,
查看MSDN:Microsoft.Office.Interop.PowerPoint Namespace 之后,只发现 SlideShowView.PointerType Property 。
要将Pointer更改为笔或者橡皮,可以将PointerType属性设置为ppSlideShowPointerPen或者ppSlideShowPointerEraser。
Best Regards,
Bob
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -
-
Hi,
你说的承载...是指嵌入PowerPoint程序到WPF程序,还是单独的显示PPT文档?
嵌入PowerPoint程序,你可以使用Win32 api SetParent().
https://www.codeproject.com/Tips/673701/Hosting-EXE-Applications-in-a-WPF-Window-Applicati
显示PPT文档,你可以选择WebBrowser。
Best Regards,
Bob
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -
Hi,
请帮助我理解你的问题, 你说的PPT是指程序还是文档 ?
Best Regards,
Bob
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -
Hi,
WPF中,所有元素和窗体共用一个句柄, 你不能获取Canvas的句柄。所以你不能SetParent 到Canvas上。
变通方案是Host Winform的控件,例如panel,然后在panel上承载。
Best Regards,
Bob
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. -