Solved

Computed expression at summary band is shown at detail band at the time of print.

Posted on 2012-03-28
1
517 Views
Last Modified: 2012-04-03
Powerbuilder Version 12.5
datawindow dw_xyz style grid
I have created a computed expression 'Total sales of the above scenario' at summary band
but when I take the print it shows at detail band, rather it mix ups with detail band.


When I attribute the position as "band" at the time of print only 'Total sales' (the width of the column is shown and 'of the above scenario' is not shown.

When I attribute the position as "foreground" or "background" 'Total sales of the above scenario' is shown but it mingles with the contents of the detail band. Is there any solution.?
0
Comment
Question by:Mehram
1 Comment
 
LVL 12

Accepted Solution

by:
Harish Varghese earned 500 total points
ID: 37786268
Hello Mehram,

Setting the layer to "foreground" computes the position of the control (computed field) relative to top of the datawindow. This will position the control in fixed position irrespective of the number of rows you have in detail band. Hence you will not be able to judge where the control will appear when you retrieve and when you print.

So, for all controls you should use the layer "band" only except for background images or borders you want to display relative to top of the page.

Now, regarding your problem of not displaying/printing text completely, have you given enough width for the complete text to appear? If you want the text to wrap to next line, you need to check "Autosize Height" property of the computed field in Position tab. Also, make sure that your summary band has enough height to accommodate multiple lines. If you are not sure, try increasing the height of the summary band.

Thanks,
Harish
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

911 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

18 Experts available now in Live!

Get 1:1 Help Now