Re: Automatically print admission form

Message from Damien Solley dsolley@gmail.com

Hi Tony,


Thanks for that information. I have made a hospital admission form with some usable form fields. (attached)

However, when I print it the Chinese characters print as little squares. 

I'm guessing this is a server configuration issue. 
On the server (AMD64 Ubuntu 10.04) I have mysql configured for UTF8:
[mysqld]
character-set-server=utf8
default-collation=utf8_unicode_ci

And the appropriate font is installed. 

When I open the .odt file in a local session on the server, the fonts display correctly. It also prints correctly from Openoffice run from the server.

Any ideas?
Damien


On Wed, Jan 19, 2011 at 1:57 PM, Tony De Keizer <tony@verticalconnect.net> wrote:

Hi Damien,


If you add the admission form as a Patient Form in templates then when you are checking in a patient from the scheduler to the hospital list it prompts you if you wish to print a form and displays  a list of available forms.  Selecting the form will automatically merge and print the form and you will see the form as a Patient Form in the medical records and documents area (for reprint etc).   

If you create the form using merge fields (as per http://www.openvpms.org/document-merging-with-open-office-writer) much of the information will be already filled in.

Customer and Patient attachments do not merge and are made for attaching scanned documents, spreadsheets or any other file type you want to store with the customer and patient.

Cheers

Tony


_______________________________________________

OpenVPMS User Mailing List

users@lists.openvpms.org

To unsubscribe or change your subscription visit:

http://lists.openvpms.org/listinfo/users

Posts from this mailing list can be viewed online and replied to in the OpenVPMS User's forum- http://tinyurl.com/openvfu


Comment viewing options

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

Re: Automatically print admission form

Hi Damien,

I don't think it is anything to do with the database as the text at issue is static on the document and not being merged from openvpms data.

Did you check printing of the document directly from open office on the openvpms server and logged in as the user that runs tomcat ?  

i.e tomcat starts as a specific user on your server and as such an open office process is created by Tomcat to do the merging and printing of forms and letters.  Maybe fonts or other settings are not setup to print these characters on this user.

Only other solution si to look at code to see if we are instructing open office to print in a way that circumvents some kinds of character processing ... that may take a bit more investigation :-)

Cheers

Tony

Re: Automatically print admission form

Hi Damien,

Tim had some ideas on this as well.  Maybe a specific ubuntu printing issue as described here:

http://www.oooforum.org/forum/viewtopic.phtml?t=71249&highlight=

Specifically I think resolved by setting open office preference

"Tools->options->Openoffice.org Writer->Basic Fonts (Asian) from non chinese fonts to chinese fonts (in my case AR PL New Sung)"

Apparently issue is previews as pdf OK but doesn't print characters unless this set.  Does your document preview ok in OpenVPMS ?

If Print from preview does it print OK ?

Cheers

Tony

Syndicate content