You could try one of Kanati's solutions:
http://www.blitzcoder.com/cgi-bin/showcase/showcase_showentry.pl?id=kanati02152002021704&comments=no
http://www.blitzcoder.com/cgi-bin/showcase/showcase_showentry.pl?id=kanati886902282004191030&comments=no
http://www.blitzcoder.com/cgi-bin/showcase/showcase_showentry.pl?id=kanati02182003222427&comments=no
or ExecFile applications that have print switches:
http://www.blitzcoder.com/cgi-bin/showcase/showcase_showentry.pl?id=kanati02152002021704&comments=no
http://www.blitzcoder.com/cgi-bin/showcase/showcase_showentry.pl?id=kanati886902282004191030&comments=no
http://www.blitzcoder.com/cgi-bin/showcase/showcase_showentry.pl?id=kanati02182003222427&comments=no
or ExecFile applications that have print switches:
ExecFile SystemProperty("windowsdir") + " mspaint.exe /P filename.bmp" ExecFile SystemProperty("windowsdir") + " notepad.exe /P document.txt"