Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

barcode/template problem

edited September 2002 in General
Hi

I have the following problem. In the database there can be a lot of
different barcodes. EAN-13,UPC-E.
I have a custom label designer with which the customer can design it's own
labels.
How can I during runtime detect if there is a barcode object on the loaded
template and change it's type property to whatever barcode type it is.

Any help or solution would be appreciated as it is quite urgent.

TIA

Ruaan

Comments

  • edited September 2002
    If you know the barcode component name then you can use that to reference
    it. But since each report may be different, then perform a report object
    loop to find the object based on the class name of that object after it has
    been loaded. Use the Report.Template.OnLoadEnd event to know that a tempalte
    has been loaded. See the tech-tips newsgroup in the tempaltes thread for an
    article on 'using template events.' Then loop throught the objects as
    described in the 'report object loop' tech-tips newsgroup article in the
    code based thread. You can then edit the barcode properties at runtime based
    on the type that is in the data field of the data pipeline.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Hi

    Thanks Jim. I figured it out just after I sended the message and everything
    is working fine now.

    Regards

    Ruaan
This discussion has been closed.