ShellExecute is supposed to print any file if the parameter passed is "print", it works on other files but I cannot get it work with HTML files, have you guys any workaround for this or am I missing something?
TIA
Printable View
ShellExecute is supposed to print any file if the parameter passed is "print", it works on other files but I cannot get it work with HTML files, have you guys any workaround for this or am I missing something?
TIA
Can we see the code?
:)
My basis...
Code:retval = ShellExecute(Form1.hWnd, "print", "C:\Project\picture.bmp", "", "C:\Project\", _
SW_MINIMIZE)
Quote:
Originally Posted by dee-u
VB Code:
lngRetVal = ShellExecute(Me.hwnd, "Print", App.Path & "\Web.html", vbNullString, _ vbNullString, vbMinimized)
This works for me :). You do not need to pass a value to lpDirectory parameter if you have used the full directory in the lpFile parameter.
Gee... looks fine to me.
Here is the MSDN on it. Maybe you see something different.
http://msdn.microsoft.com/archive/de...n_shelexec.asp
:)
Hmmm... Maybe the directory parameter makes the difference, thanks guys, will check it out later...Quote:
Originally Posted by Jenova