Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello everyone,

I am working currently on a project of student report card generation for a school.
Here i need to generate crystal report in dynamic form which is explained below:

1- There is a category combobox in which there are many categories
2- On category selection there comes subjects which could be more than one.
3- On subject selection there comes description of that subjects they could also be more than one.

Now when i select one category i.e. "Part 1- B " , there are 5 subjects , and in each subject there are 7 description.

Now what i need is dynamic and tabular format of crystal report generation.
i.e. like this.

Category - Part 1-B

Subject 1 Subject 2 Subject 3
Description 1 Description 1 Description 1
Description 2 Description 2 Description 2
Description 3 Description 3 Description 3
.... ... ...


Now these subjects,description are dynamic so i can make the controls in crystal report static..

Please help me what to do in this case , i m really stucked up please help me..


Thanks & Regards,
Krunal Panchal
Posted
Updated 7-Oct-17 1:32am

Hi,

can u give ur table structure

then only we can proceed...
 
Share this answer
 
Private Sub BtnPreview_Click(sender As System.Object, e As System.EventArgs) Handles BtnPreview.Click
If CboItemGroup.SelectedIndex >= 0 Then

If RbtAll.Checked = True Then

Dim AllItemsDA As OleDbDataAdapter = New OleDbDataAdapter("Select Distinct * From stkrpt Where I_Group = '" & CboItemGroup.Text & "' Order By I_Code", DBConnect)
Dim AllItemsDS As DataSet = New DataSet

AllItemsDA.Fill(AllItemsDS, "stkrpt")

DGVPreview.DataSource = AllItemsDS
DGVPreview.DataMember = "stkrpt"

AllItemsReport.SetDataSource(AllItemsDS.Tables("stkrpt"))

Final.CRVItemsStock.ReportSource = AllItemsReport
Final.CRVItemsStock.Width = Final.Width
Final.CRVItemsStock.Height = Final.Height

Final.CRVItemsStock.Refresh()

Final.MdiParent = MDIParent1

Final.StartPosition = FormStartPosition.CenterScreen
Final.WindowState = FormWindowState.Maximized

Me.Hide()
Final.Show()

Final.PrintForm1.PrintAction = Printing.PrintAction.PrintToPrinter
Final.PrintForm1.Print()
End If
End If
End Sub
 
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