Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reset page number in report 1

Status
Not open for further replies.

Eguy

Programmer
Dec 22, 2000
566
US
Hi All;

I have a VFP 7 report using a report title page.
Unfortunatly _pageno is incrementing for the title page so that the first page of the report is Page 2.
I seem to remember that there were code snippets for bands that would execute on entry and/or exit.
My thought is to reset _pageno when exiting the title band, but I'll be damned if I can find where to put it.
Anyone have any thoughts on this?
Please don't tell me I'm having another 'Senior Moment' :-(
BTW there is no grouping in this report so I can't reset there.

Thanks
Ed Please let me know if the sugestion(s) I provide are helpful to you.
Sometimes you're the windshield... Sometimes you're the bug.

 
Yup, just double click on a band. You should get the option to enter a Run Expression on both Entry and Exit. Of course the "expression" can be a UDF() to do whatever you want!

Rick
 
Thanks Rick

I was right clicking on the band. Never thought to double. DUH!

Ed Please let me know if the sugestion(s) I provide are helpful to you.
Sometimes you're the windshield... Sometimes you're the bug.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top