Home Devices

Problem when previev component on a different form than the report

edited September 2006 in Devices
Hello!

If I want to place a report on one form, and a preview component on
another one, then I can not assign the report to the preview, although
the the units are included in each others uses list.
Is this a bug, or can there be done some workaround?

Greetings, Zsolt Balanyi

Comments

  • edited September 2006
    Hi Zsolt,

    In my testing there is no problem using a report on a different form than a
    viewer. If you use the unit that contains the form and the report is public
    or published, you can access it using the form variable created for you.
    For instance, in the second form with the viewer you could say the following
    in the FormCreate event...

    ppViewer1.Report := Form1.ppReport1;

    --
    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.