Hello,

I have a problem with my crystal reports in Visual Studio 2008.
My file CrystalReportxxx.rpt has an xsd file as dataschema. Database
to connect is Oracle and using stored procedures.
When I try to output it on a web page with this setting:
oRpt.SetDatabaseLogon("userxxx", "passwordxxx")
Then report shows no data.
When I try to output it on a web page without this setting:

oRpt.SetDatabaseLogon("userxxx", "passwordxxx")
Then report asks for credentials like logid and password of database.
This is my code:
Dim dt As DataTable
FunctionsOP.CreaDataTable("pkg_list.sp_list", True, ospEntry,
dt)
Dim oRpt As New Reportes.CrystalReportxxx
oRpt.SetDatabaseLogon("userxxx", "passwordxxx")
oRpt.SetDataSource(dt)
CrystalReportViewer1.ReportSource = oRpt
CrystalReportViewer1.DataBind()
CrystalReportViewer1.Dispose()
I suppose that when setting:
oRpt.SetDatabaseLogon("userxxx", "passwordxxx")
and report shows no data, is because credentials are wrong.

My question is: How to bypass this credential input? Is it mandatory
to input userid, password, etc for using a xsd file in my Crystal
Report?

What is strange is when I export that report to PDF, there is no
problem. Data is shown OK and no credential is asked:

Dim exportOpts As ExportOptions = oRpt.ExportOptions
oRpt.ExportOptions.ExportFormatType =
ExportFormatType.PortableDocFormat
oRpt.ExportOptions.ExportDestinationType =
ExportDestinationType.DiskFile
oRpt.ExportOptions.DestinationOptions = New
DiskFileDestinationOptions
CType(oRpt.ExportOptions.DestinationOptions,
DiskFileDestinationOptions).DiskFileName = Server.MapPath("../Temp/" +
PDFName)
oRpt.Export()
oRpt.Close()
oRpt.Dispose()