PDA

Click to See Complete Forum and Search --> : get height of detail section


shukla
Oct 29th, 2006, 11:12 PM
i want to have detail-section height not per record,but height of total detail sections.
i m having crystal report 9.0 and details section contains items-description each record height depends on length of item name.
so it is not dependent upon record no.
so is there any way to get it ?

shakti5385
Oct 30th, 2006, 11:44 AM
I tried but never get to find the height of the crystal report section, can you tell me why you want to find the height.
There is the some other property of crystal report control so you check them in you project.

With CrystalReport1
MsgBox .MarginRight
Msgbox .MarginLeft
MsgBox .WindowHeight
MsgBox .WindowWidth
End With

King_George
Oct 30th, 2006, 02:39 PM
i want to have detail-section height not per record,but height of total detail sections.
i m having crystal report 9.0 and details section contains items-description each record height depends on length of item name.
so it is not dependent upon record no.
so is there any way to get it ?
Short answer is no. There is no way CR can possibly know the height of a section until after the report has been created.
All VB does is throw data at CR and then CR does everything. There is no communication back to VB from CR.

HTH

shakti5385
Oct 30th, 2006, 08:46 PM
Short answer is no. There is no way CR can possibly know the height of a section until after the report has been created.

I am not so sure about it, but one thing is that the crystal report control does not contain this type of property, that show you the height of the section.
I am still searching.

King_George
Oct 31st, 2006, 07:28 AM
I am not so sure about it, but one thing is that the crystal report control does not contain this type of property, that show you the height of the section.
I am still searching.

Like I said, the height of the detail section cannot possibly be known until after the section has been created. One possible method would be to look at the report and see how high the section is with only one record, assuming no multiple line textboxes or labels. Then multiply that by the recordcount. That can only be an approximation at best.

There is no known (AFAIK) way to look at a completed report and examine the sections for attributes like height and width.

This question has been asked many times at the business object forum and has never been answered successfully, just workarounds and "Try This" type of posts. But if you hit on something, I'm all ears. :)

shukla
Oct 31st, 2006, 10:11 PM
possible method would be to look at the report and see how high the section is with only one record, assuming no multiple line textboxes or labels. Then multiply that by the recordcount.
i know this method.
i used it first time.
but as i said i have field named "item description" whose length is not fixed it can be small or much large thus field/record height can not be predicted.

shakti5385
Nov 1st, 2006, 12:37 PM
I tried and search but not get any result, so i think that the King george is correct directly we are not able to get the height of the detail section.