Author | Topic: reading content of printerspooler | |
---|---|---|
Rudolf Reinthaler | reading content of printerspooler on Mon, 31 Aug 2009 21:56:50 +0200 Hello, has anyone a idea how to read the content of the printer spooler ? I have to print forms alternating form different programs. So I have to check if the other program has his printjob finished. regards Rudolf | |
Joe Carrick | Re: reading content of printerspooler on Mon, 31 Aug 2009 13:32:58 -0700 Why? Is the data in form2 dependent on the data of form1? Normally, I store the data first and then print a form from that data. If the second form needs the previous data then it's already been stored in a table and accessible for the second form printing. Otherwise, the spooler should handle the print jobs separately and there's no need for you to worry about it. -Joe Rudolf Reinthaler wrote: > Hello, > has anyone a idea how to read the content of the printer spooler ? I > have to print forms alternating form different programs. So I have to > check if the other program has his printjob finished. > regards > Rudolf | |
Rudolf Reinthaler | Re: reading content of printerspooler on Mon, 31 Aug 2009 22:34:11 +0200 Hello Joe, I have to keep track of the sequence of the printed forms. I dont know when the first form from the other program has arraived in the spooler. If I send the second form too fast, it happens that the second form comes first in the spooler. I must wait till the first form is definitly in the spooler. I think this is possible with WINAPI, but don't know how. regards Rudolf Joe Carrick schrieb: > Why? > > Is the data in form2 dependent on the data of form1? > Normally, I store the data first and then print a form from that data. > If the second form needs the previous data then it's already been stored > in a table and accessible for the second form printing. > > Otherwise, the spooler should handle the print jobs separately and > there's no need for you to worry about it. > > -Joe > > Rudolf Reinthaler wrote: >> Hello, >> has anyone a idea how to read the content of the printer spooler ? I >> have to print forms alternating form different programs. So I have to >> check if the other program has his printjob finished. >> regards >> Rudolf | |
Pablo Botella | Re: reading content of printerspooler on Tue, 01 Sep 2009 10:43:44 +0200 Hi, You can use the function EnumJobs() from winspool.drv Regards, Pablo Botella | |
Rudolf Reinthaler | Re: reading content of printerspooler on Tue, 01 Sep 2009 12:08:20 +0200 Hello Pablo, have seen in your library and doc's that it is possible, will try go get it workig. Thank you regards Rudolf Pablo Botella schrieb: > Hi, > > You can use the function EnumJobs() from winspool.drv > > Regards, > Pablo Botella | |
Steffen F. Pirsig | Re: reading content of printerspooler on Wed, 02 Sep 2009 20:58:19 +0200 Rudolf, why not use the SpoolXXX functions from the XbToolsIII? SpoolCount() does already return the amount of jobs in a printer queue. regards Steffen F. Pirsig Alaska Software "Rudolf Reinthaler" wrote in message news:1f600b59$661c384b$5b454@news.alaska-software.com... > Hello Pablo, > have seen in your library and doc's that it is possible, will try go get > it workig. Thank you > regards > Rudolf > > > > Pablo Botella schrieb: >> Hi, >> >> You can use the function EnumJobs() from winspool.drv >> >> Regards, >> Pablo Botella | |
Rudolf Reinthaler | Re: reading content of printerspooler on Thu, 03 Sep 2009 08:41:34 +0200 Hello Steffen, thanks for the tip, did not realize that this functions also work under Windows, will check them if they are working like expected. regards Rudolf Steffen F. Pirsig schrieb: > Rudolf, > > why not use the SpoolXXX functions from the XbToolsIII? SpoolCount() > does already return the amount of jobs in a printer queue. > > regards > Steffen F. Pirsig > Alaska Software > > "Rudolf Reinthaler" wrote in message > news:1f600b59$661c384b$5b454@news.alaska-software.com... >> Hello Pablo, >> have seen in your library and doc's that it is possible, will try go >> get it workig. Thank you >> regards >> Rudolf >> >> >> >> Pablo Botella schrieb: >>> Hi, >>> >>> You can use the function EnumJobs() from winspool.drv >>> >>> Regards, >>> Pablo Botella > | |
Rudolf Reinthaler | Re: reading content of printerspooler on Thu, 03 Sep 2009 09:24:45 +0200 Hell Steffen, thank you, this functions are working perfect for me. regards Rudolf Steffen F. Pirsig schrieb: > Rudolf, > > why not use the SpoolXXX functions from the XbToolsIII? SpoolCount() > does already return the amount of jobs in a printer queue. > > regards > Steffen F. Pirsig > Alaska Software > > "Rudolf Reinthaler" wrote in message > news:1f600b59$661c384b$5b454@news.alaska-software.com... >> Hello Pablo, >> have seen in your library and doc's that it is possible, will try go >> get it workig. Thank you >> regards >> Rudolf >> >> >> >> Pablo Botella schrieb: >>> Hi, >>> >>> You can use the function EnumJobs() from winspool.drv >>> >>> Regards, >>> Pablo Botella > | |
Steffen F. Pirsig | Re: reading content of printerspooler on Thu, 03 Sep 2009 09:55:46 +0200 Rudolf, yes and there is also a sample in the XbToolsIII samples directory called xppspool which shows how to control the windows spooler in means of starting/stopping/adding-removing jobs and so on. regards Steffen F. Pirsig Alaska Software "Rudolf Reinthaler" wrote in message news:3ceeac7b$541b8f52$5d244@news.alaska-software.com... > Hell Steffen, > thank you, this functions are working perfect for me. > regards > Rudolf > > Steffen F. Pirsig schrieb: >> Rudolf, >> >> why not use the SpoolXXX functions from the XbToolsIII? SpoolCount() >> does already return the amount of jobs in a printer queue. >> >> regards >> Steffen F. Pirsig >> Alaska Software >> >> "Rudolf Reinthaler" wrote in message >> news:1f600b59$661c384b$5b454@news.alaska-software.com... >>> Hello Pablo, >>> have seen in your library and doc's that it is possible, will try go get >>> it workig. Thank you >>> regards >>> Rudolf >>> >>> >>> >>> Pablo Botella schrieb: >>>> Hi, >>>> >>>> You can use the function EnumJobs() from winspool.drv >>>> >>>> Regards, >>>> Pablo Botella >> | |
Rudolf Reinthaler | Re: reading content of printerspooler on Sat, 05 Sep 2009 07:51:34 +0200 Hello Steffen, thank you, found it, very helpful. Just finished my program and works perfekt. regards Rudolf Steffen F. Pirsig schrieb: > Rudolf, > > yes and there is also a sample in the XbToolsIII samples directory > called xppspool which shows how to control the windows spooler > in means of starting/stopping/adding-removing jobs and so on. > > regards > Steffen F. Pirsig > Alaska Software > > "Rudolf Reinthaler" wrote in message > news:3ceeac7b$541b8f52$5d244@news.alaska-software.com... >> Hell Steffen, >> thank you, this functions are working perfect for me. >> regards >> Rudolf >> >> Steffen F. Pirsig schrieb: >>> Rudolf, >>> >>> why not use the SpoolXXX functions from the XbToolsIII? SpoolCount() >>> does already return the amount of jobs in a printer queue. >>> >>> regards >>> Steffen F. Pirsig >>> Alaska Software >>> >>> "Rudolf Reinthaler" wrote in message >>> news:1f600b59$661c384b$5b454@news.alaska-software.com... >>>> Hello Pablo, >>>> have seen in your library and doc's that it is possible, will try go >>>> get it workig. Thank you >>>> regards >>>> Rudolf >>>> >>>> >>>> >>>> Pablo Botella schrieb: >>>>> Hi, >>>>> >>>>> You can use the function EnumJobs() from winspool.drv >>>>> >>>>> Regards, >>>>> Pablo Botella >>> > |