Solved

Preventing login dialog box in Crystsal report

Posted on 2001-08-01
5
319 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
try using trusted connection
0
 

Author Comment

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

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…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

9 Experts available now in Live!

Get 1:1 Help Now