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.
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;
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com
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
(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
http://www.digital-metaphors.com
info@digital-metaphors.com