You'll need to define a base class PrintJob
and have PDFSetting
as a property of that.
Then define WordPrintJob
, ExcelPrintJob
etc. to be subclasses of PrintJob
.
It's a long time since I've done this so I can't remember off hand whether you'll be able to access PDFSettings
from the sub class or if you'll have to cast the variable to the base class first.
ChrisF
2009-06-02 11:57:09