Click here to Skip to main content
15,917,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys..
I want to create report dynamically..
I am using sap crystal reports 13.0.2000.0 with vs2010..

I have writen stored procedure for report ..
if user check the the check box then only checked columns should display in report..

I have gone through this link Dynamic Crystal Report with C# ..but in this link they have used data set and written query but i want to use OLE DB(ADO) and stored procedure..

how to do this?
Posted
Updated 12-Sep-11 19:25pm
v2

1 solution

suppose you have 5 columns
column 1 column 2 column 3 column4 column5
..............
select the columns you want in the form
suppose i selected 1st,3rd and 4th column



then declare parameters and programatically send them to report using
crystalreport.SetParameterValue("column1","column1");
crystalreport.SetParameterValue("column2","column2");..............


then in report go to format object......you can see an option "supress".......write a fomula in tht.......like
if(column1="true")
then(false)
else
true

..............


you have to do it for each column.................i hope this will help you out
 
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