ivanchain

Hi, friends, I know it's a stupid question, but I still could not find the answer.

Drag any object to the crystal report, and see the text of it. You will see the text is always close to top. You could find a property named HorAlignment, that will control the text to be center in level direction. But, how to make it to be center in vertical direction

I can't find any property named VerAlignment or something else.

Thanks.




Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

Manish Joisar

I am not getting why you want verAlignment

Can you tell me your actual requirement

Close to top of what

you can have extra section before & after to have more space between top & bottom objects

Hope it helps






Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

ivanchain

Excuse me... I am not mean too close to the top of the paper,which you said I can have extra section to solve it.

I mean, the text position. please trag an object to the report. By deafault, the text position is leftAlignment, you could let it center or right, just choose the HovAlignment property to try it.

But on vertical direction, the text is always dock to the top. You could see it clear just like this:

make the detail section's back color to alternative white and blue, and drag a data field into the detail section and run the report. At running time, you will see, the text inside the detail secition is dock to top of everyrow. (You can see the blue backcolor rows, it's very clear the text is more close to the top, not to the bottom of the row.) It's stange, because most people's custom is the text is docking to the bottom of the row.

Thanks.






Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

Manish Joisar

Still i have not understood what exactly what you want.

Can you send screenshot for the same so i can better understand what you want

You can use keepandshare.com to store your screenshot

Regards






Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

ivanchain

I am sorry for my bad expression. Ok, let me give a very clear example:

Don't look the crystal report, just drag a standard label control into a form in vs.net 2005. please look the property box, you will find a property named TextAlign, which's function is to justify the text position. You can justify in two directions, that is, on horizon level, you could set Right, Center, Left position, and on vertical direction, you could set Top, Middle, Bottom position. This compose to 9 positions of the text.

Please just have a look of the TextAlign of standard LABEL control, it's very clear.

Now back to the crystal report. Drag any object into the report, and chose the object. In the property box, you will also find a property named HorAlignment, which will let you change the text position on horizon level.

My question is, how to change the text's position on vertical direction just like a standard label control's behavior.

Thank you very much!






Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

Manish Joisar

Your expression for last post was also right

I understood what you are trying to say.

Can you show me what you want to achieve by aligning object vertically.

I have also searched & not found anything related to vertical alignment. But we can try for different solution if you can show exactly what you want to achieve

Regards






Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

ivanchain

Hi, Joisar.

I have create an account at keepandshare.com, and upload the picture there. Could you have a look My user ID is ivanchain. my email is ivanchain@hotmail.com

Please see the detail section from the photo, and notice the backcolor of it. See the silver backcolor rows, that the texts on the rows are all much closer to the top edge of the row, not to the bottom edge of it. Do you think it's strange

Thanks.






Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

Manish Joisar

Can u do one thing

I can't login as i don't have password

Upload image file in documents tab & make it share with public after upload & give only link of image here

Waiting






Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

captJackSparrow

You mean to set text in middle Vertically right i looked for it couldn't find anything like that,

What you can do is you can alight vertically multiple textobjects.
Select two or more than two objects Right click Align > choose the alignment you want





Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

ivanchain

Hi,Joisar. I have make the photo for public share, please have a look. Thanks.

captJackSparrow, yes, we're talking about the same thing. The affect of alignting vertically multiple textobjects is diffrent to set the text inside the TextObject. Please see my photo also, I will see the diffrent result.

Thanks!







Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

Manish Joisar

You have not given link to see it

And i don't have password to login in keepandshare.com

Regards






Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

ivanchain

Hi, Joisar,

Here is the link, http://www.keepandshare.com/photo/view.php u=42971

Thanks.




Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

bribatt

ivan just wants to know how to vertically center text within a cell in the displayed report. For example see below:

______________________________________________________________________

this is a long line of text that gets wrapped to show

multiple lines sdaf fsdf sad fsdfa dsafs adfsd asdf sdf

vertically centered data sdf asadf sdf sdsd fsdfsd fsd fsdfsd fasfasdfsda fasdfsd

afdsd afsdfasdf sa dfa sdffsafasdfsdfasdafasdfasdfsd

sdf sdfa sadf sdaf asd fasd fasd fasdffsdsd fs ffdsas

_______________________________________________________________________

The first colum of text is vertically centered within the whole section.





Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

Manish Joisar

1st make width of textbox upto the height of actual data & then right click on section & suppress it

After that if you want in middle then change height of section & same way change top position of objects

I know this solution is other way round.

Hope it helps






Re: Crystal Reports for Visual Studio How to set any object's text vertical-Center?

ivanchain

Hi, Joisar.

what do you mean 1st make width of textbox upto the height of actual data & then right click on section & suppress it

Why we need to make WIDTH of textbox upto the height of actual data

Why we need to suppress the data detail section Then we could NOT see it on the report.

Thanks!