ImageEn, unit imageenio

TIOPrintPreviewParams.LoadFromFile

TIOPrintPreviewParams.LoadFromFile


Declaration

procedure LoadFromFile(const FileName: WideString);


Description

Load all settings of the Print Preview dialog from file.

Note: LoadFromFile only works with files saved using SaveToFile


Example

// Show Print dialog (remembering the user's settings)
if FileExists( PrinterSettingsFilename ) then
  ImageEnView1.IO.PrintPreviewParams.LoadFromFile( PrinterSettingsFilename );
ImageEnView1.IO.DoPrintPreviewDialog( iedtDialog );
ImageEnView1.IO.PrintPreviewParams.SaveToFile( PrinterSettingsFilename );


See Also

LoadFromStream
LoadFromRegistry
LoadFromIniFile