OnError Event

Top  Previous  Next

Member of TWPViewPDF

This event is triggered when an intern error occurs. Such errors can be incompatible bitmap formats or page description. The text of the error message is provided as parameter- We suggest to simply store this text in a looging combobox.

 

Example:

procedure TForm1.WPViewPDF1Error(

   Sender: TObject;

   const Msg: String);

begin

  ComboBox1.Items.Add(Msg);

  ComboBox1.ItemIndex := ComboBox1.Items.Count -1;

end;