Changing printer PPD causes ODTs to print to wrong printer.

G'day all,

Last week I swapped to an HP PPD file with more features for the mono laser printer.  However, all ODT templates are now printing to the alternate printer for that location.  All JRXML templates are fine, printing as usual.

I have checked Practice Location default printer, individual template printer both set to the mono laser, yet the ODT templates print to the colour laser.  It has me stumped as to why only one template set is doing this.  Any ideas?

Also on printing, there were a few threads about 4 years ago regarding printer features such as tray selection, duplexing etc.  Are these settings actually passed to the printer at the moment?

Simon

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Changing printer PPD causes ODTs to print to wrong printer.

When determining which template and printer to use, the following search order is used:

  1. Practice Templates
  2. Location Templates
  3. Document Template

i.e. If there is a relationship between the Practice and a Document Template, this will be used to determine the printer. If not, but there is a relationship between a Practice Location and Document Template, then this will be used. Finally, if there are no relationships, the Document Template will be sent to the Default Printer for the current Location.

When you change any of these, make sure you log out and log back in again to ensure you are not picking up cached values.

 

Re: Changing printer PPD causes ODTs to print to wrong printer.

Hi Tim,

That's what I thought - double checked no Practice templates; default Practice Location printer correct; individual template printer correct and a Tomcat re-start to be sure.  Yet the ODT only are still going to the printer that is not default, nor set in the template.

One tested template for an ODT had a printer set and another did not yet both printed to the non-default printer.  However the JRXML templates, with or without printer set in the template, send to the correct printer.

What I don't understand is how the system is changing behaviour for the different template types.  This is in v1.8. Would that make any difference?

Simon

Simon Slater

Registered Linux User #463789 @ http://linuxcounter.net

Re: Changing printer PPD causes ODTs to print to wrong printer.

Make sure you are actually using the template you expect. It is possible to load up multiple templates for the one report Type.

Also, try restarting OpenOffice (the soffice process). It may not have picked up the printer change.

The following query shows which templates use what printers:

select template.entity_id, template.name, printer.value printer_name, template.active
from entities template
join entity_relationships r
    on r.source_id = template.entity_id
        and r.arch_short_name = 'entityRelationship.documentTemplatePrinter'
join entity_relationship_details printer
    on r.entity_relationship_id = printer.entity_relationship_id
        and printer.name = 'printerName'
where template.arch_short_name = 'entity.documentTemplate'
    order by template.name, printer.value
    

 

Re: Changing printer PPD causes ODTs to print to wrong printer.

soffice was the culprit - thanks Tim.  I saw on Friday or Saturday that it had been running since mid-April, but I didn't kill it then.  Killed it now and the new process works fine.

About the printer settings which can be set in a Template, such as paper size, orientation, input tray or duplex options - to what extent are these used when preparing/sending a print job?

Simon

Simon Slater

Registered Linux User #463789 @ http://linuxcounter.net

Re: Changing printer PPD causes ODTs to print to wrong printer.

As per https://www.openvpms.org/documentation/csh/2.0/admin/template/documentTe...

Note that for OpenOffice and Microsoft Word templates, the Paper Size, Orientation, Paper Height, Paper Width, and Paper Units settings of the Document Template are ignored. These settings must be specified within the OpenOffice or Word template. That is, they are only used for templates that use Jasper Reports (jrxml) content.

Syndicate content