Looks like the code in the thread below works.
It prints to the default printer and works perfectly on WinXP pro SP2.
Will do some more testing and if all goes ok will post a working (on XP SP2) print UDF later this week.

http://www.adminscripteditor.com/forum/tm.asp?m=7848&mpage=1

It would still be nice if one could print a specified file to a specified printer so all the setdefaultprinter stuff is not needed


Edited by Mart (2006-07-31 06:44 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.