I am having problems getting any shared variables to work going from a subreport to the main report. I am using Crystal Reports 9 and created a simple test to figure out what I am doing wrong. In my subreport I wrote the following formula:
@Text Test
WhilePrintingRecords;
shared stringvar TESTTEXT := "Test";
I put this in my group 1 footer and in my subreport it displayes "Test" in each group footer. I then wrote the following formula in my main report:
@Get Test
WhilePrintingRecords;
shared stringvar TESTTEXT;
TESTTEXT
No matter what I do, all I get in the main report is a blank field. I have placed the subreport in different places (the report header, the page header, the group header, a second details section, etc.) all with the same blank results. I have placed the @Get Test formula in different places all with the same blank results. I have tried to link the subreport to the main report by the @Get Test formula, the field which is being used to create the Group 1, and other options that I can't even remember any more. No matter what I do, all I get on the main report is a blank field. Can someone either tell me what I am doing wrong, or post a small sample of a shared variable that would work. What is even more frustrating for me is that I can get global variables to work. Thank you in advance for any help you can give me.
@Text Test
WhilePrintingRecords;
shared stringvar TESTTEXT := "Test";
I put this in my group 1 footer and in my subreport it displayes "Test" in each group footer. I then wrote the following formula in my main report:
@Get Test
WhilePrintingRecords;
shared stringvar TESTTEXT;
TESTTEXT
No matter what I do, all I get in the main report is a blank field. I have placed the subreport in different places (the report header, the page header, the group header, a second details section, etc.) all with the same blank results. I have placed the @Get Test formula in different places all with the same blank results. I have tried to link the subreport to the main report by the @Get Test formula, the field which is being used to create the Group 1, and other options that I can't even remember any more. No matter what I do, all I get on the main report is a blank field. Can someone either tell me what I am doing wrong, or post a small sample of a shared variable that would work. What is even more frustrating for me is that I can get global variables to work. Thank you in advance for any help you can give me.