PC Review


Reply
Thread Tools Rate Thread

Cannot start PowerPoint from ASP.Net

 
 
Gary A. Bushey
Guest
Posts: n/a
 
      4th Nov 2003
I am trying to create slides dynamically via ASP.Net. I have code that
worked great under Windows but does not run under ASP.Net. When I try to
set objPresSet I get the message "The message filter indicated that the
application is busy."
Any idea what that means and how to fix it? Code follows below....

objApp = new PowerPoint.Application();
objApp.Visible = MsoTriState.msoTrue ;

//***Line below causes error
objPresSet = objApp.Presentations;
//***
objPres = objPresSet.Open(strTemplate,
MsoTriState.msoFalse, MsoTriState.msoTrue, MsoTriState.msoTrue);
objSlides = objPres.Slides;

//Build Slide #1:
//Add text to the slide, change the font and insert/position a
//picture on the first slide.
objSlide = objSlides.Add(1,PowerPoint.PpSlideLayout.ppLayoutTitleOnly);
objTextRng = objSlide.Shapes[1].TextFrame.TextRange;
objTextRng.Text = "My Sample Presentation";
objTextRng.Font.Name = "Comic Sans MS";
objTextRng.Font.Size = 48;
objSlide.Shapes.AddPicture(strPic,MsoTriState.msoFalse,
MsoTriState.msoTrue,0,0,700,500);

--

Gary A. Bushey
SPS MVP
(E-Mail Removed)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Start Powerpoint up? Rawr_cookies12 Microsoft Powerpoint 1 21st Sep 2009 12:32 AM
Start powerpoint =?Utf-8?B?THVj?= Microsoft Dot NET 1 13th Jun 2007 01:29 PM
PowerPoint 2003 (F5 does not start slide show) How do I start =?Utf-8?B?UkJyb3VpbGxh?= Microsoft Powerpoint 1 31st Oct 2006 08:04 PM
Powerpoint won't start Jason Brown Microsoft Powerpoint 1 10th Nov 2003 11:58 PM
Powerpoint Start-up Dr. Bill Weber Microsoft Powerpoint 4 19th Oct 2003 04:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:12 AM.