469,150 Members | 1,985 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,150 developers. It's quick & easy.

how to change start of page number in crystal report

284 100+
I am using vb6 and crystal report 10 for making reports.

Now i am making a report , the report works fine just i want that the page number of the report start from the number which i give him.

For example i have a report with 10 pages , when i click on show report the report pages from 1-10 are displayed with number 1,2.3.....10
Now i want to show it like (suppose i give the starding number 13) so the page number of the same report will now 13,14,15.....22.
that is instead of starting page number from 1 it start from the page number which i give.

How can i achieve this.

any help.

Thanks
Nov 29 '08 #1
3 7915
Dököll
2,364 Expert 2GB
Heiya muddasirmunir!

Can you do it through the report design?

Data report allows one to do that seamlessly in VB6.

Care to give that a whilr!

Dököll
Dec 3 '08 #2
muddasirmunir
284 100+
No, i want to do it in crystal report not datareport.

i Got it about 80% to my requirement
can somebody modify this code to 100% of my requirement

what i did is make a formula field in the crystal report and to the following coding

NumberVar startNum := 5;
"Page " + ToText((PageNumber + startNum), 0)
its work fine,By using the above mention formula my page number start with 6 not 1.

But still i have one problem, what i want the user to give at runtime the page number to start with , for this i had tried this code but fails and got error

NumberVar startNum := frmsales.pgnotxt.text;
"Page " + ToText((PageNumber + startNum), 0)
where frmsales is the form to which user click to show the report and pgnotxt is the textbox in frmsales form.

can some body correct this code so we can give value at run time.

Thanks
Dec 3 '08 #3
pls send me the vb6.0 code for the above for both in data report and crystal
Apr 11 '17 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Vince Mele | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.