Skip to Content
0
Former Member
Jul 31, 2008 at 06:52 PM

Logon Failed

240 Views

Hi Everybody !

I´m facing some problems with CRXI + VB.net.

I´m using Crystal Activex Report Viewer Control 11.5 and when I try to view the report I get this error message "LOGON FAILED" ...

My code is .....

Dim Appl As New CRAXDRT.Application

Dim xReport As New CRAXDRT.Report

Dim i As Integer

xReport = Appl.OpenReport("C:SistemasSICSICRelatorios" & NomeRelatorio & "")

For i = 1 To xReport.Database.Tables.Count

xReport.Database.Tables(i).ConnectionProperties.DeleteAll()

xReport.Database.Tables(i).ConnectionProperties.Add("DSN", "bdsme")

xReport.Database.Tables(i).ConnectionProperties.Add("User ID", "sic")

xReport.Database.Tables(i).ConnectionProperties.Add("Password", "cis")

xReport.Database.Tables(i).ConnectionProperties.Add("Database", "bdsme")

xReport.Database.Tables(i).ConnectionProperties.Add("UseDSNProperties", True)

Next i

crviewer.EnableExportButton = True

crviewer.EnablePrintButton = True

crviewer.ReportSource = xReport

crviewer.ViewReport()

Any ideas ???

I will be thankfull for any help ...

Sorry by my english, I am brazilian.

Hugs

Robson