473,698 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Appl ication objApp;
PowerPoint.Pres entations objPresSet;
PowerPoint._Pre sentation objPres;
PowerPoint.Slid es objSlides;
PowerPoint._Sli de objSlide;
PowerPoint.Text Range objTextRng;
Graph.Chart objChartPP;

//Wegen Bug Q320369

System.Threadin g.Thread.Curren tThread.Current Culture =
System.Globaliz ation.CultureIn fo.CreateSpecif icCulture("en-US");

objApp = new PowerPoint.Appl ication();
objApp.Visible =
Microsoft.Offic e.Core.MsoTriSt ate.msoTrue;
objPresSet = objApp.Presenta tions;
objPres = objPresSet.Open (".\\Vorlage n
\\pp1.ppt", Microsoft.Offic e.Core.MsoTriSt ate.msoFalse,
Microsoft.Offic e.Core.MsoTriSt ate.msoTrue,
Microsoft.Offic e.Core.MsoTriSt ate.msoTrue);
objSlides = objPres.Slides;

}
catch(Exception fehler)
{
System.Diagnost ics.Debug.Write Line("Fehler:
" + fehler.Message) ;
}
--
mfg
Marc Eggenberger
Nov 17 '05 #1
0 2553

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

Similar topics

0
2807
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 into the frame Its working perfectly. i have given the code. but when i convert to .net (both C# and VB.net) the power point application not fit into the frame(groupbox or panel) herewith i am giving the both vb and vb.net code plese help me.
0
1826
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 webapp runs find but when I try to open powerpoint in my asp.net code I get an error
3
1939
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 get an Access Denied error when I attempt: pptApp = new Powerpoint.Application On the other server this works just fine. On this server (running xp pro) Powerpoint opens in a process owned by the ASPNET user and is
8
7073
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 = Office.MsoTriState.msoTrue pp.WindowState = PowerPoint.PpWindowState.ppWindowMinimized Application.DoEvents()
0
1654
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 certain master. So I had to catch all events that notify a change of the active presentation. For that, I made two approaches: 1. A method that handles the apropriate events directly via HANDLES:
0
1535
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 the new server and basically copied the settings from the server it worked on perfectly. But now i am getting an Intermittent error it happens for instance
1
22773
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 subsequent pages from the same snapshot file in subsequent slides in PowerPoint. I realize that it is possible to add VB code to the Snapshot Viewer Control and that there are properties such as .FirstPage, .NextPage, .LastPage, etc, But I can't find...
11
11753
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 possible to pull exisiting slides together in a certain order rather than creating the slides from scratch? Thanks, -Sean
8
2153
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 the path) and I also used Shell. Does anybody have a snipped showing a more efficient method for launching a Powerpoint file, regardless of which version of Office is running? My current, ineffecient code: Sub main() Try
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.