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

printing a form

edited February 2002 in General
hi,
is it possible to use reportbuilder to print a TForm (the contents that is)
Form.print work but only with certain printer drivers
i was wondering if Reportbuilder was capable to capture the image
and print it
(like you press printscreen and then put the contents in an image?)

thx
marc

Comments

  • edited February 2002
    RB has no native support to do this, exactly. I wonder if there is an
    WinAPI call (to provide a copy of the active window like
    Ctrl-Alt-PrintScreen). If so, then you should be able to create an offscreen
    bitmap of the form at runtime. Then load this into an image compoennt of a
    report and print that?


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited February 2002
    Jim,
    that was my path also
    but like you? i do not know of such a call....

    marc

  • edited February 2002
    Hi,

    In article <8EAE82296ACCD311A039005004E0CAC0068D4D@DMSERVER>,
    Marc.Antheunis@XLentSolutions.Com says...

    Try Billenium Effects at http://www.billeniumsoft.com, it includes a
    function called RenderControl that creates a bitmap and renders the
    specified control into it. This function is much more accurate than
    other solutions (it renders correctly most controls). In any case, there
    is no perfect solution to this problem because Windows design doesn't
    allow it.

    --
    Regards,
    Francisco Sanchez
    fmsanchez@telecable.es
This discussion has been closed.