Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In my ASP.NET application, I am using Crystal Report for showing Report data to Users.

My client having nearly 10 branches. Hence i use formula field for each report to retrieve BRANCH NAME as report title based on the BRANCH ID(I am already having for each table).
Like.
C#
if (BranchID = 'BR001')
'xxxxx'
else if(BranchID= 'BR002')
'yyyy'
......
,,,,,,
......So on

Now problem is, in future if i need to change any one Branch name, then i need to change the BRANCH NAME for all the reports containing formulas.

Is there any other way to reach the BRANCH TABLE from the Crystal report based on the BRANCH ID ??
If so, then i can simply change the branch name in branch table affects all the reports.

Hope you understand my question.

Please help me out.
Posted
Updated 9-Jan-12 0:06am
v2
Comments
anushripatil 9-Jan-12 6:22am    
you can also include the branchName in your datset which you are using to get the data to display. & in report you can just have branchid as 1 section/group.
J.Karthick 9-Jan-12 7:08am    
Thanks for your suggestion.
But instead of that, i can use PARAMETER FIELD from application side. So that i can set value from the database and bind it in my report.

In future if i need to change the title i can just edit an record in database, need not change all the reports.

 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900