>DECLARE INTEGER SendMessage IN user32; > INTEGER hWnd,; > INTEGER Msg,; > INTEGER wParam,; > INTEGER lParam >>Note that the second parameter is the message to send, but it's an integer! In fact, all the parameters are integers. The example on http://www.amyuni.com/downloads/tn02.htm indicates that the changed Devmode is what you'd send in this second parameter, but it looks like the same problem I have with SetPrinter().