View Single Post
Old December 15th, 2003, 11:28 AM
ESBertrand ESBertrand is offline
Registered User
Join Date: Dec 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Hello PSI.

I'm having similar problem, possibly. I've narrowed it down to the fact that the password is not being set (stays blank) within the ReportDocument object. The ApplyLogOnInfo method sets everything else, but the password stays blank. Someone else posted the same problem at this URL:

Through more digging I found that you may be able to work around this by re-establishing the data source. I found this code, though I think it needs some work:

Dim Report As New Dealer 'Dealer is the name of the crystal report
Dim DealerReg As DataSet = New DataSet()
Me.Cursor = Cursors.WaitCursor
DealerNotReg = get_Dealer_Not_Reg() 'Call up procedure to load
DealerReg dataset
If not DealerNotReg.Tables.Count > 0 Then
' This will reset datasource
Report.Database.Tables(0).SetDataSource(DealerReg. Tables(0))
Msgbox "No Records available for query"
end if
msgbox "Error Loading CR: " & err.number & " - " & err.description
Me.Cursor = Cursors.default
End Try

I'll try to reply back if I find anything more.