Click here to Skip to main content
15,890,336 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: How to connect to Ms Access Database? Pin
walterhevedeich2-Jun-10 15:30
professionalwalterhevedeich2-Jun-10 15:30 
QuestionConvert pull method report to push [modified] Pin
VB.Net Developer1-Jun-10 2:59
VB.Net Developer1-Jun-10 2:59 
AnswerRe: Convert pull method report to push Pin
Not Active1-Jun-10 3:05
mentorNot Active1-Jun-10 3:05 
GeneralRe: Convert pull method report to push Pin
VB.Net Developer1-Jun-10 3:07
VB.Net Developer1-Jun-10 3:07 
GeneralRe: Convert pull method report to push Pin
Not Active1-Jun-10 3:15
mentorNot Active1-Jun-10 3:15 
QuestionRDLC culture problem Pin
jeffrey kalampukattussery31-May-10 23:26
jeffrey kalampukattussery31-May-10 23:26 
QuestionDatabase logon error for crystal report... Pin
VB.Net Developer31-May-10 20:29
VB.Net Developer31-May-10 20:29 
AnswerRe: Database logon error for crystal report... Pin
Peace ON31-May-10 21:44
Peace ON31-May-10 21:44 
I think you are missing following code (for authenticating crystal report for accessing sql server data)
or there is some problem in authentication.

Dim oReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
   oReport.Load(reportName)
   DoCRLogin(oReport)

   Public Sub DoCRLogin(ByRef oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument)
        Dim _applyLogin As New ApplyCRLogin

        ' use ApplyLogin object to apply login info to all tables in CR object
        _applyLogin._dbName = "Northwind"
        _applyLogin._passWord = "CrystalUser"
        _applyLogin._serverName = "(local)"
        _applyLogin._userID = "CrystalUser"
        _applyLogin.ApplyInfo(oRpt)


        ' clean up
        _applyLogin = Nothing
    End Sub

   Public Class ApplyCRLogin
    Public _dbName As String
    Public _serverName As String
    Public _userID As String
    Public _passWord As String
    Public Sub ApplyInfo(ByRef _oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument)
        Dim oCRDb As CrystalDecisions.CrystalReports.Engine.Database = _oRpt.Database
        Dim oCRTables As CrystalDecisions.CrystalReports.Engine.Tables = oCRDb.Tables
        Dim oCRTable As CrystalDecisions.CrystalReports.Engine.Table
        Dim oCRTableLogonInfo As CrystalDecisions.Shared.TableLogOnInfo
        Dim oCRConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo()
        oCRConnectionInfo.DatabaseName = _dbName
        oCRConnectionInfo.ServerName = _serverName
        oCRConnectionInfo.UserID = _userID
        oCRConnectionInfo.Password = _passWord
        For Each oCRTable In oCRTables
            oCRTableLogonInfo = oCRTable.LogOnInfo
            oCRTableLogonInfo.ConnectionInfo = oCRConnectionInfo
            oCRTable.ApplyLogOnInfo(oCRTableLogonInfo)

        Next
    End Sub



Find following link useful for more help...
http://aspalliance.com/532_Understanding_the_Login_Failed_Error_in_Crystal_Reports.all[^]

http://aspalliance.com/490_Troubleshooting_Database_Login_Errors_using_Crystal_Reports_with_NET.all[^]


HTH
Jinal Desai - LIVE
Experience is mother of sage....

GeneralRe: Database logon error for crystal report... Pin
VB.Net Developer31-May-10 22:03
VB.Net Developer31-May-10 22:03 
QuestionAnybody know how to make a read-only Iframe? Pin
Darrell Long30-May-10 6:49
Darrell Long30-May-10 6:49 
AnswerRe: Anybody know how to make a read-only Iframe? Pin
Peace ON31-May-10 1:07
Peace ON31-May-10 1:07 
GeneralRe: Anybody know how to make a read-only Iframe? Pin
Darrell Long31-May-10 5:19
Darrell Long31-May-10 5:19 
QuestionDo we still need to support IE6 browsers? Pin
Gregory Gadow28-May-10 4:02
Gregory Gadow28-May-10 4:02 
AnswerRe: Do we still need to support IE6 browsers? Pin
Peace ON28-May-10 6:02
Peace ON28-May-10 6:02 
QuestionUpgration of IE 6 to IE 8 Pin
Rajiya27-May-10 18:37
Rajiya27-May-10 18:37 
AnswerRe: Upgration of IE 6 to IE 8 Pin
Peace ON27-May-10 22:11
Peace ON27-May-10 22:11 
Questionmenu with multiview tab problem [ANY EXPERT CAN SOLVE THIS ...2 EXPERTS FAILED] Pin
mominafiz27-May-10 11:17
mominafiz27-May-10 11:17 
NewsNew plugin for WordPress enables use of Windows Azure Storage Service Pin
pSorvik27-May-10 7:37
pSorvik27-May-10 7:37 
GeneralRe: New plugin for WordPress enables use of Windows Azure Storage Service Pin
Peace ON28-May-10 1:26
Peace ON28-May-10 1:26 
NewsFREE Windows Azure Virtual Boot Camp June 1 to 7 Pin
pSorvik27-May-10 7:34
pSorvik27-May-10 7:34 
QuestionHTML Source Code fragment Appears in Email Pin
office@hempsted-it.co.uk27-May-10 5:54
office@hempsted-it.co.uk27-May-10 5:54 
AnswerRe: HTML Source Code fragment Appears in Email Pin
Not Active27-May-10 6:07
mentorNot Active27-May-10 6:07 
GeneralRe: HTML Source Code fragment Appears in Email Pin
office@hempsted-it.co.uk27-May-10 6:14
office@hempsted-it.co.uk27-May-10 6:14 
AnswerRe: HTML Source Code fragment Appears in Email Pin
T M Gray1-Jun-10 8:56
T M Gray1-Jun-10 8:56 
GeneralRe: HTML Source Code fragment Appears in Email Pin
office@hempsted-it.co.uk1-Jun-10 12:43
office@hempsted-it.co.uk1-Jun-10 12:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.