Subj : Re: Setting Printer Orientation between pages To : borland.public.cpp.borlandcpp From : Peter Klinge Date : Thu Oct 30 2003 01:27 pm After some trouble with getting the JobId I have the next problem now. SetJob will bring a ERROR_ACCESS_DENIED error. Why do I need more rights than Administrator rights to set the printer orientation? I need to change the paper orientation temporarily inside that print job only and it must be possible for every normal user and for Win95 to WinXP. Peter Bob Gonder schrieb: > Peter Klinge wrote: > > >>does anyone have some hints to change the printer orientation between >>the pages of one print job. I have tested with ResetDC between EndPage >>and StartPage, but I have got an error 183 (=ERROR_ALREADY_EXISTS) >>everytime I have switched from portrait to landscape (the other way >>round works without problems) > > > Good question. > Don't know for sure, but it looks like > SetJob() with a JOB_INFO2 which has a DEVMODE might do the trick. > > Perhaps a GetJob() to set the other parts, then fix up the devmode > with the orientation, then SetJob(). > You'll want to set a new font as well... > > Let us know if this works. > > .