Skip to Content
author's profile photo Former Member
Former Member

Get Field Value from Crystal Report Into Vb.net

Hi

How i get the field value from crystal report into my vb.net variable

here in crystal report

1) I binded with a Typed Dataset using a view

2 )Done Grouping in crystal report

3)am doing some calculations in GroupFooter and Report Footer using formula fields and RunningTotal Fields,

calculating

GroupTotalGroupDiscount,GroupTotalAmount in GroupFooter

Total , TotalDiscount, TotalAmount in ReportFooter

and i want to save these values in database table tbl_Invoice and after saving a row in table a invoiceId will generated

and i want to show this Id in Report.

Can i get value and pass Invoice Id to report after setData source

 CrystalReportViewer1.ReportSource = Report

 If Not ds Is Nothing Then 
If ds.Tables(0) IsNot Nothing Then
 If ds.Tables(0).Rows.Count > 0 Then
 Dim Report As ReportDocument = New ReportDocument 
Report.Load(System.Windows.Forms.Application.StartupPath & "/Reports/" & rptName)  Report.SetDataSource(ds)
CrystalReportViewer1.ReportSource = Report
Me.Panel1.Controls.Add(CrystalReportViewer1) 
Return True
 End If
End If 
End If
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.