We tried IE and Chrome browsers but Firefox was best and can be set to preview instead of download. The PDF loads in the browser window and then you just 'right click' print or 'file->print'...
I think that the problem sometimes occurs when the web server 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 prompt the user to save/download the PDF.
I found this code on stackoverflow that maybe could be used in openErp:
open(PDF, "the.pdf") or die "could not open PDF [$!]";
binmode PDF;
my $output = do { local $/; <pdf> };
close (PDF);
print "Content-Type: application/pdf\n";
print "Content-Length: " .length($output) . "\n\n";
print $output
You have already filed a similar one:http://help.openerp.com/question/10802/how-do-i-open-pdf-file-directly-while-printing-instead-of-save-as-prompt/ please close this to avoid duplicates.
Hi Naresh, The previous one I want to open as PDF file directly instead of Save as Prompt. This one Print Directly without generating PDF. This two are different. Thanks
Anand ! I edited the title ! So no more confusion. :-D
Don't know how, but this video shows exactly what we need: http://www.youtube.com/watch?v=7PPrVxgJ934 . Says the module will be released soon
Hello,
This module may be helpful to you. User wise print or open the report.
https://apps.odoo.com/apps/modules/14.0/shvm_report_options/