콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
19779 화면

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?

아바타
취소

Which OpenERP version are you using?

작성자

I am using OpenERP 7

which browser?

작성자

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/

베스트 답변

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

아바타
취소
베스트 답변

Hi you can use web_pdf_viewer module for your purpose

아바타
취소

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?

베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
8
5월 25
42787
0
4월 22
2162
3
5월 21
11333
1
3월 21
4645
2
12월 20
3200