Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting control propeties in code 1

Status
Not open for further replies.

wokkie

Programmer
May 9, 2003
52
GB
Hi,

I am new to Crystal and was wondering if there was a way to set control properites in code.

For instance how to set all the lines in Detail to "Extend to bottom of section when printing" or to set all the text boxes to "Can Grow". Doing each one manually is a bit tedious thats all.

I need step by step instructions on how to do it please!

Thanks,

Ian
 
Since you didn't specify what programming language you're planning to do this with, I'll assume FORTRAN.

Just kidding... This thread (thread149-785760) demonstrates how to get to the objects on a report using VB6.

For TextObjects (enumerated type crTextObject = 2), you would set the CanGrow property to true.

For LineObjects (enumerated type crLineObject = 3), you would set the ExtendToBottomOfSection property to true.

And so on...

-dave
 
Cheers for this, sorry to be so basic (pardon the pun), but how and where do I edit code in Crystal Reports? Formula Workshop?
 
Sorry, this cannot be done within Crystal alone. It would have to be done from outside of Crystal using the programming language of your choice (if supported).

There are third party tools that can do this type of thing, if you don't have the skills to write your own. A list of some of your options (I think .rptInspector does this kind of thing) can be found here:

-dave
 
Ok - thanks for this. I will see if the developers calling the reports can incorparate code for this.

Thanks again,

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top