cancel
Showing results for 
Search instead for 
Did you mean: 

How to align (center) field's content in the section (band) limits

Former Member
0 Kudos

The environment is:

CR version: CR version: CR 10.2.3600

VS version: VS 2005 Prof + C#

Application type: Windows application

The Text objects can have set crHorCenterAlign property. There are no similar crVertCenterAlign property. So, how can we vertically align the Text objects content in theirs limits.

It would be usefull to have more properties, I mean something like this: TopAlignment, CenterAlignment and BottomAlignment. Currenty CR uses TopAlignment as a default settings which cannot be changed and is unavailable for a developer.

The similar alignments but in section (band) limits would be usefull for objects. For example, when the details rows have different heights which depend on a fields content smaller fields are printed at the top of the section (band). It would be usefull to have the object properties to set how the object is to be aligned in the section limits.

Please look at this [picture |http://www.zgadzaj.pl/temp/vertical.jpg]. It shows that 2-nd column has larger content, so the section has been expanded. But rest of columns are printed at the top of the band. If we have additional properties than we can decide how objects should be vertically aligned.

Perhaps I am wrong and there are somewhere vertical alignment setting hidden under different names.

Regards,

Marek

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Marek;

I do not believe it is possible to align the text vertically in the Crystal Reports Designer. If you can not do it there, we cannot affect it at runtime.

Regards,

Jonathan

Former Member
0 Kudos

Jonathan,

I suspected that vertical alignment is impossible, but was not sure.

It's a pity but I can live without it, :-).

Thanks for your comment,

Regards,

Marek

0 Kudos

Hi Marek,

The version that is shipped with Visual Studio is a basic version and set of API`s. For full control you can purchase a full version of Crystal Reports. With this version you have an extended set of API`s with CR assemblies as well as the Report Application Server which runs inProc and has the RCAPI set of API`s that gives you more control on all objects, not fully but they are adding more functions all the time.

RAS has Alignment API`s available.

Download a Trial version of CR XI R2 ( SP4 Full build ) and then SP5 which is incremental and then download sample app`s to get you going with RAS.

Thank you

Don

Former Member
0 Kudos

Don,

Thank you for the support.

Marek

Answers (0)