Michael Linfield wrote: > >> 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 Thank you Mac, that helped a little. Now the Adobe Reader screen opens up and closes. That's not ideal, but better than a freaking windows left open in every printing. I'll look out the msdn documentation, but if anyone can give me other tips i'll be gratefull. -- Posted via http://www.ruby-forum.com/.