Exporting report with TppRichText
Hello,
We provide report exporting capabilities from RB, with our product
eDocEngine VCL. One of our customers using 'TppRichText' on the report is
experiencing problems while exporting to PDF using our product. We had
e-mailed you the problem along with the Interface PAS file to
support@digital-metaphors.com on 7th August 2006 and again on 14th August
2006. But we have not received any reply till now.
However, if you need the interface PAS file once again, then we will send
you the same to support@digital-metaphors.com.
We override the 'Draw' procedure provided by 'TppFileDevice' to export the
report, where we receive TppDrawCommand object - particularly
'TppDrawRichText' object - as parameter. We have traced this problem to the
metafile provided by 'TppRTFEngine.DrawRichText(...)' method. We require the
metafile to be completely provided as it looks in preview, depending on the
rich text loaded into TppRichText component.
Environment:
- Delphi version: 6
- ReportBuilder version: 7.xx
- Operating System: Windows 2000/XP
- Printer model: N/A (screen device)
Questions:
1. What do we need to pass to 'aRect' parameter of
TppRTFEngine.DrawRichText(...) so that we receive the complete metafile as
displayed in the preview?
2. If the 'TppRichText.Stretch' is set to 'True' on the report, how do we
capture that information in overridden 'Draw' function? This is required, to
know if the rich text is to be clipped or stretched.
Please provide us information regarding these so that we could rectify our
exporting routines to correctly export the rich text on the report.
Thanks in advance.
Regards,
Ms. Bhamini
---
Tech Support [support@gnostice.com]
Gnostice Information Technologies
www.gnostice.com
---
We provide report exporting capabilities from RB, with our product
eDocEngine VCL. One of our customers using 'TppRichText' on the report is
experiencing problems while exporting to PDF using our product. We had
e-mailed you the problem along with the Interface PAS file to
support@digital-metaphors.com on 7th August 2006 and again on 14th August
2006. But we have not received any reply till now.
However, if you need the interface PAS file once again, then we will send
you the same to support@digital-metaphors.com.
We override the 'Draw' procedure provided by 'TppFileDevice' to export the
report, where we receive TppDrawCommand object - particularly
'TppDrawRichText' object - as parameter. We have traced this problem to the
metafile provided by 'TppRTFEngine.DrawRichText(...)' method. We require the
metafile to be completely provided as it looks in preview, depending on the
rich text loaded into TppRichText component.
Environment:
- Delphi version: 6
- ReportBuilder version: 7.xx
- Operating System: Windows 2000/XP
- Printer model: N/A (screen device)
Questions:
1. What do we need to pass to 'aRect' parameter of
TppRTFEngine.DrawRichText(...) so that we receive the complete metafile as
displayed in the preview?
2. If the 'TppRichText.Stretch' is set to 'True' on the report, how do we
capture that information in overridden 'Draw' function? This is required, to
know if the rich text is to be clipped or stretched.
Please provide us information regarding these so that we could rectify our
exporting routines to correctly export the rich text on the report.
Thanks in advance.
Regards,
Ms. Bhamini
---
Tech Support [support@gnostice.com]
Gnostice Information Technologies
www.gnostice.com
---
This discussion has been closed.
Comments
- no email was received at support@digital-metaphors.com. (Girish has my
personal email, in the future have him contact me if this issue persist)
- I recommend looking at the TppDrawRichText.Draw method for an example of
how to do what you describe. When the aDevice parameter is TppScreenDevice a
metafile is produced.
- one goal of the draw command architecture is that the draw commands are
completely self describing. The draw command propertie describe the
location, size and other characteristics of what needs to be rendered. The
TppDrawRichText properties StartCharPos, EndCharPos indicate the range of
characters to draw within the specified area on the page. (Your export does
not need to know whether stretch was set to true - it only needs to draw the
range of characters in the specified area.)
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com