C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

open a ppt file


Posted Date: 15 Oct 2008      Posted By: Saurabh Hoonka      Member Level: Silver     Points: 1   Responses: 1



hi,
i am tring to open a ppt file using c#.
my code is like this.
PowerPoint.Application PptApp = new PowerPoint.Application();
PowerPoint.Presentation PptPres = (PowerPoint.Presentation)PptApp.Presentations.Open(fileName.ToString(), Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue, Microsoft.Office.Core.MsoTriState.msoFalse);
PowerPoint.SlideShowWindow=PptApp.slides
PptPres.Application.Activate();
//PptApp.Activate();
PptApp.Visible = Microsoft.Office.Core.MsoTriState.msoCTrue;
now application is open but file is not.
Any help plz





Responses

Author: http://ravipulluri.blogspot.com    15 Oct 2008Member Level: GoldRating: 1 out of 5     Points: 1

give full path of the file name and try.


Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Regarding GotFocus Event
Previous : Error while Authenticating a form
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use