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

Removing Print to File Types

edited March 2003 in Devices
Hi !
Can someone tell me how to remove print to file types from the print to file
dropdown list which appears in the print dialog when the printtofile
property of the report component is set to true ?

Thanks
Richard

Comments

  • edited March 2003
    Unregister the devices before the print dialog is shown. This removes the
    archive device for example. The other device classes are TppTextFileDevice
    and TppReportTextFileDevice.

    uses
    ppDevice, ppFilDev;

    procedure TForm1.Button1Click(Sender: TObject);
    begin
    ppReport1.Print;
    end;

    procedure TForm1.ppReport1PrintDialogCreate(Sender: TObject);
    begin
    ppUnregisterDevice(TppArchiveDevice);
    end;



    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.