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

How to merge ppdbrichtext with ppdbtext?

edited February 2007 in General
Hi,

I've a ppdbrichtext
I've a ppdbtext

i need to merge ppdbrichtext with ppdbtext.

How can i merge ppdbrichtext with ppdbtext?

tks



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited February 2007
    Hi Ennio,

    I'm a bit unclear about what you would like to accomplish. Do you want to
    add the text from a DBText component to a DBRichText component or the other
    way around? Text can be added to a RichText component using the
    TppDBRichText.RichText property. This would need to be done before the
    RichText component is generated, I would recommend in the Band.BeforePrint
    event.

    --
    Regards,

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

    Best Regards,

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

    i wanna add the text from a DBText to a DBRichText.
    es:
    dbrichtext: Hello mr , we are ....etc etc

    i need to change whith value of my dbtext

    tks


    to
    other
    Band.BeforePrint



    --- posted by geoForum on http://delphi.newswhat.com
  • edited February 2007
    Hi Ennio,

    There is no feature that will automatically merge a DBRichText with a
    DBText, however ReportBuilder does include the Mail Merge feature that can
    be used with a normal TppRichText component. This would be a matter of
    loading the DBRichText into a TppRichText component, altering the text to
    access the correct DB field in your database and the rest would be taken
    care of by the Mail Merge. Take a look a the TppRichText.MailMerge topic in
    the RBuilder help and at example 28 located in the \RBuilder\Demos\1.
    Reports\... directory.

    --
    Regards,

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

    Best Regards,

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

    it's ok. i print a pprichtext with merge.


    is it possible to print or not print a text depending from field value?

    tks


    can
    to
    taken
    topic in
    want
    the



    --- posted by geoForum on http://delphi.newswhat.com
  • edited February 2007
    Hi Ennio,

    Before the text prints, perhaps in the Band.BeforePrint event, you can check
    the current field value of a dataset and toggle the visibility of the text
    object based on that value using the Visible property.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.