Actually I'm working on a solution to your exact problem right now. I don't
suppose you're in a situation to be able to make "free" improvements to my
code or work with me on i (keeping the final result completely free for
other's to use)? Anyway, depending on your timeline I can either just send
you what I have right now so you can look it over to get some ideas, etc.
Or if you want to give me a deadline of say 4 days, I can get my *** in gear
and get it posted to my website. I think I just need about 16 quality hours
on it to clean it up to be beta quality. Then another 8 hours or so to
clean up documentation. This is a work-in-progress for over a month (off
and on) and can handle:
printing of datatable's (using classes somewhat akin to the
DataGridColumnStyle class for formatting)
printing of paragraphs of data using style classes (somewhat akin to word's
H1, H2, H3, Normal, etc)
page headers/footers
Hopefully will include graphics/images at some point, too (utilizing the
..NET Image class).
Alternatively, have a look at this (vb.net) article. It was my inspiration
(don't worry, my code is C#):
http://msdn.microsoft.com/library/de...ntwinforms.asp
And other articles of varying quality:
Good intro to the printing namespace
http://msdn.microsoft.com/msdnmag/is...T/default.aspx
simple printing of datagrid
http://msdn.microsoft.com/library/de...ridvisualc.asp
other printing things:
http://www.c-sharpcorner.com/Printing.asp
--
Mike Mayer
http://www.mag37.com/csharp/ mi**@mag37.com
"Dennis C. Drumm" <de*******@primacode.com> wrote in message
news:u0**************@TK2MSFTNGP11.phx.gbl...
I was wondering if someone could suggest were/how I could get started with
setting up printing of a collection of text that includes tables from a
grid and other supporting information about the grid's contents. If you could
just point me at the classes that I should consider and some very broad
guidelines that would be great. For instances, would a good approach be to
build an rich text document somehow with the proper formatting and then
print that? I would really like to print the grid stuff as tables with
lines marking the grid.
Thanks,
Dennis