By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,680 Members | 1,476 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,680 IT Pros & Developers. It's quick & easy.

Using ADO.NET dataset as report datasource

P: n/a
Hi I have designed a report based on an ADO.NET dataset. When previewing the
data in the dataset it works OK. When I want to show the data in the
CrystalReportViewer (run time) the Database Login dialog appear.
The code below shows my code, and the question is how to avoid the Database
Login dialog to appear (where to preparing automatic login) The dataset has
it's

Private Sub MenuItem6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem6.Click

'The data is filling the dataset OK
MyDataAdapter.Fill(MyDataset)

Dim MyReport As New frmMyReport()
MyReport.Tag = "rptMyReport.rpt"
MyReport.ShowDialog()
End Sub

Private Sub frmMyReport_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table
Dim tliCurrent As CrystalDecisions.Shared.TableLogOnInfo
Dim rptCurrent As New ReportDocument()
rptCurrent.Load("..\" & Me.Tag)
crvMyReportViewer.ReportSource = rptCurrent
crvMyReportViewer.Zoom(1)
End Sub

T I Rislaa
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.