S
Steve Ricketts
I'm trying to read a PowerPoint 2007 file in a C# .ashx and have included:
using core = Microsoft.Office.Core;
using PowerPoint = Microsoft.Office.Interop.PowerPoint;
using System.Runtime.InteropServices;
The problem is an error on the following line:
pptPres = pptApp.Presentations.Open(fileName, MsoTriState.msoTrue,
MsoTriState.msoFalse, MsoTriState.msoFalse);
At first I didn't have the Microsoft.Office.Core and it gave me an error
that said I must include the Office 12 library. So I included the com
object and now I'm getting the error that says
Microsoft.Office.Core.msoTriState exists in both the office.dll and the
Interop.Microsoft.Office.core.dll. I've tried taking out
Microsoft.Office.Core and finding the definition of MsoTriState in
Interop.PowerPoint but I can't find it anywhere there so I can't figure out
why I'm coming up with the "both" error.
What makes this even stranger is the same code works ok on a XP and Vista
system. The problem occurs when I put it on my 2008 Server.
I'm new to C# so any direction would be greatly appreciated,
Steve
using core = Microsoft.Office.Core;
using PowerPoint = Microsoft.Office.Interop.PowerPoint;
using System.Runtime.InteropServices;
The problem is an error on the following line:
pptPres = pptApp.Presentations.Open(fileName, MsoTriState.msoTrue,
MsoTriState.msoFalse, MsoTriState.msoFalse);
At first I didn't have the Microsoft.Office.Core and it gave me an error
that said I must include the Office 12 library. So I included the com
object and now I'm getting the error that says
Microsoft.Office.Core.msoTriState exists in both the office.dll and the
Interop.Microsoft.Office.core.dll. I've tried taking out
Microsoft.Office.Core and finding the definition of MsoTriState in
Interop.PowerPoint but I can't find it anywhere there so I can't figure out
why I'm coming up with the "both" error.
What makes this even stranger is the same code works ok on a XP and Vista
system. The problem occurs when I put it on my 2008 Server.
I'm new to C# so any direction would be greatly appreciated,
Steve