I have a grid which is being used as a worksheet for entry of quantity of stock that is being moved from one location
In order for the user to make an intelligent decision about what to pick a number of fields are displayed.
and this grid is printed (a pick sheet) as reference as they go out to get the stock.
This is fine in the grid but needs to be massaged when printed.
Tts too wide and needs some better styling
insert <br> in header names where i wanted them to make the header two lines tall
insert a <span> in numeric cells so i can apply text alignment to the fields
not for the faint of heart --> I have done a very bad thing <--
but it works so who cares
i count the number of rows that have been exported and when it hits a predertimined count
i inject a page break and reproduce the header from the top of the table.
of course i know that this code is very fragile and will break if you ever change the HTML
your export routines are producing but ill deal with that when it comes.
So what would be cool for me in your export routine
- a style attribute that could be applied to the underlying value on a "table" basis and then on a "td" and "tr" basis.
- a class attribute that could be applied to the underlying value on a "table" basis and then on a "td" and "tr" basis.
- an indicator as to what type of export we are doing (excel, printing etc)
- a reference to the cell/row from the grid that is being exported in your export event.
Now if you wanted to go totally crazy.
- An OuterHTML attribute that could be overrided in the export event for each of the items reported assembled.
- An InnerHTML attibute that could be overrided in the export event for each of the items being assembled.
of course antying you can do will be appreciated
thanks for listening vlad