Re: Print jobs get out of order between workstation and printer

From: tom knauf (tom.knauf_at_itds.de)
Date: 12/08/04


Date: Wed, 8 Dec 2004 11:53:44 +0100

Hi,

we ran into this problems with printing 3500 invoices in one "run".
After sending the report to the printer you have no control what windows
does to it (sequence). We tried with pause and so on

2 solutions
1. Set the number of copies instead of printing 3 times. Set it in the
printer driver , ask the user in via getprinter() or hack the frx.

2. We did not enjoy all the trouble, so we "cheated". Print to a file and
copy the whole (merged) bunch to a printer. Then for windows its ONE job and
no "I need this powerpoint presentation now" can irritate the printer in
between. Additionally we copy the file into an archive to reproduce it if
necessary.

HTH
Tom

One disadvantage may be that you can only reproduce the whole print action
(remember : 3.500) , so the users learned to check the paper before starting
the job and NOT to turn off the printer in the middle of the job because
they want to go home earlier:-).

"Ook" <usenet@nospam.emberts.com> schrieb im Newsbeitrag
news:eiFQGZL3EHA.2572@tk2msftngp13.phx.gbl...
> We have an app running on WinXP workstations, app is hosted on a Win2003
> server. Printer is connected to theWin2003 server. Application does this:
>
> For lnCounter = 1 to 3
> report form <myreport> range 1,1 to printer noconsole
> Endfor
>
> For lnCounter = 2 to lnMaxPages
> report form <myreport> range lnCounter, lnCounter to printer noconsole
> Endfor
>
> The basic idea here is that each page prints three times: Page 1 prints 3
> times, page 2 prints 3 times, etc. Normally, we don't have any more then 2
> pages to print, so it comes out on the printer as 1,1,1,2,2,2. (why wasn't
> this done in one loop? I didn't write the code...).
>
> Last night we rebuilt the app and deployed it to the server. The server
> hasn't changed, the report hasn't changed, the printer hasn't changed, the
> printer driver, the code that prints this report hasn't changed. The only
> thing that changed is that we rebuilt the app because of changes in areas
> unrelated to this particular report. Today, the report prints like this:
> 1,2,1,1,2,2. I examined the code, and don't see what would cause this. If
I
> pause the print queue on the server while they print, and then unpause it
> after the app is done, it comes out in the proper order. If I print to a
> different server, it prints fine. My theory is that the app is printing in
> the proper order like it always has, and the server is somehow mixing up
the
> order that they should print.
>
> The windows guys have no clue what to do about it. We have no clue why it
> started doing this just today, and why it does this on just this one
server,
> let alone how to control it. I believe I can fix this in the app by
putting
> a SET PRINTER TO after the printing of each page, and if necessary by
> putting a pause of a second or so between each page: 1,1,1, <set printer
> to><pause 2 seconds>2,2,2<set printer to><pause 2 seconds>.
>
> But it just worries me that after weeks and weeks of testing, it just now
is
> starting to do this for no reason that we can discern.
>
>



Relevant Pages

  • Memory usage on reports
    ... I have an Access 2002 database application. ... that is used prior to printing narrowing it to one record). ... the report that sets a number of variables based on loops through recordsets. ... address on the server. ...
    (microsoft.public.access.reports)
  • Re: Print jobs get out of order between workstation and printer
    ... needs to do and hands the whole shooting match off to Print Manager. ... Your app no longer has to "talk to" the printer. ... > Last night we rebuilt the app and deployed it to the server. ... > server hasn't changed, the report hasn't changed, the printer hasn't ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Problem: w3wp is memory bound
    ... This small experiment is to solve a bigger problem - that with Report ... Server 2005. ... as a small web app ... *each* request won't be able to use more memory. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: user-adjustable reports
    ... *when calling the report in your exe, ... *in your app. ... *copy reports/labels to server drive if they don't exist ... > I'm starting to hear rumblings now about cost, so I don't want to spend ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Print jobs get out of order between workstation and printer
    ... risk of the printer or the server messing with our pages. ... > We have an app running on WinXP workstations, app is hosted on a Win2003 ... the code that prints this report hasn't changed. ... > after the app is done, it comes out in the proper order. ...
    (microsoft.public.fox.programmer.exchange)