borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Crystal XI)Next Topic (Design crystal report at runtime) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Help with Datareport Invalid Data Source
Poster Message
dorival
Level: Trainee

Registered: 14-02-2006
Posts: 3

icon Help with Datareport Invalid Data Source

I'm new with vb and Datareport, I used this code


In the vb form named (frmName)
I created a label named (label1)
I used this code in the command button
Private Sub Command1_Click()
With DataReportApp
.Sections("section4").Controls.Item("label8").Caption = frmName.label1.Caption
End With
DataReportApp.Show
End Sub

in the datareport named (DataReportApp) in the report header (section 4) I creted a label named (label8)

I got this error: Invalid data source
Can anyone help me please?

14-02-2006 at 02:02 AM
View Profile Send Email to User Show All Posts | Quote Reply
xtramac
Level: Professor


Registered: 28-08-2005
Posts: 89
icon Re: Help with Datareport Invalid Data Source

hello..

i think you need to set the data source of your report.. during design time you can see a property in the property window that says Data Source and you have to set also the Data Member property properly.

for first timers... assign to the data source your active connection and to the data member the  recordset that queries your db.. somethin like that..    


  

andrew

14-02-2006 at 05:34 AM
View Profile Send Email to User Show All Posts | Quote Reply
dorival
Level: Trainee

Registered: 14-02-2006
Posts: 3
icon Re: Help with Datareport Invalid Data Source

Hello, Andrew,

Thank you very much for your help.
Well, actually I'm not using a DB I'm trying to pass the content of a label caption or a text box from a vb form to the datareport.

Can you help me?

Thanks

14-02-2006 at 11:39 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Help with Datareport Invalid Data Source
Previous Topic (Crystal XI)Next Topic (Design crystal report at runtime) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder