Solved

Crystal Reports Custom Control

Posted on 1997-05-27
2
196 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now