Follow the following steps.
1. Copy the whole DoubleBaconBurger Class inside Burger Class, ie Burger Class contains DoubleBaconBurger Class.
2.Create an object of Burger Class and initialize it to access DoubleBaconBurger Class
Understood DoubleBaconBurger is the datatable holding info. But untill it's not a memeber of Burger Class how can u write something like Dim objBurger As New Burger.DoubleBaconBurger(nudBaconSlices.Value).
That seems to be the root of the problem.
Let us have an XML file (Student.Xml) like this
U select this file as and drag & drop the fields to the crystal report at design time.
Next Call the following function
Private Sub FillStudentDataTable(
' create a DataTable
Earlier I tried to reply with explanation but I don't know what happened. It's not posted. I can't write it again.
Please replace your if els end if codes with this one and try
If radBaconBurger.Checked Then
Dim objBurger As New Burger
I'm telling u how to programatically export one crystal report( As u want one .pdf file for each book).
1. Fill the crystal report with one book info.
2. Call ExportReportAsPDF(CrystalReportViewer1.ReportSource)
3. Following is function definition ExportReportAsPDF