Graham, Take a look at: http://www.foxitaly.com/ecerlini/struttureapi_en.html
There is a nice class in rpstruct.zip that makes dealing with API calls a breeze. There is also an example of using the Printer API. Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Graham Brown Sent: 30 October 2008 17:53 To: ProFox Email List Subject: WinAPI call to select bin Hi Could anyone help with a problem please. I'm using this code to print a PDF m.cPDF="c:\temp\file1.pdf" Declare Integer ShellExecute ; IN SHELL32.Dll ; INTEGER nWinHandle,; STRING cOperation,; STRING cFileName,; STRING cParameters,; STRING cDirectory,; INTEGER nShowWindow ShellExecute(0, "Print", m.cPDF, "", "", 1) I'm working on the routine to send this print to a specific tray, it looks like I have to use the setprinter api call but I've no idea what this does. btw the PDFTK worked like a charm. Thanks Graham Brown --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

