Share via

PowerPoint error when processing many Shapes

Anonymous
2011-03-03T15:47:49+00:00

I have an application that automatically creates a PowerPoint presentation; I am in the process of upgrading the application to Windows 7 and Office 2007 (it currently runs on Windows XP and Office 2003).  The way I create the presentation is by programatically copying a range from an Excel worksheet to a PowerPoint slide, on some of my slides I have Shape objects also and for those slides I programatically set the text like "this.PowerPointSlide.Shapes[0].TextFrame.TextRange.Text = "some text";".  While testing my application I get the following error (the name of the .tmp file changes with each run of the application):

Path/File access error:

C:\Users\USER\AppData\Local\Temp\VBEF22.tmp

The presentation is over 200 slides long and typically I get this error near the end of the creation process, but it varies.  If I do not programatically set the Shapes TextFrame.TextRange.Text property then I do not get this error.  I've tried running my application as administrator and that didn't work either.

There is a temp file with a similar name, but it is off by 2; for example if I get the error "C:\Users\USER\AppData\Local\Temp\VBEF22.tmp" there will be a file in the temp folder named "C:\Users\USER\AppData\Local\Temp\VBEF24.tmp".

Any help will be greatly appreciated,

Bruce

Microsoft 365 and Office | PowerPoint | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2011-03-04T14:37:00+00:00

    At the start of the process I create a new presentation based on an exisiting template.  I update and add slides to the presentation throughout the process and finally save the presentation at the end.  The error is happening before I save the presentation at the end.

    Note: I am creating the presentation using a C# application that uses Excel and PowerPoint API's.  Also, the application is currently working on Windows XP and Office 2003.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-03-04T03:02:11+00:00

    Do you save the presentation in between all this processing or are you just building the file and then saving it? I've seen this error even when just saving the presentation thru the UI but if you save again it works. Have you tried saving again?

    Was this answer helpful?

    0 comments No comments