PowerPoint Export using Interop.PowerPoint.dll

K

KMandalia

We created a powerpoint export functionality in Visual Studio .NET 2003,
Framework v1.1 on Windows 2000 development server machine with Office 2000
installed by adding Microsoft PowerPoint Object Library 9.0 from the COM tab
of 'Add References' in the solution.

Now our deployment server doesn't have Microsoft Office installed. If we
just take the whole bin from the development server along with the other
aspx, ascx etc. files. I am getting the following error.

Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an
object.]
CUAnalyzer.WebClient.Export.ExportToPowerPoint(Application& oPowerPoint,
DataSet dsExportInfo) in D:\CUAnalyzer\CUAnalyzer\WebClient\Export.cs:258
CUAnalyzer.WebClient.main.lnkExportPPT_Click(Object sender, EventArgs e)
in d:\cuanalyzer\cuanalyzer\webclient\main.aspx.cs:904
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +108

System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1292


Does the Deployment Server need to have the Office installed? I can't
register the Interop.powerpoint.dll using regsvr32 and I don't know what are
the steps we need to take to make the export work without installing office.
 
S

Steve Rindsberg

We created a powerpoint export functionality in Visual Studio .NET 2003,
Framework v1.1 on Windows 2000 development server machine with Office 2000
installed by adding Microsoft PowerPoint Object Library 9.0 from the COM tab
of 'Add References' in the solution.

Adding the reference simply tells the development environment what properties and
methods the referenced application exposes.

The application itself has to be installed in order for you to automate it.

Now our deployment server doesn't have Microsoft Office installed. If we
just take the whole bin from the development server along with the other
aspx, ascx etc. files. I am getting the following error.

Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an
object.]
CUAnalyzer.WebClient.Export.ExportToPowerPoint(Application& oPowerPoint,
DataSet dsExportInfo) in D:\CUAnalyzer\CUAnalyzer\WebClient\Export.cs:258
CUAnalyzer.WebClient.main.lnkExportPPT_Click(Object sender, EventArgs e)
in d:\cuanalyzer\cuanalyzer\webclient\main.aspx.cs:904
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +108
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEv
ent(String eventArgument) +57
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top