Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Printing a wwedit.text

edited October 2001 in General
I have a invoice app where the nett, vt, & total are calculated then
displayed in three edit boxes. How can I show these amounts on a report. ie
I do not store these values in a table.


Great product keep up the good work.

Steve W

Comments

  • edited October 2001
    You could use a TppLabel and set the text in the OnGetText event of the
    label.

    Or, use a dbText component and create a JITPipeline. Read the data in the
    JITPipeline.OnGetFieldValue event from the edit box.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited October 2001
    How do I do this.

    I have wwedit9 that has the total amount to display. How do I get it onto a
    TppLabel in the reprot.

    I do not understand how to set the text in the OnGetText event.

    Many Thanks

    Stevew

  • edited October 2001
    I stuck a data aware wwDBEdit box on a form and used the OnGetText event
    (the report is on the form and the label is also visible on the form because
    of this). The text is a var parameter, so you can assign it a new value and
    it will appear in the label's caption. Is your report loaded from a report
    template file? You may also consider creating a RAP pass through function to
    retrieve the value.

    procedure TForm1.ppLabel1GetText(Sender: TObject; var Text: String);
    begin
    Text := wwDBEdit1.Text;
    end;


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.