Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
hi,
i have a database,there have 8 tables..
i want to create a crystal report first i select a table name from combobox then click show buttons,it show the corresponding table datum..

i need individual table report in same crystalreport, for example first i select a table and click show button that gives the a report for corresponding table, after i select a new table then i want to show the new report in the same crystalreport, so and so..

that is possible?


Regards
AR
Posted
Updated 17-Dec-13 20:58pm
v3

It is possible to show data from multiple tables in a single Crystal Report, however it's best if the tables are related, then you can return the data with a single stored procedure and format it using the sorting and grouping functionality of Crystal.
 
Share this answer
 
Comments
An@nd Rajan10 18-Dec-13 0:44am    
thank you..but i can't understand..
in my each table have different columns..
_Damian S_ 18-Dec-13 0:53am    
Do your tables relate to each other in any way? If they don't, why are they on the same report? If they do, use a join to link the two tables, eg: select FIELDLIST from TABLE1 inner join TABLE2 on FIELD1=FIELD2
An@nd Rajan10 18-Dec-13 1:02am    
i need individual table report in same crystalreport, for example first i select a table and click show button that gives the a report for corresponding table, after i select a new table then i want to show the new report in the same crystalreport, so and so..
_Damian S_ 18-Dec-13 1:08am    
Sounds like you want different reports for each table, but to have them display in a CR viewer control or similar... that's pretty easy to achieve, simply by doing a select case statement to see which table you have selected, and opening the appropriate report.
An@nd Rajan10 18-Dec-13 1:15am    
thank you,but i don't know about sql query using crystalreport, can you help me..
 
Share this answer
 
Comments
Maciej Los 18-Dec-13 2:36am    
5ed!

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