a generic printing scheme?(printing many docs with one set of controls?)

  • Thread starter Thread starter giddy
  • Start date Start date
G

giddy

hi,

I'm not very familiar with printing , but i've read about the printing
classes in .NET.

Now , I know my print code has to go to the PrintPage event. but i
have a full apllication with a number of different things to print
like reports , bills receipts etc.I plan to have all the print classes
in a UserControl with a PrintPreviewControl on it. So a preview shows
first and then the user can choose to print or edit. but How do i get
the classes to talk to the printdocument class?

I thought of having all classes expose an IPrintable interface which
defines a method to print to a graphics obj , but this creates a
problem with multiple pages because the print method in the class that
exposes the interface does'nt know about the page borders , margins
etc.

i do not want to add the print code into the print document class
because they probably should be in the bill , receipt classes.

Am i making any sense! =S

Gideon
 
Back
Top