Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2012-03-28
1
Medium Priority
?
532 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

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ā€¦
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

886 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