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

ehDevicePageReceive event Fires twice

edited July 2010 in General
Hi,
I am using the example SendEachPageAsNewPDFFile from RBWiki. It seems
that ehDevicePageReceive fires twice. The first time the PDF file is there
but is not complete (cannot open) the second time the PDF is completed. Is
there a reason why this is happening? I want to do further processing as
soon as the file is complete. What is the best way to do this.
Thanks

Comments

  • edited July 2010
    Hi Eug,

    Initially a "message" page is sent to the device which does not contain any
    drawcommands or file information. This page object is ignored by the file
    device when sent to its ReceivePage routine. You can take a look at the
    TppDevice.IsMessagePage property to see how to tell if a page is going to be
    used as output.

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