p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ADO.NET (http://p2p.wrox.com/forumdisplay.php?f=109)
-   -   crystal report (http://p2p.wrox.com/showthread.php?t=2154)

eyetalion July 28th, 2003 07:11 AM

crystal report
 
When running my Crystal Report from my app, I had an issue with a login screen poping up before my report would open. I used this code to solve the problem:



visual basic code:--------------------------------------------------------------------------------
'get userid/password to access DB
       Dim tbl As CrystalDecisions.CrystalReports.Engine.Table
       For Each tbl In rpt.Database.Tables
           Dim tbllogin As New CrystalDecisions.Shared.TableLogOnInfo()
           tbllogin.ConnectionInfo.UserID = LogonInfo.Mx_Logon
           tbllogin.ConnectionInfo.Password = LogonInfo.Mx_Password
           tbl.ApplyLogOnInfo(tbllogin)
       Next
--------------------------------------------------------------------------------


but this only solved the problem in XP. NT still askes for a login screen. I noticed that when I use only one table in my report, it opens fine, but when there are multiple tables, I get the login screen in NT...any suggestions?




All times are GMT -4. The time now is 09:33 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.