print gridviews, datagrids, or datatables
I'm looking for a solution to implement in web apps where I have the option to see a print preview or print either a gridview, datagrid, or datatable or export it to word or excel. What's the best method to do this or has开发者_如何学Go someone written a class that does this, and does it well (I've seen many examples, but many still have errors)?
Perhaps you could look into converting your DataTable's to Table's in HTML then using the resources for setting up Media types to format it for a print job. Thought behind this response would be this link:
http://www.dreamincode.net/forums/topic/17049-printing-in-html/
精彩评论