Dubbing of preview and text

  • Hello,

    i use TWPRichtext instead of TDBWPRichText.
    With the following code i load data from db:

    Code
    procedure TFRMMain.LoadTextFromDB;
    begin
      WPRichText.BeginUpdate;
      WPRichText.Clear;
      with DMMain do
        WPRichText.AsString := qryDoc.FieldByName('document').AsString;
      WPRichText.EndUpdate;
    end;


    After the rearrangement the TWPPreview isn't updated any more.
    At the first record change the preview is automatic updated,
    at the next no more. What to do?

    Thanks, Frank

  • I need ReformatAll when I do such this things:

    Zitat

    if Sender = btnFechar then
    begin

    // Procura por partes ideiais para sublinhar
    frmEditor.WPRichText.Finder.Clear;
    frmEditor.WPRichText.Finder.ToStart;

    while frmEditor.WPRichText.Finder.Next('uma parte ideal*)') do
    frmEditor.WPRichText.Finder.FoundAttr.IncludeStyle(afsUnderline);

    frmEditor.WPRichText.ReformatAll;

    Close;

    end;