Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4081758
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:06:07+00:00 2026-05-20T18:06:07+00:00

I am a beginner with C# and windows programming. I have written a service

  • 0

I am a beginner with C# and windows programming. I have written a service which converts a powerpoint file to individual slide images using the slide.export method that the microsoft.office.interop.powerpoint libraries provide. I am able to get all the slides but some of them seem to be broken and i see a "Image cannot be displayed. Memory exceeded" or the likes of it. I thought it was insufficient memory and then just tried it with a ppt having one slide(whose image was broken) and to my dismay I found the single image to be broken as well.

Am I using export wrongly or should I pass different arguments than I am passing already? I will paste the code below.

Microsoft.Office.Interop.PowerPoint.Application appPpt
    = new Microsoft.Office.Interop.PowerPoint.Application();

Microsoft.Office.Interop.PowerPoint.Presentation objActivePresentation
    = appPpt.Presentations.Open(strFilePath,
                                Microsoft.Office.Core.MsoTriState.msoCTrue,
                                Microsoft.Office.Core.MsoTriState.msoTriStateMixed,
                                Microsoft.Office.Core.MsoTriState.msoFalse);

foreach (Microsoft.Office.Interop.PowerPoint.Slide objSlide
                                                   in objActivePresentation.Slides)
{
    //Names are generated based on timestamp. 
    objSlide.Export(slideName, "PNG", 960, 720);
    objSlide.Export(slideNameMedium, "JPG", 307, 231);
    objSlide.Export(slideNametn, "JPG", 150, 113);
}

I’m in need of help here. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:06:07+00:00Added an answer on May 20, 2026 at 6:06 pm

    try SaveAs.
    Hope it helps…..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I am a total beginner in any kind of Windows related programming. I
I'm an absolute beginner in Outlook programming and Windows GUI programming in general. But
I'm a beginner starting to use Microsoft Visual C++ Express 2010 for Windows Programming.
I am a complete beginner to working with windows services. I have a basic
Beginner android question. Ok, I've successfully written files. E.g. // get the file name
As a complete beginner with no programming experience, I am trying to find beautiful
I'm a complete beginner when it comes to programming. I'm taking a stab at
I'm beginner in programming. Can somebody please explain (by simple words) what do I
I'm a beginner in programming. I've just made a program called Guessing Game. And
I'm sort of learning C, I'm not a beginner to programming though, I know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.