LOGGIECROFT
Programmer
I Can't figure out how to remove the login window that displays for database connection.
Also, I don't understand why there is one, since my report is displaying data from a XML schema.
But since the XML schema is tied to a datasource, which is tied to the dataadapter, which contains the connection to my server... this must be why! Not sure....
Using CR9 and VB.NET.
A windows form with a crystal report viewer control on it to preview the report on screen.
I manually populate a dataset then save it as a XML schema.
Dim ldaInfo As SqlDataAdapter = New SqlDataAdapter(lcSQL, pconSQLDB)
Dim ldsInfo As DataSet = New DataSet()
ldaInfo.Fill(ldsInfo, "DATA1"
ldsInfo.WriteXml("C:\TEMP\DATA\DATA1XML.xml", XmlWriteMode.WriteSchema)
Dim oRpt As crReport
oRpt = New crReport()
oRpt.SetDataSource(ldsInfo)
crvReport.DisplayGroupTree = False
crvReport.ReportSource = oRpt
crvReport.BringToFront()
crvReport.Visible = True
A database login window appear asking for Server name, database name, username & password.
How can I disregard this database login window?
Since the user is already signed on my app at the beginning, I don't want this login to appear.
It was not displayed before.
Only after I upgraded from CR8.5 to CR9, changed my reference in my project from 1 to 2 for crystal reports.
Also installed Hot Fix from crystal reports to fix other problems they had(invalid datasource...)
Any help would be greatly appreciated,
Arsene
Also, I don't understand why there is one, since my report is displaying data from a XML schema.
But since the XML schema is tied to a datasource, which is tied to the dataadapter, which contains the connection to my server... this must be why! Not sure....
Using CR9 and VB.NET.
A windows form with a crystal report viewer control on it to preview the report on screen.
I manually populate a dataset then save it as a XML schema.
Dim ldaInfo As SqlDataAdapter = New SqlDataAdapter(lcSQL, pconSQLDB)
Dim ldsInfo As DataSet = New DataSet()
ldaInfo.Fill(ldsInfo, "DATA1"

ldsInfo.WriteXml("C:\TEMP\DATA\DATA1XML.xml", XmlWriteMode.WriteSchema)
Dim oRpt As crReport
oRpt = New crReport()
oRpt.SetDataSource(ldsInfo)
crvReport.DisplayGroupTree = False
crvReport.ReportSource = oRpt
crvReport.BringToFront()
crvReport.Visible = True
A database login window appear asking for Server name, database name, username & password.
How can I disregard this database login window?
Since the user is already signed on my app at the beginning, I don't want this login to appear.
It was not displayed before.
Only after I upgraded from CR8.5 to CR9, changed my reference in my project from 1 to 2 for crystal reports.
Also installed Hot Fix from crystal reports to fix other problems they had(invalid datasource...)
Any help would be greatly appreciated,
Arsene