Home Devices

ADrawcommand.Band and APage.Producer in archive file

edited March 2010 in Devices
Hi,

I noticed when we run through the report export code in our main application
we have the following encapsulated objects instantiations available:

APage.Producer (on ReceivePage)
ADrawCommand.Band (on DrawText)

I created a new stub application and save the output from our main
application to a Report Builder archive file. I noticed when going through
the same code in this application that the abovementioned objects are not
available, they are nil.

Is it true that archive files will not have the band and producer objects
linked in? How can I access the Band and Producer objects from this
application? Am i missing something possibly?

Thanks,

Anton Bosch

Comments

  • edited March 2010
    Hi Anton,

    What exactly are you trying to accomplish? There should be no need for a
    Band concept when printing Archive files. These are simply snapshots of a
    pre-generated report.

    As for the producer (report), there is no TppReport object attached to an
    archive file. What is the purpose of accessing this property?

    --
    Regards,

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

    Best Regards,

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

    Firstly i wanted to figure out if i am on a header band / detail band /
    footer band to apply different logic to the text in these areas.

    Secondly we have a requirement that every draw command that corresponds to a
    "record" (or logical row) in the report (this includes all sub reports that
    are set out in a columnar fashion) be included in 1 row (so the data is to
    be merged into cells in the row) in the Excel export that i am doing, so i
    need to know which band i am on to try and access more detail around a
    record / pipeline information. I wanted to see what was exposed by the band
    to help me with what I need to do but then noticed it doesn't exist in the
    archive file so it sent of a red light for me.

    Anton

  • edited March 2010
    Hi Anton,

    An archive file does not have a concept of "data". As I mentioned before,
    it is simply a snapshot of the generated report. Think of it as a PDF or
    RTF file.

    If you are creating a device that does not rely on the actual position of
    items on a page, you will not be able to export from an archive file.

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