
Crystal Reports and asp.net (2003) help...
Hi Roger!
I agree their support page is lacking in all aspects! Put
the code in your page_load event . Please note that your
need to change 'CrystalReport1' to the name of your
report.
Dim crpt = New CrystalReport1()
Dim mytable As
CrystalDecisions.CrystalReports.Engine.Table
Dim mylogin As CrystalDecisions.Shared.TableLogOnInfo
For Each mytable In crpt.database.tables
mylogin = mytable.LogOnInfo
mylogin.ConnectionInfo.Password = "pass"
mylogin.ConnectionInfo.UserID = "who"
mylogin.ConnectionInfo.DatabaseName = "db"
mylogin.ConnectionInfo.ServerName = "server"
mytable.ApplyLogOnInfo(mylogin)
Next
CrystalReportViewer1.ReportSource = crpt
Kind Regards
Jorge Cavalheiro
Quote:
>-----Original Message-----
>I have also done this...
>http://support.crystaldecisions.com/library/kbase/article
s/c2011144.asp
>How can you test this?
>> I have created a vs.net solution just to learn how to
get a simple report
>> working on a aspx page. Wow... looks easy.. but the
errors are hard to
>track
>> down.
>> http://support.crystaldecisions.com .. is terrible....
everything is a
>link
>> to a page to download a useless pdf... how are you
supposed to find
>anything
>> in that mess???
>> Can someone please show me a resource for doing a
simple report in an
>> asp.net webform? I just want to use an ole db
connection to sql server. I
Quote:
>> have tried multiple logins, but they all fail. What's
the trick?
>> My current error...
>> Exception Details:
CrystalDecisions.CrystalReports.Engine.LogOnException:
Quote:
>> Logon failed.
>> I have read these..
>> http://msdn.microsoft.com/msdnmag/issues/02/05/Crystal/
>> http://support.microsoft.com/default.aspx?scid=kb%3ben-
us%3b319264
>> Thanks,
>> Roger
>.