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
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).
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.
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
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 ?
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 ?
Thanks.
Its taking the data from the store. If you want more then you will have to bring back more. Paging works by setting a limit on what is returned. You cant print what you dont have. All you have to do is load the store with all the results when the 'print' is requested by the user.
Its taking the data from the store. If you want more then you will have to bring back more. Paging works by setting a limit on what is returned. You cant print what you dont have. All you have to do is load the store with all the results when the 'print' is requested by the user.
Thank you for your response. That seems perfectly logic. Unfortunately, I'm not that experienced with Ext as I'm just beginning to get the feel of it. I don't know how to do this, how to load the store with different results limitations when the print is actually requested. I could use an example, but only if it's not too much. Otherwise, more details on this operation would be appreciated.
Thank you for your response. That seems perfectly logic. Unfortunately, I'm not that experienced with Ext as I'm just beginning to get the feel of it. I don't know how to do this, how to load the store with different results limitations when the print is actually requested. I could use an example, but only if it's not too much. Otherwise, more details on this operation would be appreciated.
Thank you.
You just need to do your store.load() with out the start and limit paramaters