Do you have a specific question? Does it work? Have you tested it to see if the printer is set correctly? If it does not work, you may want to check @error after the ReadProfileString call. You do not a fully qualified path to the file and it may not be found as written. Where is the "rinter.ini" file located or should it be "printer.ini"?

[ 02 April 2002, 22:11: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/