Problem with TppXHTMLRendererGeneric
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.
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.
This discussion has been closed.
Comments
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