AuthorQuestion
Open application in remote system
Posted on: 07 Dec 2012
Hey Lets say i have 2 computers x and y which are both connected in LAN . computer x has a power point which i need to open in computer x itself using computer y.  I have a c# code which can open application from remote system in current system but it can open application in remote system itself. Can any one help me out with this??

C# code:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Office.Core;



public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    void OpenSlideShow(string strPres)
    {
        Microsoft.Office.Interop.PowerPoint.Application oPPT;
        Microsoft.Office.Interop.PowerPoint.Presentations objPresSet;
        Microsoft.Office.Interop.PowerPoint.Presentation objPres;

        //the location of your powerpoint presentation
        

        //Create an instance of PowerPoint.
        oPPT = new Microsoft.Office.Interop.PowerPoint.ApplicationClass();

        // Show PowerPoint to the user.
        oPPT.Visible = Microsoft.Office.Core.MsoTriState.msoTrue;

        objPresSet = oPPT.Presentations;

        //open the presentation
        objPres = objPresSet.Open(strPres, MsoTriState.msoFalse,
        MsoTriState.msoTrue, MsoTriState.msoTrue);

        objPres.SlideShowSettings.Run();
    }

    protected void btn_presentation1_Click(object sender, EventArgs e)
    {
        string strPres = @"\\bijou.dt.asu.edu\dtpub$\People\Rahul\Presentations\rahul.pptx";
       OpenSlideShow(strPres);
    }
    protected void TextBox1_TextChanged(object sender, EventArgs e)
    {

    }
}

[ + ]
Join a Chapter
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Join a Chapter