"4120: Bad parameter" error when printing Word-based report from VB app
Posted on 2007-04-10
I have an application that uses a locked Access 2000 database and is built in VB. Reports for the data are generated in MS Word. I have Office 2007 installed on WinXP SP2. When I try to print or preview a report from the application, I get "4120: Bad parameter". The application has multiple Word template styles available; I've tried all of them and get the same result. The only way I can print reports from this app is by using the "dot matrix" style, which does not use MS Word and can only be printed (no preview).
Outside the 3rd party app, Word opens normally, and new or saved documents print normally. The only time the error occurs is when trying to print or preview reports from this 3rd party application.
I'm happy to provide more specific information as soon as I know what is needed. Thanks!