> require 'Win32API'
> 
> fname = 'temp.pdf'
> 
> shell = Win32API.new("Shell32", "ShellExecute", ['L', 'P', 'P', 'P',
> 'P', 'L'], 'L')
> shell.Call(0, "print", fname, 0,0, 1)


Instead of ShellExecute, try ShellExecuteEx

Dunno if the syntax will be right for it but I know
that ShellExecuteEx doesn't make the same calls to Com
like ShellExecute does...

I havn't researched this tho...

If you have time to research the API, I would suggest the following:
http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx

- Mac


-- 
Posted via http://www.ruby-forum.com/.