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

RTF in RB 10.06

edited December 2007 in General
Delphi 2006, RB 10.06 and InfoPower Studio 2007

I followed the instructions for incoporating the InfoPower stuff into
Delphi, but with the appropriate modifications necessary since the
instructions are for D7.

requires
vcldb,
vclx,
bdertl,
rbRCL1010,
ipstudiowin;

contains
ppWWRichEd in 'ppWWRichEd.pas';
end.


My app uses TwwDBRichEdit from InfoPower. I am having difficulties
printing/displaying a simple table in report builder. This table has two
columns and 4 rows. Column 1 has formated text and Column 2 is right
justified since it has dollars in it. Look at the attached jpg to see the
rendering problem. Since the RTF displays fine in the component, is there
something need to be changed in RB to have it display correctly, too?

Help
Thanks
Jim

Comments

  • edited December 2007
    Opps wrong jpg. Correct one is attached.


  • edited December 2007
    Hi Jim,

    For future reference, please send all attachments to
    support@digital-metaphors.com.

    It looks as though the RTF inside the control is too large to fit inside the
    TppRichText control in ReportBuilder. Have you tried increasing the width
    and height of the control in RB to see if that affects the output?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2007
    I thought it was a size issue as well, so I increased heights and width of
    the TppRichText control to be 8" x 10" and reduced the RTF to be about 2" x
    3". The rendering was just as bad. Any suggestions what to try next? I
    still am not sure whether this is a ReportBuilder problem or an InfoPower
    problem. The RTF displays fine within InfoPower.

    JimG



  • edited December 2007
    Hi Jim,

    We are not aware of any issues with RB and Infopower. If Infopower is
    integrated correctly with ReportBuilder the exact control should be used
    when creating a report. Are you able to recreate this issue with any report
    and richtext component?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2007
    Yes, I can reproduce it regularily. Any memo control that contains a two
    column table where column 1 is left justfiied and column 2 is right
    justified (for money). I create these within msword and then paste into the
    richtext memo field.

    Infopower had problems displaying these tables in their component ONLY if a
    horizontal scrollbar is displayed. Once disabled, the tables render great.

    Roy Woll was wondering whether or not RB uses msftedit.dll. If it relys on
    the older versions of the windows richedit dlls, that is probably where the
    problem resides. What do you think?

    JimG



  • edited December 2007
    Hi Jim,

    Are you seeing this behavior at runtime and designtime? Note that you are
    not going to be able to see this properly formatted in our RichText editor.
    You mention that the RichText has problems when the horizontal scrollbar is
    enabled. When a richtext is loaded, ReportBuilder simply creates an
    InfoPower control behind the scenes and loads the RTF info. This will most
    likely be the default InfoPower so the scrollbar issue could be causing the
    problem.

    You might try adding some code to the ppWWRichEd to disable the scrollbar
    and see if that makes a difference.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2007
    GREAT INFO! With that, I could see InfoPower was defaulting to the
    msversion 3 (the old richedit) that didn't support this RTF data. When I
    changed the source code within InfoPower's class that when it was created,
    to default to 4, I recompiled and it now displays EXACTLY as I need.

    Thanks for all your help.

    JimG

This discussion has been closed.