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

Custom Preview Form using VCL Components

edited February 2004 in General
Hi,

I'm aware of how to change a preview form via pascal code. (By copying the
preview form as rpPrvDlg.pas via tutorial instructions), and adding
components via code), but is it possible to have a custom preview form that
can be designed totally visually. (ie, I can see in design time what the
form looks like, and manipulate it via objects, rather than coding it
manually)?

I see that if I drop a TPanel on the blank form, and align it to the top,
that it appears above the rest of the objects on the preview, however in
design time, all I can see is the TPanel I placed on the form and not the
rest of the preview form.

(Hint: It would be fantastic if someone already has a custom preview form
that has all the components within the .dfm, instead of the pas )

I hope I'm making sence.

Thanks & Regards
--
Adam Hair
Wimmera Software Development
Horsham, Victoria, Australia

Comments

  • edited February 2004
    Hi Adam,

    There is an example of a custom preview dialog located in the
    \RBuilder\Tutorials\Complete\II. Applications\01. Reporting\... directory.
    This is a single project that allows you to preview every completed tutorial
    in a preview window. If you open the rbPrvDlg.pas file you will see a
    custom preview at design time.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2004
    Thanks Nico,

    Exactily what I was looking for! I love this NG and the support I get! :-)

    Adam.

    tutorial
  • edited February 2004
    Hi Nico,

    Another slight problem I've found. When I run the completed tutorial you
    pointed me to, and I choose the "A simple report the hard way" report, and
    show the dialog, the search text icon doesn't do anything. I haven't
    modified the tutorial in any way (that I'm aware of )

    Thanks & Regards

    Adam.
  • edited February 2004
    Hi Adam,

    Adding TextSearch to a custom preview designed visually is a little more
    involved. Check out the following example on how to include the TextSearch
    feature on a custom preview.

    http://www.digital-metaphors.com/tips/ReplaceFormAndAddSearch.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2004
    Hi Nico,

    TextSearch

    Thanks - this is what I'm after!

    Best Regards

    Adam.
This discussion has been closed.