Avatar of samelamin
samelamin
 asked on

change a printjob from mono to color using devmode

hey all
as you can see from my code i a trying to change a paused printjob from mono to color but it isnt working

the job is still coming out as mono


pJobs[iIndex].pDevMode->dmFields = DM_COPIES|DM_COLOR;
				pJobs[iIndex].pDevMode->dmCopies=2;
				pJobs[iIndex].pDevMode->dmColor=DMCOLOR_COLOR;
			

				c = SetJob(hPrinter, pJobs[iIndex].JobId, 2, (LPBYTE) &pJobs[iIndex],0);

Open in new window

Microsoft DevelopmentC

Avatar of undefined
Last Comment
samelamin

8/22/2022 - Mon
Greg_Arnold

What is the return from SetJob().  If it's 0, what does GetLastError() return?
samelamin

ASKER
it returns 0 yes
but the color stays the same
samelamin

ASKER
sorry the return value is 1
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
Greg_Arnold

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
samelamin

ASKER
i thought so

thanks anyways
samelamin

ASKER
It didnt really solve my problem but it helped

thanks