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.Appl ication ppapp = new PowerPoint.Appl ication();
ppapp.Visible =
Microsoft.Offic e.Core.MsoTriSt ate.msoTrue;
PowerPoint.Pres entation pre = ppapp.Presentat ions.Open
(Server.MapPath (@"~\OfficeTemp late\MonthlyOpe rationData\Repo rt.pot"),
Microsoft.Offic e.Core.MsoTriSt ate.msoFalse,
Microsoft.Offic e.Core.MsoTriSt ate.msoTrue,
Microsoft.Offic e.Core.MsoTriSt ate.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.Appl ication ppapp = new PowerPoint.Appl ication();
ppapp.Visible =
Microsoft.Offic e.Core.MsoTriSt ate.msoTrue;
PowerPoint.Pres entation pre = ppapp.Presentat ions.Open
(Server.MapPath (@"~\OfficeTemp late\MonthlyOpe rationData\Repo rt.pot"),
Microsoft.Offic e.Core.MsoTriSt ate.msoFalse,
Microsoft.Offic e.Core.MsoTriSt ate.msoTrue,
Microsoft.Offic e.Core.MsoTriSt ate.msoTrue);
Can anyone give me some advise, thank you very much.
Comment