11 Dec 2008 7:24 AM #11
First of all something i have done on the reports its to Order in the store the fields exactly as the column headers so the store's field index can match the index of the column header
you may use firebug to check the behavior of the printer code also on lines 158 to 241
Check this property also usenameindex (not included on the manual)
About the domPDF error check the dompdf page and forum.
In my experience i've some errors too when the records are too much and if you are using the custom tpl that came with xprinter maybe it generates a table so big it passes the page height so this issue generates an error (domPDF error)
on this case what you can do is:
1.- Adjust the paging of the grid so each time you create a report it could match the eheigh of the page
2.- change or adjust to your needs the TPL object on line 99 on the file extjs_printergrid_0.0.1.js so instead of generating a TABLE element it could create a DIV element
Hope this works
PD. if it doesn't work please give me a link so i can check it out and see what the problem is
11 Dec 2008 7:35 AM #12
I realized my data were in the same order as my store, while it should be as my grid.
Resolved with usenameindex: true.
Should'nt it be grid's order by default ?
And it would not be as disturbing if columns header had the same order as the data (it seems columns header don't take care of usenameindex value).
11 Dec 2008 7:53 AM #13
Now printing works good. PDF export still does not works, and it will be more complicated, because I have to print at least 100 or 150 items, but PDF export is not indispensable for me, unlike printing, so it is not disturbing.
11 Dec 2008 7:56 AM #14
Well you right, gonna check it later
But for the app i'm making was easier for me to get the header as reference and only the name so i could link it by index to the store fields or data (in the case of grids),also consider the Xtprinter needs a lot work yet its the first version
11 Dec 2008 8:20 AM #15
No problem. It works good enough for me now.
I have just one last problem, when printing. I have strange characters in my headers (using
11 Dec 2008 8:31 AM #16
inside xtprinter file add a custom function to replace those chars maybe with acute; notations , on lines 219 and 221
20 Dec 2008 2:48 AM #17
This is a very nice plugin. Can anyone tell me, please how can I show all the records on the printing page ? I have pagination on my grid and at print I only get a few results that were on my 1st page of the grid ..Maybe a solution for this ? I tried the pagination over the printing page but no success. How should I handle multiple pages of records at print ?
20 Dec 2008 4:50 PM #18
21 Dec 2008 1:16 AM #19
21 Dec 2008 5:26 AM #20