Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
19624 Weergaven

When ever a Print button is pressed, PDF file is generated and Save Dialog Appears. I want PDF file to be opened directly so that user can print instead of Save as Prompt.

How to implement this?

Avatar
Annuleer

Which OpenERP version are you using?

Auteur

I am using OpenERP 7

which browser?

Auteur

Is it browser dependent? I have tried with Chrome.

firefox can be set to 'view' instead of download. The problem occurs when the web server (openerp software) you are downloading the PDF from does not serve the PDF with the correct MIME type.

When the web server serves a PDF with the correct MIME type, Chrome previews it. When the web server serves a PDF with the incorrect or generic MIME type (application/octet-stream), Chrome downloads it.

If the server returns a Content-Type of text/html Chrome will display/open the PDF directly in the browser. However, if the server returns a Content-Type of application/pdf then the browser will

How to verify if my PDF have the right MIME type? I can't autosave PDF in chromium.

to verify MIME type of a file : http://mime.ritey.com/

Beste antwoord

Hello Anand,

You can easily print any Odoo report directly instead of saving the file using this app - Odoo Direct Print https://bit.ly/ODP15

Avatar
Annuleer
Beste antwoord

Hi you can use web_pdf_viewer module for your purpose

Avatar
Annuleer

This module does not seem to be available through the OpenERP module installation interface in v7. Wil it eventually get there and if so when?

Beste antwoord

hi,
 You can use this link to solve your problem https://github.com/OCA/report-print-send/tree/11.0/base_report_to_printer

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
8
mei 25
42583
0
apr. 22
2095
3
mei 21
11168
1
mrt. 21
4540
2
dec. 20
3088