Home General

JIT Pipeline Image error (Urgent)

edited August 2010 in General
Hi

I upgraded from Rb 10.08 to 12.01 Ent (Delphi 2007).
I have a JitPipeline with both dtString and dtGraphic fields. I have no
trouble with the string fields but the image fields are not shown on th
report. When I debugged the situation, I found that the
GetFieldAsPicture of the JitPipeline isn't fired. This used to work on
Rb 10.06.

Any changes I should be looking at?

This is urgent for me. Thanks in advance.

Bora Aydemir

Comments

  • edited August 2010
    There is an RB 12.01 patch available that corrects this issue. I emailed it
    to you. Registered RB 12.01 users can email support@ and request the patch.


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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2010
    Thanks, I applied the patch. It works for bitmaps but I still have
    problems with jpg's. And I have set to GraphicType to Bitmap, otherwise
    even if the image is a bmp it is not displayed when set to AutoDetect.

    Bora Aydemir

    13/08/2010 16:45, Nard Moseley (Digital Metaphors) yazmis:
  • edited August 2010
    This is working as designed. If you want to use the new AutoDetect feature,
    then implement the new JITPipeline.OnGetFieldAsStream rather than
    OnGetFieldAsPicture.

    If you want to implement OnGetFieldAsPicture, then set DBImage.GraphicType
    to Bitmap so that the event will fire. Then implement the event-handler to
    assign any type of Graphic to the Picture object: Bmp, Jpeg, etc..



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


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2010
    Hi

    I looked through the OnGetFieldAsStream of the Jitpipeline this weekend.
    I have a few issues

    1. I want to use the auto-detect feature so I only implemented
    OnGetFieldAsStream. This works for jpg's but bitmaps aren't displayed.
    When I implement both OnGetFieldAsPicture (for bitmaps) and
    OnGetFieldAsStream (for jpg's). I mean OnGetFieldAsPicture works for
    bitmaps, OnGetFieldAsStream works for jpg's.

    Is this normal? Am I doing something wrong?

    2. I have a lot of reports with images and jitpipelines, so I would
    prefer to change the OnGetFieldAsPictures with OnGetFieldAsStream
    gradually (if my above problem s solved). Is it possible to get
    OnGetFieldAsPicture and OnGetFieldAsStream work side by side. Can the
    pipeline check if OnGetFieldAsPicture is implemented, if it is use it,
    if not use OnGetFieldAsStream with both auto detect feature. I edited
    the source code to achieve a similar point but its not my preferred way
    to edit active 3rd party products.

    Thanks

    Bora Aydemir


    14/08/2010 00:17, Nard Moseley (Digital Metaphors) yazmis:
  • edited August 2010

    Thanks for the feedback.


    As implemented currently, it requires OnGetFieldAsPicture to be implemented
    for Bitmaps. This will be changed for RB 12.02.


    For the next maintenance release, RB 12.02, I redesigned the JITPipeline to
    work like this.



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



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited August 2010
    Thanks

    Eagerly waiting for RB 12.02 :)

    Bora Aydemir

    18/08/2010 00:35, Nard Moseley (Digital Metaphors) yazmis:
This discussion has been closed.