Command Line Execution - InfoPath Dev
in

InfoPath Dev

Command Line Execution

Last post 10-03-2008 03:35 AM by chandrakanth. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-25-2008 10:22 AM

    Command Line Execution

    Hi All,

         I am looking for a jscript, which I can place in a button to call a Microsoft Word document. Does anyone have an example using jscript to execute the following command line when a user hits a button....Thanks!

                      c:\Program Files\Microsoft Office\Office12\winword.exe C:\File.docx

  • 10-03-2008 03:35 AM In reply to

    Hi, 

    Can you please write the below code in the button click event in jscript for opening the word document when ever the user hits on the button.

     

    // Open the temporary file in Word

    var wordApp = new ActiveXObject("Word.Application");

    wordApp.Documents.Open("C:\\File.docx");

    wordApp.Visible = true;

     

    Chandrakanth/GGKTech
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.