Medication Label Orientation

Dear Forum Members,

I am tearing my hair out trying to get my medications labels to print on my dymo labelwriter 450 in landscape mode. As I sit here typing this post, my desk is littered with discarded portrait versions of a medication label. The labelwriter is connected directly to the server (ubuntu 20.04). It prints fine, just in portrait. I have tried:

1) Specifying 'landscape' in Administration|Templates|Document Template for the medication label

2) Adding 'orientation="Landscape"' to the jrxml file

3)Checking in JasperStudio that the orientation is landscape

4)Issuing 'sudo lpoptions -p Label_Label_Printer -o landscape' on the command line.

I am still looking at a very smugly determined portrait medication label after these steps. Has anyone faced similar issues and found a fix?

Kind regards

Chris

Comment viewing options

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

Re: Medication Label Orientation

Hi Chris,

We've had these issues multiple times.

I have some instructions from years ago that might help you. If that doesn't work I could zoom meet and compare your set up to ours and see what's different.

 

The task is to set the printer defaults for ALL users – not just the one you are logged in as.

In server manager, expand out Roles| Print & Document Services|Print Management|Custom Filters|All printers, then right-click the appropriate printer and left click Set Printing Defaults

Then click the Advanced button – and select the required printer size, then OK all windows to close things.

It was  set to

I changed this to the required 54 x 70 label.

Re: Medication Label Orientation

Thanks so much for your reply Greta. Unfortunately I couldn't see the images you attached, they just came through as blank spaces. I understood the text though, and will look in to the all user aspect of the printing. As my server is a headless linux machine everything has to be done on the command line rather than through a graphical interface but that shouldn't be an issue.

Chris

Re: Medication Label Orientation

Further to my last post I have done an additional test. If I save a pdf of a drug label using the preview function, scp it across to the server then print it using:

lp -d Label_Label_Printer -o landscape Drug\ Label.pdf

I get a perfectly printed correctly landscaped drug label.

I have no concept of how openVPMS passes commands to the printer. Is there a config file hidden away in the WEB-INF directory that allows modification of the command used?

Re: Medication Label Orientation

Hi Chris,

On Linux you need to add this line to  /etc/cups/lpoptions
 

Dest Label_label_Printer orientation-requested=6

and restart cups.

Cheers
Tony

Re: Medication Label Orientation

Thanks for that Tony. Unfortunately all that happened is the label printed upside down in portrait. I then tried all the other combinations (3,4,5) and they variously print upside down portrait or right way up portrait but always portrait.

Chris

Re: Medication Label Orientation

Hi Chris,

Have you changed the template orientation in OpenVPMS ?

Cheers
Tony 

Re: Medication Label Orientation

Tony you either have amazing intuition or a long history or working with idiots. I am one of the latter I am afraid. I had forgotten that I created a dummy (pun intended) label report when I was playing with openVPMS's document reports, trying to work out what was available etc etc. In trying to correct my label problem I have been busy editing the template for this dummy entry instead of actually editing the correct template file. Your post prompted me to look a bit more closely and I realised my error. All sorted now thanks very much.

Chris

Re: Medication Label Orientation

Sorry to NECRO this thread but due to a network change we have migrated one of our Dymo's to a WINSTAR usb network print server which supports lpd printing...

 

We can print ok, but I cannot for the life of me get it to reorientate the label to the correct presentation.

I have used the above lpoptions and restarted cups - but nothing makes it switch 

Is it possible the queue just doesnt support that option? 

I am not overly familiar as to whether the job is sent to the queue with options and the print server rotates or if its rotated before the data is sent.

EDIT: I know I could edit the template and invert it....but honestly I was hoping to avoid that

 

Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au

Re: Medication Label Orientation

Hi Ben,

How was the printer connected previously ?

It was still setup in cups I assume ?

Not sure why changing a network location for a printer woudl require an orientation change ?

Does the print server support port 9100 (Hp ) connection as it might be something to do with the lpd protocol ?

Cheers
Tony

Re: Medication Label Orientation

Basically I copied the old ppd file to a new file - to allow changes with out affecting the old config.  Given with all our DYMO printers we have always need to flip the print job to match the custom labels.  Historically this has been fine.

The printer has been moved from using a SAMBA share as the network destination to the print server and using LPD 
 

Description: DYMO ON Winstar
Location: Back OFfice
Driver: DYMO LabelWriter 450 Turbo (grayscale)
Connection: lpd://10.1.1.18/queue
Defaults: job-sheets=none, none media=om_w154h198_54.02x69.85mm sides=one-sided
 

The connection used to be `smb://10.1.1.X/Dymo`

 

LPOPTIONS below

bcharlton@openvpms:/etc/cups$ sudo cat lpoptions
Dest DYMO orientation-requested=6
Dest DYMO450 orientation-requested=6
Dest DYMO_TREATMENT_1 orientation-requested=6
Dest DYMO_WINSTAR orientation-requested=6
bcharlton@openvpms:/etc/cups$

Thats the only real change

 

 

Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au

Re: Medication Label Orientation

Solved - 

 

Cups requires that LPOPTIONS are applied to the entire printer class when you are using class's as opposed to individual printers. 

Thats a bit annoying when you consider that you might have different printer types in a class...but hey my issue is solved

 

Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au
Syndicate content