WriteSettings (String) - Class doesn't support Automation
Posted: Wed Mar 18, 2015 4:09 pm
I'm trying to write different runonce.ini files so that I can get simultaneous users of Pdf Printer to work.
And I'm doing this from vbs.
I'm trying to do it by using WriteSettings to write a runonce_DOCUMENTNAME.ini file.
While the standard form of PdfSettings.WriteSettings (ie with a boolean parameter - True for runonce) works, the variant with a string parameter doesn't even run.
settings.WriteSettings( settingsfilename )
Gives:
Microsoft VBScript runtime error: Class doesn't support Automation: 'WriteSettings'
Can anyone advise what I might be doing wrong.
I've just included the basic calls above - I can provide a bit more if it would be helpful.
Regards,
Richard.
And I'm doing this from vbs.
I'm trying to do it by using WriteSettings to write a runonce_DOCUMENTNAME.ini file.
While the standard form of PdfSettings.WriteSettings (ie with a boolean parameter - True for runonce) works, the variant with a string parameter doesn't even run.
settings.WriteSettings( settingsfilename )
Gives:
Microsoft VBScript runtime error: Class doesn't support Automation: 'WriteSettings'
Can anyone advise what I might be doing wrong.
I've just included the basic calls above - I can provide a bit more if it would be helpful.
Regards,
Richard.