SQL Error not reported at runtime.

For EMail Notify

Comments

  • edited 11:57AM
    when my report contain an invalid SQL it do show the prosessing page dialog and wait for me to click the Cancel button.

    To fix this I replased

    DoBuildReport;

    with

    try
    DoBuildReport;
    except
    on E: exception do begin
    FMessage := E.Message;
    FinalPass := True;
    Terminated := True;
    end;
    end;

    in the procedure
    BuildBeforeModal

    I also added a privat fariable to the class
    FMessage : String
    and a public property

    ErrMessage : String read FMessage;


    Is this the correct thing to do and will it be fixed in future releases.
    I am using Fastreports 4.0

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.