473,320 Members | 2,202 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,320 software developers and data experts.

Need Help in generating PPT file in ASP .NET

Hello all,

I have a typical problem in deploying my ASP .NET application (code behind
is VB .NET).

I am generating a power point presentation (ppt file) in my application.

Program is running absolutely fine on my test server. (Win 2000 server with
office 2003 and dot net 1.1 frame work)

It is ending up in error when I deploy the application on my production
server (Win 2000 server with office 97 and dot net 1.1 frame work)

Error that is being displayed is

System.Runtime.InteropServices.COMException (0x80080005): Server execution
failed at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
System.Web.HttpServerUtility.CreateObject(String progID) at
MiPET.StatusReport.CreatePPTReport()

I am creating the instance of power point using

Dim loPPTApp as Object

loPPTApp = Server.CreateObject("PowerPoint.Application")

If I Use

Dim loPPTApp as Object

loPPTApp = CreateObject("PowerPoint.Application")

I am getting the below error

System.Exception: Cannot create ActiveX component. at
Microsoft.VisualBasic.Interaction.CreateObject(Str ing ProgId, String
ServerName) at MiPET.StatusReport.CreatePPTReport()

Another point is on my production server I am able to generate the power
point presentation in ASP (Active Server Pages).

I have given Read and Execute permissions to the folder where office is
installed (Both on test server and production server).

I have also set the permissions using DCOMCNFG (Both on test server and
production server).

Could anyone please let me know the steps to be done to generate power point
presentation on my production server in ASP .NET ?

Regards

Sudarsan Chenna
Nov 19 '05 #1
1 1704
Here are the steps required to interact with Excel from an ASP.NET page. I
would imagine the steps would be quite similar for powerpoint.
http://SteveOrr.net/articles/ExcelExport.aspx

Here's how you can manually create a powerpoint file without resorting to
COM interop, thus avoiding your problems:
http://SteveOrr.net/articles/ExportPanel.aspx

Here's a good 3rd party component you could use if you get desperate enough:
http://www.aspose.com/Products/Aspose.PowerPoint/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Chenna Sudarsan" <rb************@in.bosch.com> wrote in message
news:d7**********@ns2.fe.internet.bosch.com...
Hello all,

I have a typical problem in deploying my ASP .NET application (code behind
is VB .NET).

I am generating a power point presentation (ppt file) in my application.

Program is running absolutely fine on my test server. (Win 2000 server
with
office 2003 and dot net 1.1 frame work)

It is ending up in error when I deploy the application on my production
server (Win 2000 server with office 97 and dot net 1.1 frame work)

Error that is being displayed is

System.Runtime.InteropServices.COMException (0x80080005): Server execution
failed at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
System.Web.HttpServerUtility.CreateObject(String progID) at
MiPET.StatusReport.CreatePPTReport()

I am creating the instance of power point using

Dim loPPTApp as Object

loPPTApp = Server.CreateObject("PowerPoint.Application")

If I Use

Dim loPPTApp as Object

loPPTApp = CreateObject("PowerPoint.Application")

I am getting the below error

System.Exception: Cannot create ActiveX component. at
Microsoft.VisualBasic.Interaction.CreateObject(Str ing ProgId, String
ServerName) at MiPET.StatusReport.CreatePPTReport()

Another point is on my production server I am able to generate the power
point presentation in ASP (Active Server Pages).

I have given Read and Execute permissions to the folder where office is
installed (Both on test server and production server).

I have also set the permissions using DCOMCNFG (Both on test server and
production server).

Could anyone please let me know the steps to be done to generate power
point
presentation on my production server in ASP .NET ?

Regards

Sudarsan Chenna

Nov 19 '05 #2

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

Similar topics

3
by: skn | last post by:
Hello., Does the python compiler provide an option to generate a .pyo(optimized byte code file) from a .py (source file)? For generating .pyc I know that I only have to pass the source file...
7
by: eric.gagnon | last post by:
In a program randomly generating 10 000 000 alphanumeric codes of 16 characters in length (Ex.: "ZAZAZAZAZAZAZ156"), what would be an efficient way to ensure that I do not generate duplicates? ...
10
by: Al Christoph | last post by:
Please forgive me if this is the wrong place to post this. The last place I posted got me a fairly rude response. I guess vb.db people just don't want to think about XML as database. At any rate,...
8
by: Keith Smith | last post by:
I know this is a little off topic but I hope it is still acceptable to this forum. Please read this carefully. I am not looking for a quick answer - I am hoping to find someone who has been in my...
0
by: manas589 | last post by:
Hi Can any one tell me how to use binding.xml while generating castor bean from an xsd file. i have one xsd file where two element are conflicting. so i thought to use binding file while...
7
by: Nathan Sokalski | last post by:
I am an ASP.NET developer, and Visual Studio 2005 seems to have stopped declaring the controls that I add in the *.designer.vb files, therefore forcing me to manually add them before I can use them...
1
by: Nathan Sokalski | last post by:
Visual Studio 2005 recently stopped generating the *.designer.vb files for my *.aspx and *.ascx files. I am using Service Pack 1, and do not believe I did anything differently than normal prior to...
0
by: tirumalab | last post by:
Hi all, In my windows project(C# and VS 2005) i want to create a file at runtime and wants to add some random data to it .After writting data ,i want to generate the CRC for the data entered...
2
by: veer | last post by:
hi i made program in which i am generating the report of a ms-table database it works fine only on my computer and generatin the reports but when i run this exe on any computer the whole programe...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.