report with strataframe


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Glad you got it going.  Be sure to search the forum for a report and Business Binding Source as there is a lot of good dialog out here on creating reports and using a BBS control.
Eric Leissler
Eric Leissler
StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)
Group: StrataFrame Users
Posts: 0, Visits: 527
hi ,

i find my problem

in the example, there was not an bo in the form who contain the report

i just put my bo on this form and it's ok !

thank's

Eric LEISSLER

Eric Leissler
Eric Leissler
StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)
Group: StrataFrame Users
Posts: 0, Visits: 527
hi

in my project, i have a report ( report1.rdlc)  a standard straframe form  who contain a reportviewer and  a bindingsource named  

BusinessBindingSource1titres

a made the same code like the example SampleCRMApplication

look

Private Sub cmdReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdReport.Click

If Me.TitresBO1.Count > 0 Then

Using loForm As New Form1()

'-- Retrieve the customer record

loForm.BusinessBindingSource1titres.BusinessObject.FillByPrimaryKey(Me.TitresBO1.identifiant)

'-- Show the form

loForm.ShowDialog()

'-- Close the form

loForm.Close()

End Using

Else

MicroFour.StrataFrame.Messaging.MessageForm.ShowMessage("You must first select a customer.")

End If

End Sub

 

I don"t know why, but when i execute this code

an error is on the line 

loForm.BusinessBindingSource1titres.BusinessObject.FillByPrimaryKey(Me.TitresBO1.identifiant)
the error is

the NullReferenceException was not managed by user code.

I dont know whu because i made the same code than the example.

Have I forget something ??

Have you an idee .

Thank's

Best regard

Eric LEISSLER


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search