Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Brief Microsoft.Office.Interop.Word script
#1
Code:
Copy      Help
/*/ com Word 8.7 #6a6b0205.dll; com Office 2.8 #29f388b5.dll; com stdole 2.0 #5213fb64.dll; com VBIDE 5.3 #8f725750.dll; /*/ //.
script.setup(trayIcon: true, sleepExit: true);
//..

var wdApp = new Microsoft.Office.Interop.Word.Application();
wdApp.Visible = true;
var doc = wdApp.Documents.Add();
wdApp.Selection.TypeText("Hello, world!");
wdApp.Selection.TypeParagraph();
wdApp.Selection.TypeText("Goodbye, world!");
wait.s(5);
doc.Saved = true;
wdApp.Quit();


Use the instructions on this page to get the COM interop into the script.
(EDITED to correctly format code for forum)
Best regards,
burque505


Messages In This Thread
Brief Microsoft.Office.Interop.Word script - by burque505 - 06-07-2023, 01:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)