Subj : Re: Setting Printer Orientation between pages To : borland.public.cpp.borlandcpp From : Peter Klinge Date : Mon Nov 03 2003 05:51 pm Bob Gonder schrieb: > 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. > The JOB_POSITION_UNSPECIFIED helps (a lot), but now I will get the error ERROR_INVALID_HANDLE in the following StartPage function (and some other functions like ResetDC, ...) It seems the DC is invalid now. .