Edrawings API, Batch Print


I've written a small vb.net app using Edrawings API that opens andprints a document based on command line arguments, which works verywell if I run from the command line. However, if I start this appfrom a web app or SQL job, it starts the app, loads the document,but never prints and hangs. I'm at a total loss as to why thisisn't working, when I get no errors or anything when ran from a webapp or a sql job. The ultimate goal is to batch print to networkprinters. Suggestions anyone?
SolidworksEdrawings