Solved

Login Crystal Report in runtime

Posted on 2000-03-06
5
287 Views
Last Modified: 2012-05-04
Hello,
        At design time, the crystal report 7 seem save the userid and
password. (odbc to sql server).  Therefore, everyone can open
the  report file without fill in the login prompt.  How to disable
the saving userid and password and set them in runtime in my application?

Thanks.
Rgds.
alan
alanpong@hkstar.com
0
Comment
Question by:alanpong
  • 3
5 Comments
 

Expert Comment

by:bito_se
Comment Utility
Hi Alan,

Crystal supports two methods (LogonServer, LogoffServer) which can be used for the purpose of logging on and off at runtime. The methods have an implementation for most (all?) of the available VB-design components / libraries.

Check out the Crystal help file for  appropriate usage.

regards,

Tomas
0
 
LVL 1

Author Comment

by:alanpong
Comment Utility
sorry, i made a stupid mistake.
Actually, crystal report saves provider name, server name, and user id.  I found it by "edit" the rpt file.
By default, it will send blank password to the sql server.  The testing account in sql server has blank password.  Therefore, i misunderstand that the crystal report save the blank password.
0
 
LVL 1

Author Comment

by:alanpong
Comment Utility
sorry, i made a stupid mistake.
Actually, crystal report saves provider name, server name, and user id.  I found it by "edit" the rpt file.
By default, it will send blank password to the sql server.  The testing account in sql server has blank password.  Therefore, i misunderstand that the crystal report save the blank password.
0
 
LVL 1

Accepted Solution

by:
jonder earned 50 total points
Comment Utility
So do your users logon to the SQL Server before the program allows them access?

If so:
Set CRXTables = CRXSubreport.Database.Tables
Set CRXTable = CRXTables.Item(1)
Set CRXTable.SetLogOnInfo <ServerName>, <databasename>, <UserID>, <Password>

0
 
LVL 1

Author Comment

by:alanpong
Comment Utility
jonder, yes.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

743 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

11 Experts available now in Live!

Get 1:1 Help Now