Hi Tim,

That did it!  It works now.

Thank you.

Ed.

 

 

From: Dataperf [mailto:[email protected]] On Behalf Of Tim Rude
Sent: Friday, October 13, 2017 4:34 PM
To: [email protected]
Subject: Re: [Dataperf] DPSpool printer code <249>DV<249> for Duplex printing.

 

Ed,

I'm sorry. I gave you some bad info. While my method of creating a second copy 
of the printer for duplexing does work (exceptionally well) with most programs, 
I forgot that I wrote DPSpool to be more 'in control'. That means that DPSpool 
overrides the duplex setting (and just about every other setting) with its own 
setting and negates the benefit of having that second copy of the printer.

However, I've been spending some more time with it and have narrowed down an 
issue that makes a definite difference on my system - hopefully it will on 
yours too. By default, DPSpool sets the Print Quality of the printer to High. 
If you look in the DPSpool.ini file you should see a line in each [PrinterX] 
section that says 'PrintQuality=High' (unless you've changed it to something 
else). On my Brother laser printer, standard print quality is 600 DPI whereas 
the High setting in DPSpool sets it HQ1200. Apparently, my printer doesn't like 
printing duplex in HQ1200 mode. If I set the PrintQuality to Medium (either in 
DPSpool.ini or by means of a <249>QM<249> code in my report), it leaves it at 
600 DPI and the duplex printing works perfectly.

One thing to note is that the printer setting codes (duplex, quality, 
orientation, paper size, or paper bin) should be sent at the very beginning of 
the document prior to any other text or printer-control-codes (even margin 
settings). 

So please (1) try setting your print quality to Medium and then (2) add your 
duplexing code. That means that in your report, as the very first codes in the 
First Page Header, you want to have: <249>QM<249><249>DV<249>

If you use the recommended RV250 method of setting your print-job filename in 
the First Page Header, those codes should go immediately after the ---Turn File 
On--- line. Then you can have your margin codes and the rest of the report 
follow.

Please try that and let me know if it makes any difference.

Tim Rude

On 10/13/2017 12:01 PM, Ed Marfil, MAST UNITED wrote:

Hi Tim,

 

I was fiddling with this for a while (until the evacuation order anyway) but 
just couldn’t get the second page to print on the flip side.

I checked the printer setting and printed a normal word document and it does 
print duplex in that program.

Just not in a DP report.

 

Not sure what else to try at this point.

 

Ed.

 

From: Dataperf [mailto:[email protected]] On Behalf Of Ed Marfil, 
MAST UNITED
Sent: Thursday, September 28, 2017 9:53 AM
To: [email protected] <mailto:[email protected]> 
Subject: Re: [Dataperf] DPSpool printer code <249>DV<249> for Duplex printing.

 

Okay, I’ll try it out and cross my fingers.

Thanks Tim.

Ed.

 

From: Dataperf [mailto:[email protected]] On Behalf Of Tim Rude
Sent: Wednesday, September 27, 2017 8:29 PM
To: [email protected] <mailto:[email protected]> 
Subject: Re: [Dataperf] DPSpool printer code <249>DV<249> for Duplex printing.

 

Hi Ed,

Ugh. Testing the duplex command I see that it is indeed broken somehow. Tracing 
through the DPSpool source code I'm not exactly sure why at the moment (it has 
been years since I wrote DPSpool's very complex code, after all). I can see 
that the duplexing command is being sent to the printer driver but in my tests 
the printer just sits there and never actually spits out the pages. Very 
strange. DPSpool's printing routines are a combination of the VB printer object 
augmented with a lot of API calls to fill in the gaps in the VB printer 
object's abilities. It would appear that something's not playing nicely 
together. :(

In any case, there's another way to do duplexing that you might consider as a 
work-around until I can figure out what's going on under DPSpool's hood (which 
may take a while).

My printer is also a duplexing printer and for ease of duplex printing (from 
any number of Windows applications), I created a second copy of the printer and 
named it 'Duplex Printer xyz'. I then set the printing properties for that copy 
of the printer to duplex mode. Then whenever I want to print something duplex, 
I simply select that copy of the printer to print to. I've used a similar trick 
when I want to be able to easily print to a specific tray. For example, setting 
up a 'Printer xyz Plain Paper - Tray 1' and a 'Printer xyz Perf Paper - Tray 
2', or even a 'Printer xyz Manual Feed'. You can create any number of copies of 
the same printer, with different preset properties for each. I like it because 
it makes it quicker to get just what you want without having to futz around 
with the printer properties each time.

Anyhow, if you create a copy of your printer and pre-configure it to print in 
duplex mode, you can then have that set up in DPSpool as one of the 9 printer 
targets and just point your report to go to that one.

To create an additional copy of an existing printer in Windows 7, you do this:

1. Open up Devices and Printers in Control Panel and right-click on the 
existing printer you want to clone and select 'Printer properties'. Take note 
of which Port (on the Ports tab) and which Driver (on the Advanced tab) the 
printer uses. Then close the Printer Properties window.
2. Still in the Devices and Printers screen, click on the 'Add a Printer' 
button at the top. Then choose 'Add a local printer'. Be sure to select the 
exact same port and then select the exact same driver. When it asks, tell it to 
'Use the driver that is currently installed'. Then specify the new name you 
want for this copy of the printer. Keep clicking Next until it's done creating 
the copy.
3. You probably won't see the new copy on your Printers and Devices screen. 
However, if you right-click again on your original printer and select 'Printing 
preferences' you'll see that Windows combines both copies of the printer under 
one icon. So select your new copy and configure the preferences as desired 
(duplex, tray, etc.).
4. If you ever need to remove one of the clone copies without deleting the 
entire printer, simply right-click on the combined icon and select 'Delete 
print queue' and then select the copy you want to remove.

The process for doing this in Windows 10 is very similar. However, in step 2 
after clicking on the 'Add a Printer' button, you then have to select 'The 
printer that I want isn't listed' to stop Windows from fruitlessly searching 
for a new printer. Then you select the 'Add a local printer or network printer 
with manual settings' option and then proceed with the rest of step 2.

Give this a shot and see how you like it. You may find it useful for more than 
just DPSpool.

Tim Rude

On 9/27/2017 6:13 PM, Ed Marfil, MAST UNITED wrote:

Hi Tim,

 

I have been trying to get my report to print on the reverse page using the 
duplex command.

I have placed the command code at the beginning of the document, the end of the 
document, etc. but it does not work.

I tried placing it in the header, second page header, in the page footer, in 
the final footer, and in the report body as well.

None worked.

 

I’ve tried it with two different printers; HP and a XEROX.  Both printers are 
duplex capable.

I tried to glean more insight from your brief note on this printer command code 
but I got nada.

Do you have more info on this printer code?

 

Thanks.

Ed.

 






_______________________________________________
Dataperf mailing list
[email protected] <mailto:[email protected]> 
http://lists.dataperfect.nl/cgi-bin/mailman/listinfo/dataperf

 

_______________________________________________
Dataperf mailing list
[email protected]
http://lists.dataperfect.nl/cgi-bin/mailman/listinfo/dataperf

Reply via email to