Save a Report in a Dataset

edited 9:26AM in FastReport 3.0
Hi,

is it possible to save a Report in a Tabel? (Memo or Ole-Object)

Who has a Demo-Source?

Greetings
Ala

Comments

  • swmswm
    edited 9:26AM
    be inspired ;-)

    ms:=TMemoryStream.Create;
    try
    Report.SaveToStream(ms);
    ms.Position:=0;
    Conn.Connected:=true;
    Qry.SQL.Text:=Format('SELECT FROM WHERE', []);
    Qry.Open;
    try
    BlobField:=TBlobField(Qry.Fields[xxx]);
    if Qry.RecordCount=0 then Qry.Append else Qry.Edit;
    BlobField.LoadFromStream(ms);
    Qry.Post;
    finally
    Qry.Close;
    Conn.Connected:=false;
    end;
    finally
    if ms<>nil then ms.Free;
    if Qry.Active then Qry.Close;
    if Conn.Connected then Conn.Connected:=false;
    end;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.