|
|
|
date: Fri, 13 Jun 2008 07:21:01 -0700,
group: microsoft.public.win32.programmer.gdi
back
Re: Changing print job properties
Hi Kellie, thanks for answering.
I tried before what you said but it didn't worked...
What I'm doing basically is:
- Pausing all jobs
- Trying to change the number of copies of the jobs to 1
- Resuming or destroying the job based in quotas on a db
When I change the number of copies and resume the job the value isn't
changed...
The printer prints the old number of copies.
Here is the code:
GetJobs(g_hPrinter,&g_CurJobInfo,&g_JobsNumber,&g_PrinterStatus);
PauseJob(g_hPrinter,g_CurJobInfo[0].JobId);
g_CurJobInfo[0].pDevMode->dmCopies = 1;
SetJob(g_hPrinter,g_CurJobInfo[0].JobId,2,(LPBYTE)&g_CurJobInfo[0],NULL);
Thanks a lot.
date: Fri, 13 Jun 2008 14:21:01 -0700
author: SamuelDantas
Re: Changing print job properties
On Jun 13, 2:21 pm, SamuelDantas
wrote:
> Hi Kellie, thanks for answering.
>
> I tried before what you said but it didn't worked...
> What I'm doing basically is:
> - Pausing all jobs
> - Trying to change the number of copies of the jobs to 1
> - Resuming or destroying the job based in quotas on a db
>
> When I change the number of copies and resume the job the value isn't
> changed...
> The printer prints the old number of copies.
>
> Here is the code:
>
> GetJobs(g_hPrinter,&g_CurJobInfo,&g_JobsNumber,&g_PrinterStatus);
>
> PauseJob(g_hPrinter,g_CurJobInfo[0].JobId);
>
> g_CurJobInfo[0].pDevMode->dmCopies = 1;
>
> SetJob(g_hPrinter,g_CurJobInfo[0].JobId,2,(LPBYTE)&g_CurJobInfo[0],NULL);
>
> Thanks a lot.
Hi,
You need to initialize/set your values before starting
the print job.
Kellie.
date: Fri, 13 Jun 2008 15:09:22 -0700 (PDT)
author: Kellie Fitton
|
|