471,082 Members | 765 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,082 software developers and data experts.

Problem with using PowerPoint 2003 ins ASP.NET

Hi there.

I have an webapp (asp.net) which should use powerpoint to create a
presentation and then send that presentation to the user.

I'm using VS2003 and Office2003 (project req.).

The webapp runs find but when I try to open powerpoint in my asp.net
code I get an error

COM object with CLSID {91493441-5A91-11CF-8700-00AA0060263B} is either
not valid or not registered.

The Code is at end.
The code runs fine with an Windowsapp.
I have set the Copy Local in the References of the dll's to true so the
Interop dll's are there.

What am I doing wrong here?

code:

try
{
//Oeffne PowerPoint
PowerPoint.Application objApp;
PowerPoint.Presentations objPresSet;
PowerPoint._Presentation objPres;
PowerPoint.Slides objSlides;
PowerPoint._Slide objSlide;
PowerPoint.TextRange objTextRng;
Graph.Chart objChartPP;

//Wegen Bug Q320369

System.Threading.Thread.CurrentThread.CurrentCultu re =
System.Globalization.CultureInfo.CreateSpecificCul ture("en-US");

objApp = new PowerPoint.Application();
objApp.Visible =
Microsoft.Office.Core.MsoTriState.msoTrue;
objPresSet = objApp.Presentations;
objPres = objPresSet.Open(".\\Vorlagen
\\pp1.ppt", Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoTrue,
Microsoft.Office.Core.MsoTriState.msoTrue);
objSlides = objPres.Slides;

}
catch(Exception fehler)
{
System.Diagnostics.Debug.WriteLine("Fehler:
" + fehler.Message);
}
--
mfg
Marc Eggenberger
Nov 17 '05 #1
0 2435

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by JK | last post: by
reply views Thread by Marc Eggenberger | last post: by
3 posts views Thread by C Williams | last post: by
reply views Thread by Alexander Czernay | last post: by
11 posts views Thread by ssims | last post: by
8 posts views Thread by =?Utf-8?B?R2VvcmdlQXRraW5z?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.