Click here to Skip to main content
15,890,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm now stuck up with this problem. How can I generate billing reports for different customers in one click of a button. Please help and advise me. Thanks in advance.

I have an existing code but all it can do is to generate billing report one by one. Here's the code:

VB
Dim connection_string As String = "Data Source=.\sqlexpress;Initial Catalog=CreditAndCollection;Integrated Security=True"
    Dim Connection As New SqlConnection(connection_string)
    Connection.Open()
    Dim da As New SqlDataAdapter
    Dim command As New SqlCommand
    command.Connection = Connection
    command.CommandType = CommandType.StoredProcedure
    command.CommandText = "showBillingNum"
    Dim crBillingStatement As New crBillingStatement()
    crBillingStatement.SetParameterValue("@AccountNum", frmBillingStatement.txtAccountNo.Text)
    crBillingStatement.SetParameterValue("@DateFrom", frmBillingStatement.dpFrom.Text)
    crBillingStatement.SetParameterValue("@DateTo", frmBillingStatement.dpTo.Text)
    crvBillingStatement.ReportSource = crBillingStatement
    crvBillingStatement.Refresh()
    Connection.Close()
Posted
Updated 29-Sep-13 4:52am
v2

1 solution

I don't see any problem here. To print bill for multiple clients, you just need to bind the reports with number of clients data(Like data from Clients Table). Check these
Invoice/Billing Application[^]
Crystal Reports - for Bill Receipts[^]
 
Share this answer
 

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