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

Aditional Report info

edited July 2009 in General
Hello folks,

In early versions I was able to add some extra information in the template
loadstream & savestream event by a record. In version 11 this is not
working. Have you any sample where I can add a record to the template info?

Thanks in advance,

Francisco Ruiz

Comments

  • edited July 2009

    Had another developer email a question about this yesterday.

    There is an example in RBuilder\Demos\EndUser\MDI. Run the example and
    access the report designer. Then select File | Save As and then select File
    | Open.

    I did some testing yesterday and found an issue related to Delphi 2009. A
    small modification was required to the record declaration. Below is the
    modified declaration. I changed the Comments datatype from String to
    ShortString.

    {record structure used to store information inside report template }
    TppTemplateInfo = record
    HeaderID: Integer;
    Comments: ShortString;
    DateTime: TDateTime;

    end; {record, TppTemplateRec}




    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2009
    Other options instead of ShortString, use fixed sized arrays char. For
    example, AnsiChar[80] or Byte[80] or for Unicode characters use
    WideChar[80].

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.