Subj : Re: Setting Printer Orientation between pages To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Thu Oct 30 2003 07:10 am Peter Klinge wrote: >After some trouble with getting the JobId I have the next problem now. ?? DWORD JobId = StartDoc(stuff); >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. > From the help: You must have PRINTER_ACCESS_ADMINISTER access permission for a printer in order to change a print job's position in the print queue. If you do not want to set a print job's position in the print queue, you should set the Position member of the JOB_INFO_1 or JOB_INFO_2 structure to JOB_POSITION_UNSPECIFIED. Perhaps that is your AccessDenied problem? If not, then we'll need to see your actual code for changing the orientation, and maybe how you got the JobId if you had trouble with that. Please use cut-n-paste because re-typing always gives typos that waste time. .