Solved

Crystal Reports Custom Control

Posted on 1997-05-27
2
214 Views
Last Modified: 2006-11-17
When loading my form, the Oracle Logon Popup screen connects
the user to the Database. However, to use Crystal Reports
through its custom control in my form, I have to provide a
connect string again. How can I set the .connect property of
the CR custom control to whatever userid and password has
been given by the user?
0
Comment
Question by:msbs
2 Comments
 
LVL 3

Accepted Solution

by:
dansari earned 50 total points
ID: 1426590
The Connect property should be set to an ODBC connect string - this string can contain the UserID and password.

Set it to something like:

ODBC;DSN=[Your data source];UID=[userID];PWD=[password];

You can provide a custom dialog to allow the user to logon to Oracle in your form's Form_Load event, then set the Connect property both of your form's data control and CR control to the above string (in Form_Load).


0
 

Author Comment

by:msbs
ID: 1426591
Is there any alternative to this approach? I mean can we extract the UID & PWD from the default logon procedure of the ODBC driver?

Thanks.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question