>I was wondering how other developers handle a routine to print mailing labels. Of course you can create a label form but since there are many label sizes and formats (row of 3 or pin-fed, etc), how do you make it generic? That is, so that the user can easily select whatever size and configuration of labels.
>
>Thank you for any suggestions or sharing.
I would build a table for available label formats... Listing each one that HAS been defined and the type of label it is found on. Then, define labels with different content (from sources... such as sales, customers, orders, etc where labels are needed). Have that as a pickable list (maybe even like a grid). Then run the report. Only those labels that have been defined could be displayed to users for running. Then, as new labels are defined, add a record to the printable labels/reports table and make it available to users.
I built a sample framework using VFP9 to take advantage of the report listener too. I did a demo presentation on this and a download is available at
www.pafox.org/pafoxwcapp/downloads/VFP9Reports.zipThis process will actually work even under earlier versions (even 7), but will only really loose the report listener options..
HTH