get height of detail section
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 ?
Re: get height of detail section
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.
VB Code:
With CrystalReport1
MsgBox .MarginRight
Msgbox .MarginLeft
MsgBox .WindowHeight
MsgBox .WindowWidth
End With
Re: get height of detail section
Quote:
Originally Posted by shukla
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
Re: get height of detail section
Quote:
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.
Re: get height of detail section
Quote:
Originally Posted by shakti5385
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. :)
Re: get height of detail section
Quote:
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.
Re: get height of detail section
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.