Powerpoint: How to use CreateVideo function to run synchronously

kamalasubha muthukumar 41 Reputation points

Hi all,
I have implemented the C# code which generates video from ppt. I could see that CreateVideo() runs in an asynchronous manner. When the parent process closes the presentation, the function terminates the creation abruptly. Is there any way to call CreateVideo() function synchronous with the parent process?

Please find the code in the txt file.63454-program.txt

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,391 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel Zhang-MSFT 9,621 Reputation points

    Hi kamalasubhamuthukumar-9493,
    You can achieve synchronization by checking Presentation.CreateVideoStatus property.
    Here is my test code you can refer to.
    Test result:
    Best Regards,
    Daniel Zhang

    If the response 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.