Home General

aligning label in memo component

edited August 2001 in General
Hi!

In my report I've got a Memo-component, with quite some text. On top of this
memo component I've put a label, which is going to show a currency number
(computed by code).
I placed the label in such a way that it looks like it was just printed in
the memo. The problem is, that in the preview it prints just fine, exactly
on the position where I put it, but when I print it, it print the label over
the memo-text.

I'm trying to print the following text (and more of course):

For your reservation we kindly ask you a confirmation deposit of NLG 72,50.
Please make sure......

The 72,50 are calculated in code and is shown by the label.
I can't use the mailmerge option, because I can't calculate the value there,
I can't format the value, unless I'm going to create all the text in code.
But this would make it far too difficult for my end-users.

If it looks good on preview, shouldn't it look good when printed, too?

Hoping for a solution,

Kind Regards,
Bart Gronenschild.

Comments

  • edited August 2001
    Use a rich text control and place a tag in the rich text like [Calculation]
    or some arbitrary tag, and then set its font. When the rich text generates,
    you could change the text from [Calculation] to your value.

    The reason why the preview won't match your printed output:

    We have two choices when we create a preview - compose for the screen, or
    compose for the printer. Most programs such as MS Word compose to the screen
    when they create a preview. This makes for attractive previews but they tend
    to
    be inaccurate. And it means that they then compose again for the printer
    when you print the document. Most of the time things will print effectively
    similar to the preview, but we have seen many times when the printed output
    was different - a word wrapped to the next line, or some such problem. If
    you use a program meant for accurate page layout, such as PageMaker, you
    will notice that the Page Setup dialog asks you for which printer you wish
    to compose. When PageMaker displays a page, it may not look exactly how
    you think it should, but you do get a preview where the element placement
    is guaranteed to match the printed output's element placement.
    We have chosen to follow this second model.

    Note that when we say element placement, we are referring to X and Y
    placement and not height and width. While the X and Y placement of
    our previews will be accurate, the height and width of text elements
    may vary based on zoom percentage. This is a normal artifact of
    composing for the printer and not for the screen.

    Your preview can not match your printed output. It will
    differ in one of two ways:

    1- It can look good on the screen, but items on the page may not
    display in the same location they will when printed.
    or
    2- It can be less attractive, but items will display on the preview
    exactly where they will when printed.

    We give you the second because it is more accurate and more reliable.
    Not to mention more in keeping with professional page layout products.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited September 2001

This discussion has been closed.