Thanks for the solution.
It works fine. Is it posible to export the records from the second page of the pdf?
Lets consider your example.
"Dim dt As New DataTable()
dt.Columns.Add("Name")
dt.Columns.Add("Age")
dt.Columns.Add("City")
dt.Columns.Add("Country")
dt.Rows.Add()
dt.Rows(0)("Name") = "Mudassar Khan"
dt.Rows(0)("Age") = "27"
dt.Rows(0)("City") = "Mumbai"
dt.Rows(0)("Country") = "India"
You are considering only the first row of the data table.
Here is what i want exactly.
I am having n number of rows in the data table.
I need to export the first row in the first page of the pdf and second row to the second page of the pdf.
If i want to be more explicit, please let me know.