For Grid, it would be nice if I could pass in a 2 or 3 line header so I could print the report name and a few parameters.
Or if would be possible to have something like:
grid.setHeaderPdf(‘xyz’);
which would only show on pdf / excel output.
For Grid, it would be nice if I could pass in a 2 or 3 line header so I could print the report name and a few parameters.
Or if would be possible to have something like:
grid.setHeaderPdf(‘xyz’);
which would only show on pdf / excel output.
Currently you can configure server side to include some image or some excel file ( in case of export to excel ) before data output. Such image|file can contain necessary extra info.
It would be nice if you could pass in 3 strings for the header and have the pdf center each of the strings in the header.
Such as:
var header1="The Title of the Report";
var header2="Department XYZ"
var header3="1/1/2012 - 6/30/2012"
grid.toPDF(url,"color", header1, header2,header3);
And then center each of the 3 stings in the header…
It’s not very practical to create an image file for each report…actually it is impossible as the pdf library only accepts “header.png” and “footer.png”
We are providing full sources of “to-pdf” solution, so you can alter code and add the extra lines which is necessary in your case.
Each use-case requires different header|footer formatting and structure - so we don’t see a way to implement universal solution
When you say you don’t’ see a universal solution because each header is different, I’m don’t understand. Not having the ability to supply my own 2 or 3 line header makes the PDF output kind of unusable.
Maybe you could create an interface that accepts 3 header lines and then the header height. That way your pdf code will know the height of the header.
You could default the font size and line height to same as the text in each cell. Or make it 1 pt larger.
DHTMLx has done such a great job with the Screen, PDF and Excel output it seems like you’ve solved much harder issues.