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

VS 2013 Generate In Voice And Print

$
0
0
Hi All,

I am using VB.Net (VS 2013) and I want to make InVoice generator. Someone suggested me RDLC but I dont understand how to make InVoice with that.

SO, I have a form and there I have added a DataGrid. Added few TextBox ...lets say 4 textboxes. After making all entries on those 4 textboxes and click Button1...all those entries from the textbox got loaded to the datagrid. Now i want this information on the datagrid to be printable and also want to save this information on a table or my db (MS Access 2007).

PS : One Textbox among those 4 must generate an InVoice number which would be saved too.

Please guide me and if you have a better idea of making Invoice thing please do help me.

Sp Far I did this :
Code:

  Dim i As Integer
        Dim dt As New DataTable

        dt.Columns.Add("Customer Name", GetType(String))
        dt.Columns.Add("Address", GetType(String))
        dt.Columns.Add("Date", GetType(String))
        dt.Columns.Add("In Voice", GetType(String))
        DataGridView1.DataSource = dt

        With DataGridView1


            .Rows(i).Cells("Customer Name").Value = TextBox1.Text
            .Rows(i).Cells("Address").Value = TextBox2.Text
            .Rows(i).Cells("Date").Value = TextBox3.Text
            .Rows(i).Cells("In Voice").Value = TextBox4.Text

This code do show entries of textbox to the datagrid but it doesnt get printed (doesnt come on print preview either)

Viewing all articles
Browse latest Browse all 27349

Trending Articles



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