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!

Reporting on Different Size Paper

Status
Not open for further replies.

SGLong

Programmer
Joined
Jun 6, 2000
Messages
405
Location
US
I'm working on a routine to print bank checks. The customer has check stock that is 8-1/2x11 with 3 checks on each sheet. As long as they print checks in multiples of 3 there's no problem, but more often than not the last sheet of a run will have 1 or 2 unused checks.

I need to come up with a report file (or set or report files) that will allow me to run a partial sheet through as the first sheet and then pick up with full sheets for the rest of the check run. So far, if I use my normal check printing FRX whatever would normally print at the bottom of the first sheet goes off into thin air, so the second sheet is always starting with the 4th record.

I have nothing against calling multiple FRX files, I just need to know how to size the page for the first file. Obviously 8-1/2x11 isn't working. How should I hack the FRX so it knows that an odd size sheet of paper is coming thru.

Steve
 
I would go with a custom paper size of 22 lines so that each page is thought as if 22 lines height. Also I would not use any page feed or page skip thru code.
:-)

____________________________________________
ramani - (Subramanian.G) :-)
 
Ramani,

I'm not sure I understand what you're suggesting. I know that a page is 66 lines and 1/3 of that is 22, but how do you set up a FRX for 22 lines?

Also, I need to be able to make the page size adjustment programatically because there is a screen where the customer selects from a list the style of check that they use (i.e. Stub/Check/Stub, Check/Stub/Stub, Stub/Stub/Check, and now Check/Check/Check.

Steve
 
Hi Steve

You have to create a custom form with 1/3rd the normal length.

For example.. in XP system..

Start->Printers and Fax->File->Server Properties and create a custom size form

Then when you go to VFP report modification.. select this form as the default paper and page setup.

If you hack the print header.. do it selectively so that the custom form name is used but only the printer driver is removed.

Also _plength is a foxpro system variable which I used in FPD days to decide the page length of reports. I am not sure if that still works.

:-)

____________________________________________
ramani - (Subramanian.G) :-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top