health
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health] Thermal printer setting for LibreOffice


From: Yusif Suleiman
Subject: Re: [Health] Thermal printer setting for LibreOffice
Date: Sat, 30 Apr 2022 16:17:53 +0000

Dear Axel,
Finally, I got it working by going to previous copy of the template which I narrowed down the tables and reduced the font size again before adapting the new paper size on the template.
Thank you so much for your time and effort.
Regards,
Yusif


From: Health <health-bounces+yusifsuleiman=hotmail.com@gnu.org> on behalf of Yusif Suleiman <yusifsuleiman@hotmail.com>
Sent: Thursday, April 28, 2022 3:44 PM
To: General GNU Health discussion and help <health@gnu.org>
Subject: Re: [Health] Thermal printer setting for LibreOffice
 
Dear Axel,
I have successfully reduced the size of all the contents of the invoice template so that when changing the layout to meet the paper size the contents will not go out of range. see the attached new template (am sorry, this give error on paste.opensuse.org).

I got this error message. I try to make sure all the content of the original template noting is missing.
Please, guide.
Regards,
Yusif

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 89, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 45, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/wsgi.py", line 60, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 122, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 175, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/modules/account_invoice/invoice.py", line 2454, in execute
    result = super(InvoiceReport, cls).execute(ids, data)
  File "/trytond/report/report.py", line 183, in execute
    oext, content = cls._execute(records, data, action_report)
  File "/trytond/modules/account_invoice/invoice.py", line 2435, in _execute
    result = super(InvoiceReport, cls)._execute(records, data, action)
  File "/trytond/report/report.py", line 191, in _execute
    return cls.convert(action, cls.render(action, report_context))
  File "/trytond/report/report.py", line 282, in render
    fd, path = cls._prepare_template_file(report)
  File "/trytond/report/report.py", line 259, in _prepare_template_file
    raise Exception('Error', 'Missing report file!')
Exception: ('Error', 'Missing report file!')

Fault: ('Error', 'Missing report file!')


From: Health <health-bounces+yusifsuleiman=hotmail.com@gnu.org> on behalf of axel.braun@gnuhealth.org <axel.braun@gnuhealth.org>
Sent: Monday, April 25, 2022 10:07 AM
To: General GNU Health discussion and help <health@gnu.org>
Subject: Re: [Health] Thermal printer setting for LibreOffice
 
Hello Yusuf,

Am Montag, 25. April 2022, 00:04:57 CEST schrieb Yusif Suleiman:
>
> The paper on the xprinter is about 2"x4"
> (https://paste.opensuse.org/64307111). Because of how little is the paper,
> printed information cannot be visible, as you can see from the attachment.

You need to adapt the layout of the invoice to that paper size! And then you
try to print to PDF first, to see if layout is OK and evreything is visible.

Cheers
Axel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]