+ Reply to Thread
Results 1 to 3 of 3

Dynamic Print Titles according to content

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    MDTRN
    MS-Off Ver
    Excel 2003
    Posts
    2

    Dynamic Print Titles according to content

    Hello,

    I have a blank excel as a template which I use to fill it with data from a database using excel automation in delphi 5 (yeah, it's an old application).

    The format of the excel sheet is the following :

    Two fixed titles on the first page.

    1) One row containing the code and description of the group.
    2) One row containing the titles of the columns from A to E
    3) A variable number of rows for the actual data
    4) Two rows containing summary info for the group.

    After the second summary row I insert a page break so that each group will start on a new page.
    What I haven't found so far is how to repeat on the top of each page rows 1) and 2) per group when group spans in several pages. Or if that is not possible, how to repeat 2) which has fixed titles.

    For some reason I couldn't upload a sample so I've copy-pasted from excel.

    Thank you very much for any help

    Big Title on first page

    Secondary title on first page

    category number and description
    F1 F2 F3 F4 F5
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    Total group number : 99
    Total amount : 999.99
    category number and description
    F1 F2 F3 F4 F5
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    Total group number : 99
    Total amount : 999.99
    category number and description
    F1 F2 F3 F4 F5
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    9 9 99999999 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 99.99
    Total group number : 99
    Total amount : 999.99

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Dynamic Print Titles according to content

    Please show it in excel with expected result for better understanding


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    04-16-2013
    Location
    MDTRN
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Dynamic Print Titles according to content

    Tried to upload it but I couldn't. Sorry.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1