RTF Load From File
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com