below is a link for my screenshot
[IMG]http://www.fileden.com/files/2008/3/26/1838035/Pictures/vbkoh2.jpg [/IMG]

in my sreenshot it must print all what it is in in column1 which is:
aaa
bbb
ccc

DataReport6.Show

DataReport6.Sections("Section2").Controls("label1").Caption = DataGrid1.Columns(1)

plz help..

tnx.. :)

try to insert report textbox on the data report then set its Data Field Property to the database field name

can anyone help me how to update the report when you add new records in datagrid.tnx

You can either use DataEnvironment or do what arvin said.

Use rptTextbox control and set the datafield. Regarding the connection, use SQL statements on the button that shows(print) the datareport.


@jovicmon21, please don't highjack someones thread, Start your own.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.