Home Devices

Problem with TppXHTMLRendererGeneric

edited June 2014 in Devices
I used TppHtmlDevice for export some reports (invoices) to one html file.
All work fine, but some images in image dir is the same.

I check and found that this happens when TppXHTMLRendererGeneric used.
CompareDrawCommands method for this objects returns all time false.

I try rewrite TppXHTMLRendererGeneric.CompareDrawCommands and used
something like this code in it:
Result := ComponentToStr(aDrawCommand1) = ComponentToStr(aDrawCommand2);

That work fine in my case, but have problems when DrawCommands differ only
by the left and (or) top position.

So, can you add special TppXHTMLRendererGeneric descendants for all
standard Draw Commands (TppDrawRichText, TppDrawBarCode, TppDraw2DBarCode
as example) with CompareDrawCommands realization.

Comments

  • edited June 2014
    Hi Dima,

    Thanks for the feedback. This will be considered for RB 16 and beyond.



    Best regards,

    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.