Letterhead Logo field

The letter head logo field doesnt seem to work for me

under linux we use a path 

/home/openvpms/customizations/header.png

Simply pasting this produces a blank

in templates we use

"/home/openvpms/customizations/header.png"

in the field

if I edit the letterhead template to change it for the above it works if I use the first entry in the logo field it fails.

 

 

Comment viewing options

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

Re: Letterhead Logo field

Ben - I have had a play.  Initially same problem as you had (no image displayed).

I fixed two errors: a) wrong case - was using /home/admin/openvpms.png rather than the correct /home/admin/OpenVPMS.png; b) wrong permissions - need to have read access set for all

If you have a play with the demo system, you can see it working - ie

The letterhead setting is:

Note that the Letterhead.jrxml currently loaded in the demo system has been tweaked to display the filename being accessed if the image does not load. [I did this as an initial debug step to ensure that the filename was coming through as expected.]

Can you check with your system. I must admit that if hard coding "/home/openvpms/customizations/header.png" you must have the case correct and the permissions OK.

One final thought - you do have the Letterhead set in the Practice Location don't you?  If you don't then the logo will NOT appear.  In the demo system I have cleared the letterhead in the Practice Location for the Branch Clinic.  If you set this as the Location then you will get:

where the 'null' is appearing because the field set to $F{OpenVPMS.location.letterhead.target.logoFile} in the Letterhead.jrxml

is returning null because no letterhead has been set for the Branch Clinic.

Regards, Tim G

Syndicate content