S
Sun
Hi guys,
I have a problem which troubled me last two weeks. I create a web
applicatoin using VS2005 to generate the powerpoint presentation. All
works fine in my local machine but after I publish the application to
the server, I get the error: Error HRESULT E_FAIL has been returned
from a call to a COM component.
Configuration of my local machine:
WinXP; MS office2003; and I am using the com compenent:
Microsoft PowerPoint Object 11
Configuration of the server
Win server2003; MS office 2003.
and here is the code(csharp) I use:
PowerPoint.Application ppapp = new PowerPoint.Application();
ppapp.Visible =
Microsoft.Office.Core.MsoTriState.msoTrue;
PowerPoint.Presentation pre = ppapp.Presentations.Open
(Server.MapPath(@"~\OfficeTemplate\MonthlyOperationData\Report.pot"),
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoTrue,
Microsoft.Office.Core.MsoTriState.msoTrue);
Can anyone give me some advise, thank you very much.
I have a problem which troubled me last two weeks. I create a web
applicatoin using VS2005 to generate the powerpoint presentation. All
works fine in my local machine but after I publish the application to
the server, I get the error: Error HRESULT E_FAIL has been returned
from a call to a COM component.
Configuration of my local machine:
WinXP; MS office2003; and I am using the com compenent:
Microsoft PowerPoint Object 11
Configuration of the server
Win server2003; MS office 2003.
and here is the code(csharp) I use:
PowerPoint.Application ppapp = new PowerPoint.Application();
ppapp.Visible =
Microsoft.Office.Core.MsoTriState.msoTrue;
PowerPoint.Presentation pre = ppapp.Presentations.Open
(Server.MapPath(@"~\OfficeTemplate\MonthlyOperationData\Report.pot"),
Microsoft.Office.Core.MsoTriState.msoFalse,
Microsoft.Office.Core.MsoTriState.msoTrue,
Microsoft.Office.Core.MsoTriState.msoTrue);
Can anyone give me some advise, thank you very much.