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

Turning off Report Emulation Text File

edited December 2003 in General
I am using RB 7.03 and Export Devices 2.03. I would like to allow the user
to be able to print to file to allow them to print to PDX, RTF, Excel, HTML
but not allow them to print to a Report Emulation Text File. How do I turn
this off?

Thanks in advance,
Rodger Van Kirk

Comments

  • edited December 2003
    Hi Rodger,

    The ability to control the drop down box in the Print dialog is not
    available in the current version of ReportBuilder. We have had many
    requests for this feature and it is on our todo list for a future release.
    Currently, you can replace any dialog in ReportBuilder with your own custom
    dialogs. Check out the TppPrintDialog.UpdateFileSettings, and
    TppPrintDialog.AddFileDevices methods in the ppPDlg.pas file to see how the
    drop down box is currently controlled.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2003
    You could try something like this.

    ...
    var aList: TStringList;
    i:integer;
    ...
    aList:=TStringList.Create;
    ppGetDeviceClasses(aList);
    for i:=0 to aList.Count-1 do
    if aList[i] = 'ReportTextFile' then
    ppUnRegisterDevice(ppDeviceClassForName(aList[i]));
    aList.Free;
    ...

This discussion has been closed.