Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014425Openbravo ERPZ. Otherspublic2010-09-03 14:252022-02-01 08:09
dbaz 
Triage Platform Base 
highmajoralways
newout of date 
5
2.50 
 
Smartclient
No
0014425: "File->Print" in the browser should print a consistent view
If you not define a specific way, the browser will try to print what is shown in the window (even each browser output is slightly different for the same thing).
If there is an scroll maybe you print all the content or maybe just what you are seeing (it depends of the html structure and the browser), so you finally have in the sheet more or less just what you are seeing in the screen.

The standard way to solve this, is by adding a print CSS, so the output will be the same independently of the browser size or type

All classic OB windows have a print CSS file

<LINK rel="stylesheet" type="text/css" media="print" href="../web/skins/ltr/Default/Openbravo_ERP_print.css" id="paramCSS_print"></LINK>

which basically is a call to this simple file

https://code.openbravo.com/erp/devel/pi/file/6694399f367d/web/skins/Default/Openbravo_ERP_250_print.css [^]

With this we obtain (in 2.50) that if you make a "File -> Print" the menu doesn't appear, it print all the form (even if there is a scroll), and the four/six columns fits perfectly the A4 sheet width.

PD: This topic comes to avoid a regression of this issue when going from 2.50 to 3.00
https://issues.openbravo.com/view.php?id=8975 [^]
There should be a research to determine if Smartclient provides a way of set a print CSS somehow. If not, maybe since these CSS are very simple, one (out of Smartclient) can be developed just with some fixed widths and height (to ensure the full page width is printed in the sheet) and import it in the index.html
No tags attached.
Issue History
2010-09-03 14:25dbazNew Issue
2010-09-03 14:25dbazAssigned To => mtaal
2010-12-06 07:48alostaleStatusnew => scheduled
2011-09-07 12:54mtaalTypedefect => feature request
2016-10-21 11:04mtaalStatusscheduled => closed
2016-10-21 11:04mtaalResolutionopen => out of date
2016-10-21 13:17mtaalTag Attached: MT_closed_out_of_date
2016-10-21 14:08mtaalAssigned Tomtaal => platform
2016-10-21 14:09mtaalStatusclosed => new
2016-10-21 14:12mtaalTag Detached: MT_closed_out_of_date
2022-02-01 08:09alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.