Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

Devicetype = dtPrinter obsolete?

edited April 2003 in Devices
When did dtPrinter and dtArchive etc become 'Printer' and
'Archive' ? I wish I'd known earlier 'cos I do lots of checks to
see if a preview is actually printing (if devicetype=dtPrinter)
to generate history etc.

Comments

  • edited April 2003
    It is still used. Make sure ppTypes is in your uses clause.

    They should be declared like this when you look in ppTypes.pas:

    {simulated enumerated types for DeviceType property}
    dtArchive = 'ArchiveFile';
    dtPrinter = 'Printer';
    dtFile = 'TextFile';
    dtTextFile = 'TextFile';
    dtReportTextFile = 'ReportTextFile';
    dtXHTMLFile = 'XHTMLFile';
    dtScreen = 'Screen';

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.