StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



report with strataframeExpand / Collapse
Author
Message
Posted 06/20/2008 1:01:11 AM


StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 08/12/2008 8:55:55 AM
Posts: 31, Visits: 67
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

Post #17202
Posted 06/22/2008 4:18:21 AM


StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 08/12/2008 8:55:55 AM
Posts: 31, Visits: 67
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

Post #17222
Posted 06/23/2008 7:57:52 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:17:19 AM
Posts: 4,379, Visits: 4,420
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.
Post #17230
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:14pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.