Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Visual Studio 2013 Express Edition and ReportBuilder 3.0

$
0
0

Hi All,

I have made an application using Visual Studio 2013 Express Edition and also installed ReportBuilder 3.0. After much searching and experimenting, I managed to create a report which has two tables joined on the common field (namely VoucherNumber). While the report displays correctly in the ReportBuilder, the same report hides the first field (which is the VoucherNumber field). I dont know why and would like to know if I have missed anything.

The code for calling the reportviewer with the report is as below:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim ds As New dstCurrentTransfers
Dim ta As New dstCurrentTransfersTableAdapters.vwCurrentTransfersTableAdapter
ta.Fill(ds.vwCurrentTransfers)
ReportViewer.ReportViewer1.ProcessingMode = ProcessingMode.Local
ReportViewer.ReportViewer1.LocalReport.ReportPath = Application.StartupPath & "\CurrentTransfers.rdl"
ReportViewer.ReportViewer1.LocalReport.DataSources.Clear()
Dim sReportDataSource As ReportDataSource
sReportDataSource = New ReportDataSource()
sReportDataSource.Name = "DataSet1"
sReportDataSource.Value = ds.vwCurrentTransfers
ReportViewer.ReportViewer1.LocalReport.DataSources.Add(sReportDataSource)
ReportViewer.ReportViewer1.RefreshReport()
ReportViewer.Show()
End Sub

Also, for ther same report I would like to add paramters to filter records accordingly. The report range needs to be displayed on the report also. So please give me some tips on how to achieve that as well. My requirement for this report is to prompt the user to select the date range (VoucherDate field) and filter the records accordingly.

Thanks in advance

Tom


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>