Hi,
I use/used Borland Builder C++ 6 with fast reports 2.x and have set everything up using variables and accessing them in my
c++ code as such:
AnsiString cert = QuotedStr("Certification #123456");
AnsiString contract=QuotedStr("Contract AV1234");
frReport1->Dictionary->Variables->Variable["Cert"]=cert;
frReport1->Dictionary->Variables->Variable["ContractNumber"]=contract;
frReport1->PrepareReport();
frReport1->ShowReport();
and all works fine in bcb6
Im now using codegear's radstudio 2007 with Fast Reports 4
and Im am converting the reports over and I am having trouble with the variables.
I did the conversion from frf to fr3 by adding the delphi use frx2xto30.
Converting the reports over has gone fairly well..
The variables made it over and all.
The code in radgear does not compile using
frReport1->Dictionary
so I converted it to
frReport1->Variables->Variable["Cert"]=cert;
frReport1->Variables->Variable["ContractNumber"]=contract;
and it compiles, runs and the value even is getting set because later after printing I added code
to check the values and they are set to what I set them too...but
the MemoViews are empty of the variable value.
I modified the one that shows [Cert] to Certificate Number: [Cert]
and the only part that shows is Certificate Number:
I also used
int index=frxReport1->Variables->IndexOf("Cert");
if (index>=0) {
frxReport1->Variables->Variables[index]=cert;
}
What am I doing wrong here?