Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding variables to Report programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00442934
Message ID:
00443130
Views:
22
>>>>>>Hi everybody,
>>>>>>
>>>>>>I want to add bunch of variables to my report. Report designer is not good for this task. Do you have suggestions, how this could be done?
>>>>>>
>>>>>>Thanks in advance.
>>>>>
>>>>>You can define the variables with PRIVATE and initialize them in the program code that calls the report. The variables will then be accessible for the report.
>>>>>
>>>>>Cathy
>>>>
>>>>Hi Cathy & Jorge,
>>>>
>>>>Yes, I expected this answer :) Unfortunately, this is not my case, since these variables should calculate in Report. Anyway, I almost finished to add them manually (only 4 left) :)
>>>
>>>Oh ... now I see what you want. I know it's too late now, but for future reference ... If the variables are similar in their setup and you're gutsy, you could hack the FRX file. Just add one variable and then USE the reportname.frx file and look for the records with objtype = 18 ... these are the variables. You could SCATTER MEMVAR and then APPEND BLANK/GATHER MEMVAR as many times as you need. Then change the necessary information, including the UNIQUEID field.
>>>
>>>Cathy
>>
>>Hi Cathy,
>>
>>Yes, I thought exactly the same and even started to try, but I'm not sure, how UniqueID field is generated...
>
>
>I don't *think* it really matters what the UniqueID field is ... as long as it's unique for that report. So I think you could just pick anything you wanted.
>
>Cathy

It works!!!!!! Though I didn't update Timestamp correctly (do you know, BTW, how to update it)? I use sys(2015) for UniqueID.

Thanks. Without your support I would hesitate to try :)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform