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

Re: Losing report settings

edited October 2003 in Subreports
Greetings,
D6
RB 6.03

I am dynamically loading reports from our database to subreports that
located in a main report. I have everything work except for the
"ShiftRelativeTo" properties are not being loaded with the rest of the
report. I save the report to an external report (MyReport.txt) and looked at
the objects in the file. The "ShiftRelativeTo=Region4" is located in the
file and everything looks just fine but when the report is loaded, that
property does not load at all.

1. Is there a known bug with the "ShiftRelativeTo" property?
2. How do I debug report builders source code?

Regards,
Tim Armstrong

Comments

  • edited October 2003
    Hi Tim,

    When loading a template to your report, you need to be sure all components
    have a unique name. If there is a name conflict such as "Region4" may be,
    the RB streaming object will automatically rename the component to another
    default name. This is probably why the property is not loading correctly.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    Hey Nico,

    A good naming convention is always a good programmer practice. However, the
    "SaveToDatabase" technique use the real component name (Region4) instead of
    the EU define UserName (regMyRegion2). So, the property (ShiftRelativeTo)
    will be lost when the "loadfromdatabase" function tries to load Region4
    into the report if there is another occurance of Region4(regMyRegion1) prior
    to the component named above. I think that this is a bug. Maybe the
    "ShiftRelativeTo" function should look that the "UserName" property instead.

    Thanks,
    Tim


  • edited October 2003
    I should probably mention another important detail. I create and minipulate
    all the reports from within the design mode in my application. I do not have
    the option to hit F11 and modify the Object Inspector. My "WorkAround" is to
    export the report to a flat file(.rtm). Manually change the real component
    name and then reimport the report.


  • edited October 2003

    Currently RB is relying on the Delphi streaming system to resolve most
    object references and it is using the Component.Name property to resolve the
    references.

    We can add your request to the wish list....


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

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