rbWiki > Output > Overview > Removing Formats

Removing Formats

TECH TIP: Controlling Available Print To File formats

Question: "How can I limit which file formats are displayed by the print dialog?"

Formats can be registered and unregistered via code.

Example:


uses
  ppDevice;

  {add some file formats}

  ppRegisterDevice(TppTextFileDevice);
  ppRegisterDevice(TppReportTextFileDevice);
  ppRegisterDevice(TppArchiveDevice);

  {remove some file formats}

  ppUnRegisterDevice(TppTextFileDevice);
  ppUnRegisterDevice(TppReportTextFileDevice);
  ppUnRegisterDevice(TppArchiveDevice);

  

Tags
none

Files (0)

 
You must login to post a comment.