Solved

Preventing login dialog box in Crystsal report

Posted on 2001-08-01
5
321 Views
Last Modified: 2008-02-01
Hello,

 I am using a asp page , in that i am calling a crystal report file along with a selection formula .

In the crystal report, Sql server is used  as a back end but  i am getting a prompt to enter the user id and password for the sql server database whenever i access the crystal report in a ASP page

Please help me .
0
Comment
Question by:kvanand
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:Maestro
ID: 6341286
If you are using crystal seagate report 8, you can pass the user and password in the url using:

.rpt?init=java&user0=myuser&password0=mypwd&SF=....

you must create the user myuser with password mypwd only with read permissions in your db system.
0
 

Author Comment

by:kvanand
ID: 6350862
If i pass the User and Password in the URL then, username and password will be displayed. I want to hide the User name and password in the URL.
0
 
LVL 1

Accepted Solution

by:
Maestro earned 20 total points
ID: 6351065
There is no another way. I usually create a false user to make do this without password, only user with only read permission in database and use:

  .rpt?init=java&user0=myuser&SF=....


Another option is use a form with input hidden:

<form action="myreport.rpt" method="post">
<input type="hidden" name="init" value="java">
<input type="hidden" name="user0" value="..user..">
<input type="hidden" name="password0" value="..pwd..">
<input type="hidden" name="SF" value="..{...">
</form>

the input password only if it exist and use always special users created for this use.

 Salu2

   Maestro
0
 
LVL 2

Expert Comment

by:daveherrmann
ID: 6394561
try using trusted connection
0
 

Author Comment

by:kvanand
ID: 6757551
Thanks.This was very much useful to me.
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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

860 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