c# - How to dynamically increase width of formula field in Crystal Report? -
i using crystal reports in web application , being loaded dynamically; i.e. shows columns entire row not null. value of parameters set @ runtime.
eventually design of report follows
param1 param2 param 3 param4 @formula1 @formula2 @formula3 @forumula4
where param1,param2,...
parameters shows column headers , @formula1,@formula2,@formula3
formula fields show detailfields.
the details of @formula1 follows
if {?param1}="eventname" {dthealth.eventname} else if {?param1}="location" {dthealth.location} else if {?param1}="cashsafeserialno" {dthealth.cashsafeserialno}
here there possibility param1
eventname
or location
. want set width of formula field in crystalreport @ runtime; i.e.
if param1="eventname" @formula1.width=100px; else if param1="location" @formula1.width=200px
any appreciated.
i not sure, "can grow" option you. can't apply or grow width possible overwrite near field. suggest give fixed width, , give can grow option dynamically expand in height. good.
other suggestion if display single row of data. make sub-section of detail , put field , in section expert tick "keep together"
http://www.accoladepublications.com/crystal-reports-tips-and-tricks/303-auto-grow-fields.html
http://www.codeproject.com/questions/105407/how-to-expand-a-field-in-crystal-reports
Comments
Post a Comment