Crystal Report - Access global var within a report. {URGENT!}
Hi! I have a crystal report that prints the content of a dataset, but I would like to print some information in the header that is not in teh dataset. It's a global var that hold that value and I would like to print it in the CR. So, can I access Global Var from within crystal report, or can I pass it has a parameter!?
Also, I would like to know whether it is possible to display a field or another. Let's say I have information in french and in english. I want to print the french field if the global value for the language is french, and the english field of the global value for the language setting is set to english. Anyone?
Thank you all!
Re: Crystal Report - Access global var within a report. {URGENT!}
1. You need to create a parameter in CR and bind a textbox or other control on your report to it as its control source. In VB you would then pass the global variable to it.
2. You need to create 2 duplicate Details sections (one for English and one for French) and write some CR code in the Selection Expert dialog for each Details section. Then in the CR code you will set visible the section that is related to the parameter's value for that section, etc. This will help you to achieve turning off the English details if the parameter is set for French and visa versa. ;)
Re: Crystal Report - Access global var within a report. {URGENT!}
thank you dude! that really help, but I meant this one my bad, I'm sorry. its a reporting a runtime generated dataset issue...