Click here to Skip to main content
15,998,008 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello guys
i m fresher in vb.net & i m working on billing project
i want to get values from accessdb to in rdlc report at run time in vb.net for making billing/invoice report


but with this code i only get textbox text which i set in winform
plz help me guys
thank u advance(0_0)

What I have tried:

Imports Microsoft.Reporting.WinForms
Public Class TaxInvoiceReportViewer

    Private Sub TaxInvoiceReportViewer_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        'set report path
        ReportViewer1.LocalReport.ReportPath = "F:\Billing Project\Billing System\Billing System\BillingReport.rdlc"

        'pass test value
        Dim r(0) As ReportParameter
        r(0) = New ReportParameter("rptCompanyName", "Test Val", True)
        Me.ReportViewer1.LocalReport.SetParameters(New ReportParameter() {r(0)})

        'ReportViewer1.PrinterSettings.DefaultPageSettings.PaperSize = New Printing.PaperSize("Custom", 650, 325)
        Me.ReportViewer1.RefreshReport()
    End Sub
End Class
Posted
Updated 10-Aug-17 21:12pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900