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

Converting Reports in background DM -> EURO

edited October 2001 in General
Hello!

We are printing invoices via templates which are stored in a Database.These
invoices are written in DM (Deutsche Mark). Now we want convert each report
to EURO. That means:
Load every report from Database, replace 'DM' (stored in TPPLabel-fields)
through 'EUR' and save changed reports back to database. This must happen in
background!!!
Any idea to realize that? What's the best or easiest way?

Best regards
Klaus

Comments

  • edited October 2001
    Hi,

    dont change anything within the templates. Do everything at runtime.
    After loading the template change within the before print event of the
    detailband the content of the ppLabel to 'EUR'.

    enjoy,
    Ron.

  • edited October 2001
    Thanks Ron!

    I als had the same idea, but there is one problem! Our customers are allowed
    to change the templates in the designer. And when loding the report they
    would see 'DM' and when printing it suddenly changes to 'EUR'. So we decided
    to change the reports in background from DM to EUR to avoid confusion by our
    costumers.

    Any other idea?

    Thanks a lot

    Klaus

  • edited October 2001
    Hi,

    then create a small program and distribute it as a EUR patch. Within it
    load all templates, change the labels and write them back.

    enjoy,
    Ron.

  • edited October 2001
    Hi Ron,

    thanks, that's exactly what I had in mind. I'm struggling with the "change
    the labels "-thing.
    Can you send me an example, a snip of code or something like that??

    Thanks a lot

    Klaus


  • edited October 2001
    Hi,

    sorry no code, as I am currently closing a telco project. Today I have
    been reading the newsserver for the first time in five weeks.

    Ron.

This discussion has been closed.