Hi,
Is there a way to create an OLE object instance of Word, as in the VB example below?
Dim WordApp As Object
Set WordApp = CreateObject("Word.Application")
WordApp.Visible = True
Thanks for the help
Gabriel
Hi,
Is there a way to create an OLE object instance of Word, as in the VB example below?
Dim WordApp As Object
Set WordApp = CreateObject("Word.Application")
WordApp.Visible = True
Thanks for the help
Gabriel
You can have a look at the free Servoy COM Plugin by Servoy Guy: http://www.servoyguy.com/servoy_components/servoy_com_plugin
I have installed the free Servoy COM Plugin by Servoy Guy. So far, i can create a Instance of Word. Simple method calls and changig properties is working fine.
But I can’ create a new document. I try with com.call(“Documents.Add”) and also com.call(“Documents”, “Add”) bot both way do not work. In VB the command is wordInstance.Documents.Add().
How can I do that with the COM Plugin?
Thanks for Help
Gabriel
There is a much easier way.
Use the Word Plugin (http://www.it2be.com/index.php/plugins- … rd-plug-in).
Create, edit etc. Word documents in different formats without the need to use Word (so compatible with web client, mac, linux, windows)…
True. And very easy mailmerge. With COM-plugin you have to find it all out yourself (on the other hand that can be challenging…)
var $script = ‘Set wordApp = CreateObject(“Word.Application”)\r\n’;
$script += ‘wordApp.Visible = True\r\n’;
$script += ‘Set objDoc = wordApp.Documents.Add()\r\n’;
$script += ‘Set wordApp = Nothing’;
var $tempFile = plugins.file.createTempFile(‘myfile’,‘.vbs’);
if ( plugins.file.writeTXTFile($tempFile, $script) ) {
application.executeProgram(‘rundll32’, ‘url.dll,FileProtocolHandler’, $tempFile);
}
jlugten:
var $script = ‘Set wordApp = CreateObject(“Word.Application”)\r\n’;
$script += ‘wordApp.Visible = True\r\n’;
$script += ‘Set objDoc = wordApp.Documents.Add()\r\n’;
$script += ‘Set wordApp = Nothing’;var $tempFile = plugins.file.createTempFile(‘myfile’,‘.vbs’);
if ( plugins.file.writeTXTFile($tempFile, $script) ) {
application.executeProgram(‘rundll32’, ‘url.dll,FileProtocolHandler’, $tempFile);
}
be ware, that this only works on Windows!
the plugin of IT2BE works crossplatform and even with no Microsoft/Open Office installed!
Harjo:
the plugin of IT2BE works crossplatform and even with no Microsoft/Open Office installed!
marcel really makes magical stuff!