Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27419

VS 2010 Report Functions

$
0
0
I have a Payroll project with a multiple forms that some of the forms requires printing. This code is present for every form that required printing. Please help me to convert my code to a function procedure so that i will just pass the datatable and the crystal report to the function.

I am using Visual Studio 2010 and my Crystal Report version is 13.

HTML Code:


        Dim DatatableReport As New DataTable
        Dim crystalReport As New crPaySlip
        Dim frm As New FrmReport

        DatatableReport = DTReport
        crystalReport.SetDataSource(DatatableReport)
        frm.crViewer.ReportSource = crystalReport
        frm.crViewer.Refresh()

        frm.Show()


Viewing all articles
Browse latest Browse all 27419

Latest Images

Trending Articles



Latest Images

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