Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 22nd, 2006, 04:12 PM
Registered User
 
Join Date: Apr 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default a strange login problem

I made a some reports. set their parameterss and passed them while invoking report. At report creation time I check the INTEGRATED SECURITY checkbox so it does not ask for password when pressing ther "invoke report" button. (expectds behaviour).

But when I executed the same exe on some other machine. having similar database as mine. by clikcing the invoke report button, a box comes up asking the following informtion.

Server name:
user :
password :

hjow to solve it....
database :

 
Old May 27th, 2006, 12:51 PM
Registered User
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have a same problem can any1 tell how ?

 
Old May 30th, 2006, 01:06 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

YES, its true

Because the report what you create before, say SQL SERVER "SQLSVR1", and when
you move the report to the different location say SQL SERVER "SQLSVR2", here
the server is diff and may be the login may remain same.

Fos such situations you have to change the location of the report object ar the
runtime depending on the SQL Server where you execute them.

USE

ConnectionInfo();
TableLogOnInfo();
rd.SetDatabaseLogon(DBUserName, DBUserPassword, DBServerName, DBName);

these are the methods to change the location of the report at the runtime
and you never get that box.

FOR Ex:--

I have report uses SP to get the data from 7 diff tables, So i have created this
report with our SQL server "SERVER1". Now report is fine executes and even it
shows the data properly for the given output.

Now I have the situation to take this report to some other machine or to clients
machine in diff location. WHat i have done is that, I have the keys in the web.config which are "DBUserName, DBUserPassword, DBServerName, DBName".

When I deploy the report at other machine, i change the key value as needed to
the current envr. and change the location of the ReportObject (SP or TBL)
telling it to take from the new database location.

By doing this that "BOX" is avoided and we need not to change/modify the report
again in the other machine. All is dynamically changed while the time of
executing.

If you have done this for windows application then put those keys in app.config
file.

Hope this helps


With Regards,
Raghavendra Mudugal





Similar Threads
Thread Thread Starter Forum Replies Last Post
strange IE problem sully7 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 September 19th, 2008 08:44 AM
Strange problem... F3553 C++ Programming 1 October 25th, 2007 03:56 PM
Strange calculation problem blkskullwork Javascript 4 November 3rd, 2006 03:16 PM
strange problem with ASP dhx10000 BOOK: Beginning ASP 3.0 0 June 12th, 2006 05:10 PM
very strange problem! please help! raybristol ASP.NET 1.0 and 1.1 Basics 8 December 15th, 2005 06:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.