Thanks Ed, but it didn't work. As you probably know by now I'm using Windows APIs to print snapshots of any form on screen, but I really need to force the default printer to print in landscape. I thought I could programatically change the paper orientation before executing the printing routine.I know it can be done using a DEVMODE structure but I don't have a lot of experience with windows APIs and I can't find good samples of using Windows APIs in Visual Foxpro.
Saludos,
Paco Calvente