Click here to Skip to main content
15,921,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,

i have one application and several crystal reports.

for sign in we have dropdown for language selection and in that dropdown we have 2 languges
1 is english and another is German.


i wan when user select german language and sign in, all content of crystal report must shows in german language

and when user select english laguage while login all content of crystal report shows in english language


please help me to resolve this issue

thanks in advance
Posted
Updated 9-Jul-14 0:26am
v2

1 solution

You must create two versions of each report: one for German and the other for English. Let the reports have the same name but store them in different directories. Based on the user's language preference, select the report dynamically.

XML
\german\myreport.rpt
\english\myreport.rpt


C#
string GetReportPath(string fileName) {
    string folderPath = "";
    switch(lang) {
        case "german":
            folderPath = "\german";
            break;
        case "english":
        default:
            folderPath = "\english";
            break;
    }

    return Path.Combine(folderPath, fileName);
}
 
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