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

rsXHTMLDevice - can't copy fields in TppRegions when rendered

edited July 2006 in Devices
Hi,

I notice that fields in TppRegions, e.g. TppDBImage or TppDBText, when
rendered on the Internet browser can't be copied to the clipboard and JPEG
images can't be saved. Is there a property config to allow it?


Regards,

Nols Smit

Comments

  • edited July 2006

    - I created a simple example using DBDemos. I placed a Region with DBText
    and DBImage in the detail band and also another DBText and DBImage outside
    the Region in the detail band.

    - I can select any of the Text (inside or outside the Region) and copy to
    clipboard and paste to MS word. Note: I used Arial font. If you use a non
    standard font, RB generates the text as an image in the html page because
    the font may not be available on the browser machine.

    - I can save any of the images (inside or outside the Region) to .jpeg files
    by pressing the right mouse over the image

    - If you perform a view source of the page frame or open the page html in
    notepad, you will see that the region plus contained objects arranged by
    z-order. I think this makes selecting the graphical objects inside the
    region difficult, if not impossible. What happens is the region gets
    selected. When I selected copy and paste to MS Word, the region and its
    contents were copied.




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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2006
    I understand your explanation about the z-order and "text as image" thing.
    I had a TppDBCheckbox and it seems that forced the content of the TppRegion
    to an image, BUT Pragnaans Export devices overcome these practicalities for
    the user: Compare http://196.33.85.17/geosites (the official one, using
    rsXHTMLDevice) with www.infoveld.com/geosites (a test version at my home
    using Pragnaan's ExportDevices)

    Tomorrow I will start to work on a demo using ClientdataSets demonstrating
    the other problem.


    Regards,

    Nols Smit

  • edited July 2006
    - Those link do not reference a report directly. I ran the first report, for
    Tswaing. The two reports look different - are they produced from the same
    layout? Where is the Region used in the report. Without seeing the layout it
    is difficult to know.

    - If you perform a View | Source on each you can compare them, except that
    the Pragnaan HTML has no html formatting, so its impossible for me to read.
    However, I did a search for z-index it is not used in Pragnaan.



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


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2006
    The TppDBImage (the photos are at the end of a selected Geosite) is inside a
    TppRegion.

    Rather than explaining the layout, I'll rather start working on a example
    based on ClientdataSets. It's important for me not to use Pragnaan's
    ExportDevices anymore because rsXHTMLDevice renders the same report 10x
    faster and I'll have to pay for the Pragnaan's upgrade to work for RB 10.3

    Let's us rather iron out the last few issues in rsXHTMLDevice.


    Regards,

    Nols Smit

  • edited July 2006

    Ok. You can probably create a simple example using DBDemos data. I think the
    key is to create a layout with the same characteristics as your real report.

    The RB XHTML is created valid html, I would not classify this as a bug based
    upon what I have seen thus far - the output is correct, but we are willing
    to look at it and see whether anything can be improved.


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


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2006
    I created two test reports and mailed the info to you with the ftp address,
    UserID and Password from where to download the project files as two zip
    files:
    One using ClientDataSets
    One using FireBird with the direct drivers - no need no install the FireBird
    database engine.

    Summary of the problems discovered:
    I could not use TppDBImage when using ClientDataSets otherwise the XHTML
    seems correct.
    Images of the first record is used in consecutive records when FireBird
    (with IBX interface) was used. I think it has to do with sub-reports and
    using of TDataSets.


    Regards,

    Nols Smit

  • edited July 2006
    Just to follow up here on the newsgroup..

    - received the example from Nols
    - created a patch for RB 10.03
    - Nols has confirmed that the patch resolves the issue


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

    Best regards,

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