|
A few years ago, I was stuck with a similar problem, and I really did not wanted to write all the Printer statements from code. I wrote a simple DB to HTML code module and displayed the report in form of a web page. Then it was a simple right click and print solution. Although it is rather rough logic but still it will save you from writing larger amount of code like margins, word-wrapping, etc.
You can use other grid controls which have direct print method, or the professional grid controls like FlexGrid which can give you a lot of control over how you print the database information.
And lastly, you can write your own GridPrinter module. It will consume a lot of logic and time, but it will be completely of your own of-course.
Hope this helps.
|