Solved

Preventing login dialog box in Crystsal report

Posted on 2001-08-01
5
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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