ShellExecute -- Printing Error -- Memory Problem ?

We are having a problem printing a certain document from Excel when it is shelled from VB6 (most documents print fine). If we run Excel and load the file separately, it prints fine (using Black Ice ColorPlus printer driver). However, launching Excel via ShellExecute causes an error. We aren't sure what is causing it, but the only thing that seems different is that it is run in a shell. It normally works fine, but could this be causing problems?

Function StartDoc(DocName As String) As Long
   Dim Scr_hDC As Long
   Scr_hDC = GetDesktopWindow()
   StartDoc = ShellExecute(Scr_hDC, "Open", DocName, "", "C:\", SW_SHOWNORMAL)

p.s., first part of error message:

Your file could not be printed due to an error on Black Ice ColorPlus on IcePortAD:. There are several possible reasons:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do you get the error if you call it like this?

Function StartDoc(DocName As String) As Long
   Dim Scr_hDC As Long
   Scr_hDC = GetDesktopWindow()
   StartDoc = ShellExecute(0, "Open", DocName, "", "", SW_SHOWNORMAL)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GivenRandyAuthor Commented:
Turns out that their latest driver fixes up. Time for an upgrade!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.