I have one last issue with my application. I have to change the paper size to what the user selects in the web interface. I pass over the value DMPAPER_... When I set the dmPaperSize in the DEVMODE struct it doesn't work. It continues to print on the 8.5 x 11. I even tried hard coding the 11 x 17 paper into DEVMODE but it came out 8.5 x 11. Do I have to select the tray somehow? I have messed around with DM_DEFAULTSOURCE with no success and with the DeviceCapabilities function. Any ideas? Thanks.