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 ?
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;
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com