Link to home
Start Free TrialLog in
Avatar of pemurray
pemurray

asked on

Autosize Height in Datawindow header band?

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
Avatar of diasroshan
diasroshan
Flag of Kuwait image

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
Avatar of pemurray
pemurray

ASKER

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
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
ASKER CERTIFIED SOLUTION
Avatar of sandeep_patel
sandeep_patel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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