Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'printto' verb won't work right for URLs

Status
Not open for further replies.

drosten

Programmer
Mar 12, 2004
3
0
0
US
Anyone have experience using the "printto" verb to print a web page? For a .url file type ("internet shortcut"), the printto verb has the following directive:

rundll32.exe C:\WINNT\system32\mshtml.dll,PrintHTML "%1" "%2" "%3" "%4"

If I pass the following to ShellExecuteEx()...

printto "c:\MyPage.url" "\\ksmsps1\LJ5_COPYROOM" "HP LaserJet 5Si/5Si MX PS" "IP_10.10.30.241"

...I still get the Print dialog popping up. I would expect that, if I properly give printto all that it needs (filename, printer, driver, port), then it should silently do its job. I don't want the Print dialog to show, but I can't get it to shut up. The above parameters work just fine for Excel or Acrobat printto verbs, but it doesn't seem to do the trick for URLs. Any ideas?

Thanks,
:-David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top