Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
report_default_styles_and_behaviour [2015/03/22 11:39]
127.0.0.1 [Page Headers and Footers]
report_default_styles_and_behaviour [2018/05/04 21:40] (current)
Line 1: Line 1:
-===== Apply Defaults ​Styles And Behaviour ======+===== Apply Default ​Styles And Behaviour ======
  
 As of 4.3, Reportico provides the **reportico_defaults.php** file to allow to set attributes, styles, formatting options, and other functions which will be applied to every report. This can be set up to apply to all reports, or all reports in a single project. As of 4.3, Reportico provides the **reportico_defaults.php** file to allow to set attributes, styles, formatting options, and other functions which will be applied to every report. This can be set up to apply to all reports, or all reports in a single project.
  
-This file allows you to set usefule ​default behaviour including :-+This file allows you to set useful ​default behaviour including :-
  
 Setting default styles to different areas of the report such as setting default colors, borders, margins, paddings etc. These can be applied to the report body, and most of the elements within the report such as group headers/​trailers,​ detail block and individual cells. At the moment most styling options can be applied to both PDF and HTML format. Setting default styles to different areas of the report such as setting default colors, borders, margins, paddings etc. These can be applied to the report body, and most of the elements within the report such as group headers/​trailers,​ detail block and individual cells. At the moment most styling options can be applied to both PDF and HTML format.
Line 12: Line 12:
 placing this in a project folder it will be used for all reports in that folder instead of the global one. placing this in a project folder it will be used for all reports in that folder instead of the global one.
  
 +
 +===== A note on fonts =====
 +
 +It is possible to set the font to use but given that the PDF and HTML mechanisms use a different source for fonts it is necessary to specify different style sets for the two formats.
 ===== Apply Styles ===== ===== Apply Styles =====
  
Line 72: Line 76:
             $reportico->​set_page_header_attribute("​H1",​ "​Justify",​ "​right"​ );             $reportico->​set_page_header_attribute("​H1",​ "​Justify",​ "​right"​ );
 </​code>​ </​code>​
 +
 +For page footers do exactly the same using the create_page_footer and set_page_footer_attribute functions but the line number is relative to the bottom.
  
  • report_default_styles_and_behaviour.1427024358.txt.gz
  • Last modified: 2018/05/04 21:39
  • (external edit)