Straight of the net because I was curious (MER systems)
- use crystal:
ReportSmith Code:
This is the info in the ReportVariables Dialog box in ReportSmith. You can get to this dialog from the reportsmith menu by choosing Tools | Report Query and pushing the Report Variables button. Name: state Type: string Title: state var Prompt: Enter your favorite state. Entry: type-in Report Variables: state ; Note this variable and the value it holds are both case sensitive when passed to ReportSmith. Delphi Code: This code assumes that you have placed a TReport component on your form named 'Report1' and set the ReportName property to the name of the report that will be accepting the variable as defined above. Place the following code in the OnClick Method of a pushbutton on your form. I use a pushbutton for simplicity, but this code could just as easily be triggered by any other event. procedure TForm1.Button1Click(Sender: TObject); var s: string; begin s:='CA'; Report1.InitialValues.Add('@state=<'+s+'>'); Report1.run; end;
|
- [DUG]: Passing DataSet to Quick Report Mark Howard
- [DUG]: Dialup Networking Sandeep
- RE: [DUG]: Passing DataSet to Quick Report James Low
- Re: [DUG]: Passing DataSet to Quick Report Mark Howard
- RE: [DUG]: Passing DataSet to Quick Report James Low
- Re: [DUG]: Passing DataSet to Quick Report Mark Howard
- Re: [DUG]: Passing DataSet to Quick Report James Low
- Re: [DUG]: Passing DataSet to Quick Report Mark Howard
- Re: [DUG]: Passing DataSet to Quick Report Nello Sestini
- RE: [DUG]: Passing DataSet to Quick Report James Low
- Re: [DUG]: Passing DataSet to Quick Report Mark Howard