You might want to look at the Crystal Reports articles on my web site. The sample code is VFP, but you'll see how to change the location of data at runtime.
>Dear all,
>
>Thanks in advanced.
>
>Have u guys experienced with Crystal report? cause now I meet a problem, whenever I create a crystal report for Visual Basic during the development period, it is necssary to give a ODBC or OLEDB connection string. Then I finished the report install the system (testing period) to another computer, and a error message coming out prompted "Physical Database not found". I think it is about the path of development cannot mirror/reflect to another computers. (actually i would not map the development path to the report, cause it should have a production one)
>
>So is there anyway to keep this problem away from me?
>
>Thanks for your help.
>Aston
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer