'printto' verb won't work right for URLs
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?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL