Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Fri, 13 Jun 2008 07:21:01 -0700,    group: microsoft.public.win32.programmer.gdi        back       


Changing print job properties   
How do I change change the properties of a print job?

Thank you.
date: Fri, 13 Jun 2008 07:21:01 -0700   author:   SamuelDantas

Re: Changing print job properties   
On Jun 13, 7:21 am, SamuelDantas
 wrote:
> How do I change change the properties of a print job?
>
> Thank you.


Hi,

You can use the following APIs to retrieve information about
a specified printer and modify the current settings:

	GetPrinter()

	SetPrinter()

Also,

	GetJob()

	SetJob()

http://msdn.microsoft.com/en-us/library/ms535494(VS.85).aspx

http://msdn.microsoft.com/en-us/library/ms535488(VS.85).aspx

http://msdn.microsoft.com/en-us/library/ms535521(VS.85).aspx

http://msdn.microsoft.com/en-us/library/ms535483(VS.85).aspx

Kellie.
date: Fri, 13 Jun 2008 08:27:18 -0700 (PDT)   author:   Kellie Fitton

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

Re: Changing print job properties   
Hi Kellie, don't you know how to change it after the print job is created? 
Because I'm reading print jobs from the network too...

Thank you.
date: Fri, 13 Jun 2008 15:34:00 -0700   author:   SamuelDantas

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us