I am having a problem running script that basically uses CreateObject("Word.Application") to stream an RTF file from my temp directory, change the current default printer for that word application to one sent in as a parm. So it is treamed directly to printer device sitting on our network.
The VB will execute without a problem when I run it (with hardcoded parms) in an activex test container, or from my IDE (Allfusion
lex). But when the same script is run from my company's main application (bulk of which is written using an old version (IBM oS2 I think) of C, it falls over on the CreateObject statement with a genric VB script error (i.e. blank dialog with no error messages or return codes).
Does anyone have an idea why a perfectly reasonable piece of VB scripot should refuse to work when run from a different environment?
Any help much appreciated.
The VB will execute without a problem when I run it (with hardcoded parms) in an activex test container, or from my IDE (Allfusion
Does anyone have an idea why a perfectly reasonable piece of VB scripot should refuse to work when run from a different environment?
Any help much appreciated.