Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dan East on Feb 08, 2008 07:19
open dhtmlx forum
printView customization

We are using printView to generate a printable version of the table. However we need to include some additional information on the printable version, like the name of the table, etc. Is it possible to include extra html the print view?
Answer posted by Support on Feb 08, 2008 07:32
In current version - there is no API for such functionality but you can place any custom HTML inside
    dhtmlxgrid_nxml.js , printView method, line 391

var html="....

You can add any custom HTML code in this var
Answer posted by Dan East on Feb 08, 2008 07:36
Thanks.  Would you consider modifying the printView method to include two additional optional parameters, which would specify html that is inserted before and after the table html?  This would allow great customization without having to modify the dhtmlx sources.
Answer posted by Support on Feb 08, 2008 08:17
We plan to extend functionality in next version to make it more configurable.

>>This would allow great customization without having to modify the dhtmlx sources.
Please use attached js file instead of original one
With it you can call printView as
   
    grid.printView(some_html_before_table,some_html_after_table);
Attachments (1)