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

ability to copy value from a preview to clipboard

edited August 2006 in General
we have a inventory management project for the fresh produce Industry with
a wide range of reports a very usefull piece of functionality for us would
be the ability to copy a value( eg pallet number )
into the clip board to use in a pallet inquiry function on another form.
This may exist aleady and I havent Noticed.

along the same line then ability to double click a field like zooming to
subreports but open another delphi form or something depending on the field
cliked would also be fantastic

but may be thats for the wish list

regards Ian

Comments

  • edited August 2006
    Hi Ian,

    There is no built-in way to copy a value from the preview to the clipboard
    however it may be possible to manually give your users this capability. One
    option you might explore is implementing the OnDrawCommandClick event of the
    text objects in your report. Once this event is implemented, the text
    object becomes "hot" in that you can click on it in the preview window.
    From there you can use the event to get the value of the drawcommand and
    perhaps using the TClipBoard object, copy the value to the system clipboard.

    See the OnDrawCommandClick, TppDrawText, and TClipBoard topics in the
    RBuilder help and Delphi help for more information.

    Using the OnDrawCommandClick event for your second request would also be
    recommended.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2006
    thanks for that works perfectly
    regards ian
This discussion has been closed.