RaveReport - Print Non Database Information
Im using Rave report tool to making reports for my applications written by Delp开发者_开发问答hi 7. I want to send a parameter from an edit box to my report. some runtime given information that has no any relation to my database. How can i send them to rave report for printing?
Follow the below process to pass parameter:
Choose File/New Report.
Define the parameter that you want to print.
To do that open the property editor of the parameters property.
List all parameters of this report, each on a separate line.
Parameters can be printed using a DataText component, available in the Report tab of the component pallete.
Open the property editor of the DataField property.
Under project parameters, select the parameter which you need to display in the data text and click Add Parameter button.
You can view
Param.<parameter name>
in the Data Text of the property editor.Write the following code in Delphi Project
procedure TFormMain.btnExecuteClick(Sender: TObject); begin RvProject.Open; RvProject.SelectReport(Report Name,False); RvProject.SetParam(parameter name,'your text'); RvProject.Execute; RvProject.Close; end;
精彩评论