A
Abhishek Bagga
Hi!
I have written a code in which I am opening the PowerPoint file. I added the
references of PowerPoint and Office to my project.
First of all I have to add different references for 2000 and XP is there a
way out through which I can open the PowerPoint2000 using PowerPoint XP dll
If there is then solves most of my problem.
I am using the following code to open the PowerPoint file.
(Office XP/2003)
m_PPTPresentation=m_PPTApp.Presentations.Open(m_PPTFilePath,Microsoft.Office.Core.MsoTriState.msoTrue,Microsoft.Office.Core.MsoTriState.msoTrue,Microsoft.Office.Core.MsoTriState.msoFalse);
(Office 2000)
m_PPTPresentation=m_PPTApp.Presentations.Open(m_PPTFilePath,Office.MsoTriState.msoTrue,Office.MsoTriState.msoTrue,Office.MsoTriState.msoFalse);
If the system on which my application is running has PPT 2000, then XP dll
fails, so I have to chk the ppt version and dynamically link the PPT 2000
dll.
I am able to acheive this and it runs fine.
The problem is that if on this particular system , Office XP was installed
and then uninstalled for some reason, the assembly cache keeps the office XP
dlls and the program fails.
Similar situation also arises if the PIA's are installed on the system
having office 2000
The above code fails in both the scenarios on systems having office 2000. In
such a case I am unable to run my application and the only solution I have
is to format the system or ask the user to upgrade to office xp (Both the
options are not practical)
Any suggestions
- Abhishek
I have written a code in which I am opening the PowerPoint file. I added the
references of PowerPoint and Office to my project.
First of all I have to add different references for 2000 and XP is there a
way out through which I can open the PowerPoint2000 using PowerPoint XP dll
If there is then solves most of my problem.
I am using the following code to open the PowerPoint file.
(Office XP/2003)
m_PPTPresentation=m_PPTApp.Presentations.Open(m_PPTFilePath,Microsoft.Office.Core.MsoTriState.msoTrue,Microsoft.Office.Core.MsoTriState.msoTrue,Microsoft.Office.Core.MsoTriState.msoFalse);
(Office 2000)
m_PPTPresentation=m_PPTApp.Presentations.Open(m_PPTFilePath,Office.MsoTriState.msoTrue,Office.MsoTriState.msoTrue,Office.MsoTriState.msoFalse);
If the system on which my application is running has PPT 2000, then XP dll
fails, so I have to chk the ppt version and dynamically link the PPT 2000
dll.
I am able to acheive this and it runs fine.
The problem is that if on this particular system , Office XP was installed
and then uninstalled for some reason, the assembly cache keeps the office XP
dlls and the program fails.
Similar situation also arises if the PIA's are installed on the system
having office 2000
The above code fails in both the scenarios on systems having office 2000. In
such a case I am unable to run my application and the only solution I have
is to format the system or ask the user to upgrade to office xp (Both the
options are not practical)
Any suggestions
- Abhishek