|
-
Oct 30th, 2006, 12:12 AM
#1
Thread Starter
Fanatic Member
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 ?
WHETHER YOU SUCCEED OR FAIL IS NOT AS IMPORTANT AS WHETHER YOU TRIED YOUR BEST 
-
Oct 30th, 2006, 12:44 PM
#2
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
-
Oct 30th, 2006, 03:39 PM
#3
Lively Member
Re: get height of detail section
 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
Energy can be neither created not destroyed. It can only be wasted.
Red Green
-
Oct 30th, 2006, 09:46 PM
#4
Re: get height of detail section
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.
-
Oct 31st, 2006, 08:28 AM
#5
Lively Member
Re: get height of detail section
 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.
Energy can be neither created not destroyed. It can only be wasted.
Red Green
-
Oct 31st, 2006, 11:11 PM
#6
Thread Starter
Fanatic Member
Re: get height of detail section
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.
WHETHER YOU SUCCEED OR FAIL IS NOT AS IMPORTANT AS WHETHER YOU TRIED YOUR BEST 
-
Nov 1st, 2006, 01:37 PM
#7
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|