ImageEn, unit imageenio

TIOPrintPreviewParams.LoadFromStream

TIOPrintPreviewParams.LoadFromStream

Declaration

procedure LoadFromStream(Stream: TStream);

Description

Loads all settings of the Print Preview dialog from a stream.

Note: LoadFromStream does not reset the position of the stream, so you may need to first call Stream.Position := 0;

Example

// Show Print dialog (remembering the user's settings)
var
  printerSettingsStream: TMemoryStream;
begin
  ImageEnView1.IO.PrintPreviewParams.LoadFromStream( printerSettingsStream );
  ImageEnView1.IO.DoPrintPreviewDialog( iedtDialog );
  ImageEnView1.IO.PrintPreviewParams.SaveToStream( printerSettingsStream );
end;

See Also

LoadFromFile
LoadFromRegistry
LoadFromIniFile