>pi2->pDevMode = pDevMode >Okay, but the point is that VFP doesn't handle pointers very well. I'm still not sure what to put in the third parameter.
>SendMessageTimeout(HWND_BROADCAST, WM_DEVMODECHANGE, 0L, > (LPARAM)(LPCSTR)pPrinterName, SMTO_NORMAL, 1000, NULL); >Hmmm... looks like that 4th parameter is a pointer again. That's what's really causing me problems. Maybe I'm better off sticking to figuring out what's wrong with my DocumentProperties command!