Solved

Page Count() problem

Posted on 2007-03-28
5
979 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
  • 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

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

Suggested Solutions

Title # Comments Views Activity
I can't set a breakpoint ? 5 113
Anomalies in ASP.NET ConnectionStrings 4 77
Add jar to project library in intellij idea 3 280
debug as  junit test 4 73
In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
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…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

861 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

25 Experts available now in Live!

Get 1:1 Help Now