Printing Error: Failed to generate report: No suitable print service found.

Hello All.

I have OPV running on an Ubuntu Server.

When I restart the server, I always get the following print error when I try to print a label or a document like a case history:

Failed to generate report: No suitable print service found.

I am not entirely sure what is causing this, and I am not sure why it fixes itself or if I do anything to fix it, as it happens sporadically - if anyone using Ubuntu has experienced a similar issue, please post a solution!

Cahir.

P.S. I suspect it may be the headless openoffice settings, as I can print from other programs using the CUPS server.

Comment viewing options

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

Re: Printing Error: Failed to generate report: No suitable ...

This message is not related to OpenOffice; it's actually coming from JasperReports.

It may be related to the issue described here: http://it.toolbox.com/blogs/unix-sysadmin/note-0b0101-defining-cups-defa...

Their fix was to define a default printer in CUPS.

-Tim

Re: Printing Error: Failed to generate report: No suitable ...

Hi,

I have seen this error if the printer name specified against a template is incorrect (i.e name was changed in CUPS but not in OpenVPMS) and also if the printer name contained spaces.  Both of these were consistent errors of course so I suggest Tim's response is the best for you.  

Cheers Tony

Re: Printing Error: Failed to generate report: No suitable ...

Thanks for your help guys - issue resolved.

For anyone else's benefit - here was the error:

OPV picks up the printers it has access to from the print server designated on the machine OPV is installed to.  In my case the print server and OPV are on the same machine, the CUPS print server is specified in /etc/cups/client.conf

I also had CUPS installed on another machine in the office, and I had changed a printer name on that.  However, I did not alter the CUPS server on the OPV machine.  Therefore, as this printer's name had changed, it was a "new" printer and was not picked up, so OPV could no longer find it.  To solve this I simply "added" the renamed printer to the OPV CUPS server via the web interface (localhost:631), restarted both CUPS and OPV and everything worked.

Re: Printing Error: Failed to generate report: No suitable ...

Update:

Today I tried printing from a new computer, which I had not added a networked printer to.

I guess that I have to add each printer to each client that I want to print from.

So - my question is - does the printer have to be added to the CUPS server that OPV is using, or the CUPS server on the client, or both?

I'm going with both for now...

Re: Printing Error: Failed to generate report: No suitable ...

If you are printing via OpenVPMS, then the printer needs to be visible to the OpenVPMS server. Note that printing letters and forms that use OpenOffice or Word templates is handled by the OpenOffice soffice.bin process; this is configured to run on the server. If you change printer settings and are no longer able to print these, try terminating the soffice.bin and soffice processes. It will restart automatically on the next print.

If you are downloading documents (e.g. using Print|Preview) and using the PDF viewer to print locally, then the printer needs to be visible to the client.

-Tim

printing

Very efficiently written information. It will be priceless to anybody who uses it, together with myself. Sustain the good work – for positive i will try extra posts.

Syndicate content