Embed powerpoint in desktop programs

张德文 1 Reputation point
2021-06-18T02:23:52.283+00:00

I use the Microsoft.Office.Interop.PowerPoint API to embed PPT into a desktop program, and encounter the following problems:

  1. The PPT will appear first and then be embedded in the program. Can it be avoided?
  2. Use PpSlideShowType.ppShowTypeWindow mode to display and open the pen, sometimes the pen cannot be used: can't draw a line, line will be displayed after draw end, the line drawing is not complete after the window is enlarged and so on.106824-sss.png
  3. When the PPT has been opened directly, Microsoft.Office.Interop.PowerPoint.Application app = new Microsoft.Office.Interop.PowerPoint.Application(); will throw an exception. 106783-sss.png

Is there any way to solve these problems? Thank you!

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,647 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Hua-MSFT 27,556 Reputation points
    2021-06-18T07:33:22.96+00:00

    @张德文
    As your issue is more realted to development, but tag "office-powerpoint-itpro" focus more on general issue of PowerPoint client, I would modify the tag.

    To better help you, you may post new threads on the forums shown on following link.
    PowerPoint add-ins developer community

    Thanks for your understanding.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments