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

HTML output like TExtraDevices

edited March 2017 in General
I have a very simple message like report. This Report is intended for
emailing Appointment confirmations. There are no Images on this just some
plain text and some bold text.
All messages are created and stored in RB archive format. Then from the
archive I print to HTML file Device (Report.PrintToDevices) and Email
through outlook.
TExtraDevices creates a single HTML file with the Bold text and regular text
all in HTML format and that is what I want.
RB creates an html file and a bunch of Images for the text. That is not
what I want.
Is there a way to do this in RB? Trying to get away from TExtraDevices since
it has not been update for a long while.
Using Delphi Berlin and RB 17.02 at the moment.
Thanks you

Comments

  • edited March 2017
    Hi Eug,

    The HTML device uses the TppXHTMLUtilities.IsStandardWebFont routine
    located in the ppXHTMLUtilities.pas file to determine if the text will
    be rendered as an image or text.

    Using the fonts defined in this routine will ensure the report is
    exported as a single file.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2017
    Hi Nico,
    You are right about that but I do not have control over user Templates.
    The interesting part is if I force IsStandardWebFont :=true for any font I
    get what I want.
    Can we make that an option in the future or is there a way to achieve what I
    want without modifying the source?


  • edited March 2017
    Thanks for the feedback. We will consider adding an option for a later
    release.

    --
    Best Regards,

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