Solved

Autosize Height in Datawindow header band?

Posted on 2004-08-19
5
1,993 Views
Last Modified: 2013-12-26
Greetings All,

I have a datawindow with a detail band and three groups.  One of the fields in the top group can be multiple lines and so I checked autosize height for that field on the properties | position tab.

When I run the report, if there is more than one line of text in the field it slides underneath group 2 so that it cannot be read correctly.

I notice that you can only only the detail band has the autosize height property.  Am I stuck or is there a work around to make the group band slide move down when there is a field with the autosize height property turned on?

Thank you,

Paul
0
Comment
Question by:pemurray
  • 2
  • 2
5 Comments
 
LVL 18

Expert Comment

by:diasroshan
Comment Utility
hi paul,
i can suggest a work around...
when u set ur datawindow to preview mode it displays the desired format (without overlapping)....

so what u can do is after retrieve write the following line of code...
dw_report.Modify("DataWindow.Print.Preview=Yes")


do ask for more assistance...

Cheers,
Rosh
0
 

Author Comment

by:pemurray
Comment Utility
Rosh,

Thanks.

I tried adding dw_1.Modify("DataWindow.Print.Preview=Yes") to script just before the retrieve and the only difference is that I see a blue line around the border/margin.

But the text in the multiline field is still sliding below the group below it.  It is not in the detail band.

Thanks again.

Paul
0
 
LVL 18

Expert Comment

by:diasroshan
Comment Utility
hi,

do
dw_1.Modify("DataWindow.Print.Preview=Yes")
after retrieve...

i had a similar problem like urs in one of my reports which got solved by this solution...

don't worry abt the blue lines... they will not come in the print...its only a preview line....

Cheers,
Rosh
0
 
LVL 14

Accepted Solution

by:
sandeep_patel earned 500 total points
Comment Utility
Hi Paul,
 remember u can set autosize height property for any other band except Detail band. so any logic related to autosize height in any other band will not work. If u want the exact effect move that column to detail band. Here u turned on the autosize height for column so it grows but group band will not grow.

look here for more
http://www.experts-exchange.com/Programming/Programming_Languages/PowerBuilder/Q_21001347.html

-sandeep
0
 

Author Comment

by:pemurray
Comment Utility
Hi Sandeep,

I guess you are telling me that it is not going to work.  I don't want the text in the detail band so I guess I am going to have to simply limit the size.

Thanks!

Paul
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now