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

Create new file

edited March 2009 in General
Hi!

How do i use this 'create new file' in groups? Where do i give a new
filename? Will this split a report into several pdf-files if device is pdf?

Regards,
Terje

Comments

  • edited March 2009
    And i would like to do all this in RAP.

    Terje

  • edited March 2009
    Hi Nico,

    If i attemp to add some code in RAP, OnGetFileSuffix i get the error
    "TraEventHandler.SetEventName: RTTI for event OnGetFileSuffix exists. I run
    RB 11.03.

    Please tell me this can be done in RAP?

    Regards, Terje


  • edited March 2009
    HI Terje,

    There is a patch available for RB 11.03 that fixes this issue. Please send
    an email to support@digital-metaphors.com requesting the patch.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2009
    Hi!

    < Attached is the patch. Simply unzip the files in the .zip file into your
    \RBuilder\Lib\... directory and rebuild < < your application.

    I done this as described in the mail with the patch.



    When i attempt to rebuild my application in D2007 i get the error

    [DCC Error] RdHoved.pas(7): F2051 Unit ppDB was compiled with a different
    version of ppTypes.TppCollationType.
    When i attempt to rebuild my application in D2009 i get the error

    [DCC Fatal Error] RdHoved.pas(9): F2051 Unit raIDE was compiled with a
    different version of ppDsgner.TppDesignerWindow

    How can i solve this? I have several impatient customers so please help.

    Best regards,
    Terje Syversen


  • edited April 2009
    Hi Terje,

    Please upgrade to RB 11.04. The fix is included in this version.

    For upgrade instructions, contact info@digital-metaphors.com with your
    serial number and purchasing email address.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2009
    Hi!

    I have upgraded to 11.04 and done exactly like it says in "Separate File for
    Each Group" in RbWiki. In my application i have set the report.properties

    DeviceType := 'PDF';
    AllowPrintToFile := true;
    TextFileName := '_';
    ShowPrintDialog := false;

    I have set OnGetFileSuffix like this.

    begin
    SuffixValue := 'C:\'+Kontrakt['Owner']+'.pdf';
    end;

    I know that this report should generate 14 pdf files. None is created:
    What am i doing wrong?

    Best regards,
    Terje






  • edited April 2009
    Hi!

    Forget the previous mail. Problem is solved.
    Thanks,
    Terje

This discussion has been closed.