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

RTF Load From File

edited April 2006 in General
I have a subreport which has a rtf (InfoPower) component on it. I would
like to get the margins of the rtf and pass them into the page setup.
Does anyone know how to get the margins? I know there are tags inside
the RTF \marglN, \margrN, and etc., but I'm not sure how to get them and
pass them into RB. I am using D7 and RB 10.2. Any help would be
appreciated.

Thanks,
Nick

Comments

  • edited April 2006
    Hi Nick,

    Before you print the report, you could try streaming the RTF data and
    searching for those tags. I believe the "N" represents the margin value in
    twips. This can then be converted to report units and given to the
    Report.PrinterSetup margin properties. I believe there are 20 twips in a
    point or 1440 twips in an inch.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.