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

Template Buggy-Digital Metaphors Only please respond

edited September 2002 in General
Hello All:

We just started using the offset to store report information in our rtm
files per the tech tip in your newsgroups. We use RB 6.02 and Delphi 5.

This works great at run-time with the perscribed events

LoadReportStreamEvent(Sender: TObject;Stream: TStream);
SaveReportStreamEvent(Sender: TObject;Stream: TStream);

PROBLEM: We cannot modify a report at design time. We place the correct
offset into the report component and once we save it, THE REPORT BECOMES
CORRUPTED.

THIS MAKES OFFSETS USELESS TO US. Per your newsgroups this is a known
bug.

Is Digital Metaphors aware of this ???

Does Digital-Metaphors plan to correct this ???

If so, when ???

Thank you


Neil Huhta
Profit Monster Data Systems LLC

Comments

  • edited September 2002

    Sorry for any misunderstanding about this feature, but it is currently
    supported only at run-time. The feature is working as designed - it is
    not a bug. I know that is not what you want to hear, but it is the
    truth. This feature has existed since about RB 3.0. It was never
    designed to work at Delphi design-time because there is no way for the
    events to fire.

    Hope this clarifies things.




    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2002
    Nard:

    Thank you for the clarification. What you say makes sense. It would be
    appropriate to document this issue prominently. This issue makes using the
    offsets impossible if you use the IDE to design reports.

    We are electing to create a buddy file for the rtm file which contains
    the offset info - not an ideal solution but an acceptable work-around. We
    are also looking at the ppDesigner component.

    Couldnt one subclass the ppreport component and add the perscribed
    events at design time ??? If this seems like a reasonalbe solution, then
    how would we attach to the events ???

    LoadReportStreamEvent(Sender: TObject;Stream: TStream);
    SaveReportStreamEvent(Sender: TObject;Stream: TStream);

    Thank you

    Neil Huhta
  • edited September 2002

    Might be possible. I suppose the event-handlers could be attached in the
    constructor of your report descendant. The Delphi design-time
    environment is very sensitive (i.e. has the tendancy to AV alot if your
    code does something that it does not like) but you could make a run at
    it.

    You'll need to create a myReportReg unit and put it in a Delphi
    design-time only package. It will need to register the report class and
    also register the report designer. See the ppRegPro.pas unit for the
    calls shown below.


    RegisterComponents('RBuilder', TppReport];

    RegisterComponentEditor(TppReport, TppReportComponentEditor);
    ppRegisterComponentDesigner(TppDesignerWindow, TppReport);







    Best regards,

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