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:

VB Code:
  1. 'get userid/password to access DB
  2.         Dim tbl As CrystalDecisions.CrystalReports.Engine.Table
  3.         For Each tbl In rpt.Database.Tables
  4.             Dim tbllogin As New CrystalDecisions.Shared.TableLogOnInfo()
  5.             tbllogin.ConnectionInfo.UserID = LogonInfo.Mx_Logon
  6.             tbllogin.ConnectionInfo.Password = LogonInfo.Mx_Password
  7.             tbl.ApplyLogOnInfo(tbllogin)
  8.         Next

but this only solved the problem in XP. NT still askes for a login screen...any suggestions?