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

omit the one-pixel-boarder of a region

edited August 2005 in General
Hi,

most of time I'm using regions to control different views of a report
(visible := true/false).
Everytime I've to set the Pen.Style to psClear to suppress the border.
(and in most cases ParentWidth to True).
On Delphi-Forms I'm using a lot of component-templates (i.e a TDBGrid with
alClient).
Is there a similiar thing in the RB-Designer.

--
Best regards
Dietmar Brueckmann

Comments

  • edited August 2005
    Hi Dietmar,

    Are you looking to remove the border from the designer window (i.e. the
    design tab)? This is strictly for reference purposes and should not show up
    in the previewed or printed reports. There unfortunately is no feature to
    completely remove the "design border" of any component in ReportBuilder.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2005
    Am Mon, 15 Aug 2005 07:39:18 -0600 schrieb Nico Cizik (Digital Metaphors):


    Sorry, I'll say in steps what I do.
    Assume I want to add a Region (named rrSpecialInfos) in a group header to
    get the possibility to suppress printing some values in some cases by
    rrSpecialInfos.Visible := ShouldPrintSpecialInfos;
    I don't want to see a border line around the values.
    The values are ordered in a complete line.

    1. I add a Region to the group header
    2. I set name to 'rrSpecialInfos'
    3. I set rrSpecialInfos.Pen.psStyle to psClear
    4. I set ParentWidth to true
    5. I set Heght to 6 (Units = utMillimeters)

    Most of Regions I'm using I need to do step 3-5.

    The Delphi IDE gives me component-templates
    (Main-Menu --> Components --> Create component-template
    or what the english text is
    )
    Assume you need for your projects often a TMemo with Align = alClient
    Then you do the following:

    1. Click a TMemo on any TForm
    2. set Name = 'mo'
    3. clear Lines
    4. set Align to alClient
    5. click in the Main menu "Create component-template"
    6. you will see a Dialog to give the template a name (set it to 'TMemoAC')

    On the component-pallette appears a card "Templates" (or what the english
    name is)
    it contains the 'TMemoAC'.

    if you click it on a TForm yo will get
    - a TMemo named 'mo'
    - alClient
    - without the Text 'Memo1' in its canvas

    I'm searching for an similiar feature on RB.


    --
    Best regards
    Dietmar Brueckmann
  • edited August 2005
    Hi Dietmar,

    Sorry but there is no feature built in to ReportBuilder to create a
    "Component Template" like in Delphi. There are however two options for you
    that RB can provide.

    1. Create the region once, then every time you need another region simply
    copy, then paste it inside the report.

    2. Create a custom region component following the demo provided in the
    \RBuilder\Demos\6. RCL\... directory.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2005
    Am Tue, 16 Aug 2005 11:04:36 -0600 schrieb Nico Cizik (Digital Metaphors):


    Thanks for that advice. That's it what I want to know.

    --
    Best regards
    Dietmar Brueckmann
This discussion has been closed.