JeI-Paradigm
May 31st, 2007, 06:19 AM
Hey gurus
I need to create a crystal report entirely from code
i have a form where a customer will add table(s) to a list box, depending on the added tables, a list of fields applicable to the respective table can be added to another list. On selection of each of these fields, values may be entered so as to filter the data displayed on the report.
From each of the availble fields that can be "Parametized", a group can be created, with ascending/descending order
Finally summaries can be added such as the sum of all amounts(total,VAT etc) to the end of the report
Report options like drill-down will need to be able to be set dynamically also.
so far everything above here is basicly how to generate my SQL statement, which won'y be that difficult.
But i have no idea how to make my report document show information the way i have described above.
left list < > right list (Panel with combobox, textbox , checkbox(enable/disable))
tables,field, groups are added/removed as depicted above
fields and groups have a panel next to each rightlistbox where parameters can be set like (< = > between like <> asc desc)
at the bottom of the form there are 3 buttons
Preview report data ---> shows datagrid of Data retrieved via generated SQL statement
Preview Report ---> shows a itempanel with items for each field/group/summary field
Create report - Creates crystal report and shows in report viewer on a tab created before the report begins creation
At this point, i am not very close to being far from completion
any help will be greatly appreciated
Thanks
J
I need to create a crystal report entirely from code
i have a form where a customer will add table(s) to a list box, depending on the added tables, a list of fields applicable to the respective table can be added to another list. On selection of each of these fields, values may be entered so as to filter the data displayed on the report.
From each of the availble fields that can be "Parametized", a group can be created, with ascending/descending order
Finally summaries can be added such as the sum of all amounts(total,VAT etc) to the end of the report
Report options like drill-down will need to be able to be set dynamically also.
so far everything above here is basicly how to generate my SQL statement, which won'y be that difficult.
But i have no idea how to make my report document show information the way i have described above.
left list < > right list (Panel with combobox, textbox , checkbox(enable/disable))
tables,field, groups are added/removed as depicted above
fields and groups have a panel next to each rightlistbox where parameters can be set like (< = > between like <> asc desc)
at the bottom of the form there are 3 buttons
Preview report data ---> shows datagrid of Data retrieved via generated SQL statement
Preview Report ---> shows a itempanel with items for each field/group/summary field
Create report - Creates crystal report and shows in report viewer on a tab created before the report begins creation
At this point, i am not very close to being far from completion
any help will be greatly appreciated
Thanks
J