Solved

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

Posted on 2012-03-28
1
515 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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.

743 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

11 Experts available now in Live!

Get 1:1 Help Now