Solved

Preventing login dialog box in Crystsal report

Posted on 2001-08-01
5
320 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

777 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