Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi..
im using vb.net and sql server for my projet. i got problem on it.
in this project user can add or drop tables in user interface as there own. i try crystal report for my projet. i follow this steps.
create new win; form and drag crystal report veiwer to it. then add new crystal report, using report wizard, create new conection, oledb(ado) ,sql native client,
then type server name and select the database, then i choose table and there felds. finally complete wizard and then back to report viewer and select datasourse as crystal report1. its work and display table data as report. then i got problem.when user create new table in this programe they cant get reports for new table. how i fix this.problem. please help.me. sory for my poor english and vb knowledgwe .
thanks!!!
Posted

1 solution

as far as i understood your question i can say that you must create a general class for that which will have everything a crystal report needs...

for example... that class should include the following members... you can have more but these are the basic ones...

VB
CrystalReport (CRPT)
CrystalReportViewer (CRV)
Table
Query


on the other hand you must have function which will accept the following parameters...

VB
ShowReport(ByVal TableName As String, ByVal CRV As Object, ByVal CRPT As Object, ByVal Query As String, Optional ByVal ParameterValue As Object = Nothing)


and the rest is upto you...
 
Share this answer
 
v2

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