Solved

Page Count() problem

Posted on 2007-03-28
5
1,005 Views
Last Modified: 2013-12-26
I have a data window report with page number in the report header. Here is the expression i used in my computed filed  Ex: 'Page ' + page() + ' of ' + pageCount()
When i run the report the page count shown Pgae 1 of 3 on the top. When i scroll down in the report the page count changes to Page 2 of 3. It never shows  Page 3 of 3.  
Why the pageCount() is showing one extra page though there is no Page 3 in the report? Can any one please help me on this?

Thanks
Srinib
0
Comment
Question by:srinib
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 18

Expert Comment

by:diasroshan
ID: 18807886
Hi,

look for hidden columns... this usually happens when there are hidden columns..

also keep all ur columns within the width of ur paper size.

Cheers,
Rosh
0
 
LVL 1

Author Comment

by:srinib
ID: 18809676
Even if there are any hidden fields beyond the paper size then blank page will insert right?
In my case there is no blank page.
0
 
LVL 14

Expert Comment

by:sandeep_patel
ID: 18813980
hi,

Is printpreview property is on for your datawindow ?????

e.g.
dw_1.object.datawindow.print.preview = 'Yes'

Regards,
Sandeep
0
 
LVL 1

Author Comment

by:srinib
ID: 18818904
NO
0
 
LVL 14

Accepted Solution

by:
sandeep_patel earned 125 total points
ID: 18821765
Hey,

what i was mean is... if datawindow is not in print preview mode then there are chances that pagecount() will not work properly. Just turn your datawindow to print preview mode and check the result.

you can retrieve data in datawindow painter and see printpreview (not preview)... if it works fine there they you may need to add above syntax after retrieve or before print.

Regards,
Sandeep
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

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: …
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 NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

739 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