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

Invoice form with standard depth for details?

Status
Not open for further replies.

mikeopolo

Technical User
May 25, 2003
54
NZ
I'm preparing an invoice form in report layout (vfp9). The layout is deceptively simple.

I have to set a standard depth for the detail section, to accomodate a graphic, but the detail section should normally only be one line deep.

Thus far I'm getting a variable depth, acc to the # of transaction lines.

Can anyone suggest how to proceed?

Regards
Mike
 
You should not need anything special here. If I understand you properly the detail lines are controlled by the records so you do not need to set them.

The graphic normally goes on top of the invoice, away from the detail and column headers.

There are samples that ship with foxpro for this.


Don Higgins
 
Hi Don, thanks for your advice. I was told at one stage that it can't be done. But by placing the graphic so it straddles from inside the page header to inside the page footer, it now sits correctly, and prints correctly.

I'm also using frx to generate pdf's from this layout, and at the moment I get an error "wrong operand type" a moment after adobe opens, and the invoices are incompletely printed. All other work with frx has been error free. Any ideas?

Regards
Mike
 
This problem has now been resolved.

The error message was caused by 2 or 3 graphics on the form being 0 height and 0 width. This in turn was caused by their behaviour on re-sizing with the keyboard (ctrl+left or right arrow). For some reason, no matter what, they reduced in size rapidly, and disappeared. The only way to increase their size is to click/drag with the mouse.

We opened the frx and deleted the relevant graphics records, and all is now well.

This is strange behaviour for VFP9. Anyone come across it before?

Regards
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top