473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 2541

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JK | last post by:
HI I have a application which is developed using VB.6.0 The application contains a Frame and Button. when the user click the button then the existing powerpoint(path hot coded) will open and fit...
0
by: Marc Eggenberger | last post by:
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...
3
by: C Williams | last post by:
We are having trouble automating Powerpoint 2003 from an asp.NET web page. I know that MS officially discourages doing such a thing, but we are trying nonetheless. On only one of two servers, I...
8
by: Rut | last post by:
Does anyone know how to start powerpoint from vb.net without the ppt screen appearing. I want to keep it hidden? Using this code: Try pp = New PowerPoint.Application pp.Visible =...
0
by: Alexander Czernay | last post by:
I created a VB.NET-PowerPoint-AddIn as described in the VisualStudio 2003 documentation. That works very well. The AddIn adds a new toolbar to PowerPoint if the active document is based on a...
0
by: Brano | last post by:
Hi all, I have a asp.net website that has been live for about 2 weeks now and there were no problems with it. I have got a new server that is Win 2003 IIS 6.0 I have moved my application onto...
1
by: ellenh | last post by:
I have read postings on the similar subject including the posting from 2003 shown below. This process works fine to display a single page snapshot report in PowerPoint. I need to display...
11
by: ssims | last post by:
1) Is it possible to create a powerpoint file with asp.net? I've Googled it and can't seem to find a definitive guide. 2) If it is possible to create a powerpoint file with asp.net, is it...
8
by: =?Utf-8?B?R2VvcmdlQXRraW5z?= | last post by:
Greetings! I wrote a small Exe that simply runs Shell to load PowerPoint and launch a particular file, depending on the day of the week. However, it was set up for office 2003 (I naively hardcoded...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.