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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create blank pages in a report?

Status
Not open for further replies.

myzani

Programmer
Jan 20, 2010
10
PH
hello,

do you have any ideas on how to create blank pages programmatically in a report?...

thanks...
 
The reporting engine for VFP requires something to work from, so if you have an empty (no records) table VFP will generally just 'flash' and generate nothing.

The trick is to use a table with one record - and no data
as your basis - that is the table that is the 'initially selected' one.

Then when you run the report you will get a 'blank' one.

You might have a few zeros (from numerics) and a few // from dates though!

Good luck

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Myzani,

Do you mean you want a completely blank page in the middle of the report - a page without even any headers or footers?

Or do you just want a page with all the normall headers etc but no data? Or perhaps you mean you want to force a page break at some arbitary point?

If you want a completely blank page in an otherwise normal report, one way would be to insert a dummy record at the appropriate point in the underlying table. Then, in all fields and expressions in the report, set the Print When to suppress printing when that record is reached.

For the second option, you could try Griff's suggestion.

To force a page break, use the New Page option in the group properties.

If none of the above answers your needs, perhaps you could clarify your requirements.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
hello Mike,

I want to create a new page out of existing pages...
 
"I want to create a new page out of existing pages..." - What ???

You either want to cause a page eject so that you can create a new page when some characteristic of your data changes.

Data Printed On Page1
Data Printed On Page1
Data Printed On Page1
* --- Eject and Begin New Page ---
Data Printed On Page2
Data Printed On Page2
Data Printed On Page2
* --- Eject and Begin New Page ---
Data Printed On Page3
Data Printed On Page3
Data Printed On Page3

Or you want to insert a totally blank page in between printed pages based on some characteristic of your data having changed.

Data Printed On Page1
Data Printed On Page1
Data Printed On Page1
* --- Eject and Begin New Page ---
< 'Print' Totally Blank Page >
* --- Eject and Begin New Page ---
Data Printed On Page3
Data Printed On Page3
Data Printed On Page3
* --- Eject and Begin New Page ---
< 'Print' Totally Blank Page >
* --- Eject and Begin New Page ---
Data Printed On Page5
Data Printed On Page5
Data Printed On Page5

You need to clarify what you want to achieve.

Good Luck,
JRB-Bldr
 
Or he might want a blank page - one with all the captions, headers and footers - but no actual data. People often request these so they can use them in QA manuals or for filling in manually.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Griff - true enough.

But the fact that we are still wondering what myzani is wanting indicates that we need some better clarification.

myzani - Good Luck,
JRB-Bldr
 
Indeed.

A picture paints and all that!

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top