on 10-08-2008 7:58 PM
I am using CR 2008 with C#. I use ODBC to connect to the data source. When the report is opened from the winforms application, it is prompting for the userid and password.
1. How do I programatically assign a ODBC DSN
2. Provide userid/password etc.
I used CR 8.5 with VB 6.0 and there is a connect method.
CrystalReport1.Connect and the ODBC connect string could be
provided. I don't see it with CR 2008.
Thanks
Hi
take help from samples and tutorials.
To download sample code click [here|https://boc.sdn.sap.com/codesamples].
You can also take help from [Dev library|https://boc.sdn.sap.com/node/7770]
for log on code u can use
setDatabaseLogOn("userid","password");
after loading report
what version of .NET you are using
Hope this helps!!
Regards,
Amit
Edited by: Amit Singh on Oct 8, 2008 9:44 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Benny, see the following White Paper that details how to work with CR in .NET:
http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf
The above was written for CR 10.2, however all content applies to your version of Crystal Reports.
You may also want to consult the developer help file:
http://msdn2.microsoft.com/en-us/library/bb126227.aspx
Ludek
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.