AndrewMozley
Programmer
A Sales Invoicing program can print the sales invoice from a report template, salinv.frx/frt. The body of the invoice - the detail lines - is generated from a cursor cdata which contains one record for each line.
Each line contains a description cdata.tdesc which is printed as part of the line. This is often taken from the product record at the time of data entry, but it may be free-format, keyed in by the user as he raises the invoice.
This description field can be printed in several different styles - bold, centered or even in a different colour. These styles are determined by another field, cdata.tformat (which the user provides on the data entry screen).
Within the report designer, the report layout contains several lines which specify how the line is to be formatted. Each line contains a field for cdata.tdesc and probably for other fields cdata.tqty, cdata.tvalue &c.
On such a line the properties for cdata.tdesc will specify the style – bold font, colour, alignment &c. and the field will also have its ‘Print when’ property set, perhaps specifying Print when cdata.tformat = “2”. Each field also has the option Remove line if Blank set to .T.
In general this works fine. But if the user has left a blank line as he enters the invoice, perhaps spacing out a long description on many lines, this blank line does not show on the invoice: the lines get closed up. And this is because all the Remove line if Blank settings have had their effect.
How can I set up the print format so that blank lines show on the printed report? At present I am entering a scarcely significant dot in the description, so the Remove line if Blank does not take effect, but this is not ideal.
Thanks. Andrew
Each line contains a description cdata.tdesc which is printed as part of the line. This is often taken from the product record at the time of data entry, but it may be free-format, keyed in by the user as he raises the invoice.
This description field can be printed in several different styles - bold, centered or even in a different colour. These styles are determined by another field, cdata.tformat (which the user provides on the data entry screen).
Within the report designer, the report layout contains several lines which specify how the line is to be formatted. Each line contains a field for cdata.tdesc and probably for other fields cdata.tqty, cdata.tvalue &c.
On such a line the properties for cdata.tdesc will specify the style – bold font, colour, alignment &c. and the field will also have its ‘Print when’ property set, perhaps specifying Print when cdata.tformat = “2”. Each field also has the option Remove line if Blank set to .T.
In general this works fine. But if the user has left a blank line as he enters the invoice, perhaps spacing out a long description on many lines, this blank line does not show on the invoice: the lines get closed up. And this is because all the Remove line if Blank settings have had their effect.
How can I set up the print format so that blank lines show on the printed report? At present I am entering a scarcely significant dot in the description, so the Remove line if Blank does not take effect, but this is not ideal.
Thanks. Andrew