Printing in VB6 Without Print dialog box - TechRepublic
General discussion
May 19, 2005 at 07:45 AM
rieda

Printing in VB6 Without Print dialog box

by rieda . Updated 21 years, 1 month ago

Im using the following command to print a webpage which is working Quite fine

ShellExecute 0&, “Print”, “C:\Innovation\Temp\statement.html”, “”, “”, vbNormalFocus

I used the following command as well which i found from a website

Call ShellExecute(Me.hwnd, “print”, “TheScarms.xls”, “”, 0, SW_SHOWNORMAL)

The above command prints a file as well and does exactly the same

There is one problem im having

I dont want the Printer Dialog to appear

I would like my program to use the default printer or i would like it to Select a printer via my code

if i can have both it would be great

I hope someone can help me with this

Thanks

Mr R Hoosain

This discussion is locked

All Comments