Forums - C# Corner

Forum guidelines


  • 1.3k
  • 1
  • 1.3k

Open application in remote system

Dec 7 2012 11:20 AM
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);


    protected void btn_presentation1_Click(object sender, EventArgs e)
        string strPres = @"\\\dtpub$\People\Rahul\Presentations\rahul.pptx";
    protected void TextBox1_TextChanged(object sender, EventArgs e)


Unlimited Flat-Free License


File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!