Public Class frmpayslip

    Private Sub frmpayslip_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        printpayslip(CrystalReportViewer1)
    End Sub
End Class