Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Formatting for print
#2
The "print" verb is set up by some complicated registry entries.
http://msdn.microsoft.com/en-us/library/...s.85).aspx
You could make your own registry entries to create new print verbs, or change existing ones. But it, seems like a lot of trouble.
Also, some random program's installer might change the print verb for some filetype and break it.

How about OpenOffice or LibreOffice and print HTML directly?

Code:
Copy      Help
swriter.exe -pt "My Printer Name" "c:\my_stuff.html"
(Prints document to named printer and exit).
or just

Code:
Copy      Help
swriter.exe -p "c:\my_stuff.html"
(Print document to default printer and exit).

Even with HTML you have to escape things, though.

Code:
Copy      Help
&    &
"    "
'    '
<    &lt;
>    &gt;


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)