Results 1 to 7 of 7

Thread: get height of detail section

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2006
    Location
    nasik,india
    Posts
    909

    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

  2. #2
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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:
    1. With CrystalReport1
    2.         MsgBox .MarginRight
    3.         Msgbox .MarginLeft
    4.         MsgBox .WindowHeight
    5.         MsgBox .WindowWidth
    6.  End With

  3. #3
    Lively Member
    Join Date
    Mar 2006
    Posts
    94

    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
    Energy can be neither created not destroyed. It can only be wasted.

    Red Green

  4. #4
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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.

  5. #5
    Lively Member
    Join Date
    Mar 2006
    Posts
    94

    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.
    Energy can be neither created not destroyed. It can only be wasted.

    Red Green

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2006
    Location
    nasik,india
    Posts
    909

    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

  7. #7
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    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
  •  



Click Here to Expand Forum to Full Width