Report Formatting with Dynamic Height Header/Footer

I need to generate a printable report (pdf if possible) with a:
1) Header - Dynamic Height based on recordset output
2) Body - Recordset output, may carry over to multiple pages
3) Footer - Dynamic Height based on recordset out
In short, the whole page is dynamic- The header and footer need to be on every page and whatever height is left over to fit within the print area goes to the body and the line item output of each record (think invoice).  Then the number of pages will depend on how long it takes to output the body recordset (but the header and footer MUST be on each page).
I have been trying to get this to work using cfdocument since CF7 and have never had any luck. It has not worked due to the reason that since the header and footer are dynamic height, I do not have any way to set the margins properly on page generation (so it shrinks the header or leaves excess whitespace).
Anyone recommend the best way to go about this? I have heard about the report builder and am not sure if that will fit these requirements.  I appreciate any assistance!

When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
Hope that helps
Paul

Similar Messages

  • FF 6 "Page Setup" missing "Format & Options" and "Margins & Header/Footer" tabs

    Running 6.0.1 or 6.0.2 on FreeBSD 8.2-STABLE when I select File->Page Setup the standard popup window no longer has tabs for "Format & Options" and "Margins & Header/Footer" that I see on Windows XP when running 6.0.2 - this would be okay were it not for the fact that printing (using CUPS on FreeBSD) no longer prints the headers and footers (which I see just fine when I do Print Preview) something in FF 6.x has regressed and is affecting Page Setup.

    Yep, this I know. And have long since done this (probably before FireFox was called Mozilla). In fact my margins are set the way I want them (and have been unchanged for years - at least since 2006). That was the first thing I checked.
    The fact is ever since I upgrated to 6.01 from 5.x (which was a few weeks ago) my printing from FF6 has not included the footers and headers. As I've said, I can see my footers and headers when I perform Print Preview, but they do not appear on the printed page(s), I truly believe this is changed behaviour due to the upgrade to FF6. Next week I will try a screen capture of my Print Preview to include an image for the "Add images:" feature when posting a reply, but I don't know how to show the physical printed page lacking those same headers and footers short of shooting a photograph with a macro lens and including that as an image. Therefore for now, you will just have to take my word for the fact of missing footers and headers. Also, next week I would be able to post here my about:config settings for the margin preferences which I assure you have remained unchanged for several years. FWIW, printing from Opera 11.11 to the same printer from the same workstation where FF6 is running does include my footers and headers. To my thinking this fairly much puts the blame for this problem on FF6. Thanks.

  • Dynamic table header/footer on multiple pages stay original

    hi experts,
    i've got a form with a dynamic table. this means that i have a footerrow with mapped information if it should be visible or not. so the table can have from 1 to 40 columns.
    i did some scripting in the table's initialize section:
    loop over count of colums and set the headerrow, row1 and footerrow elements for index x to hidden.
    everything works out fine BUT if the data spans over multiple pages the headerrow on pages 2 to last is original again. means that the hiding of cells is not effective any more. same with footerrow (but here its fine at last page and original at  page 1 to last -1).
    i tried to hide cells again in layout:ready section for the other instances of the headerrow.
    cells got hidden, but the still visible cells didnt relocate to the left (if i hide it, there should be no space between staying cells).
    can anyone please give me a hint what i am missing here?
    does anyone have a simple sample for this task? its all about the header/footer for multiple pages!
    thanks a lot!
    daapoo

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

  • Difficult to achive the report layout with dynamic column names

    I have a report layout as below.
    So here the column names are dynamic.And each fixed row group has different calculations. I have a date parameter. If I select July 2013, then I need to show data from July 2012 to July 2013 with Columns(Jul-12, Aug-12...Jul-13). How to achive below layout
    with dynamic columns?

    Hi Sarayu_CM,
    According to your description, you want to filter the records of prior year based on only one parameter selection. Right?
    In this scenario, we can create two parameters. The first one is for user to select. The second parameter is based on the first parameter selection. We don't need to specify Available Values for the second parameter, but we should use expression to specify
    Default Values based on the first parameter selection. Use the expression below:
    =DateAdd("m",-12,FormatDateTime(Parameters!param1.Value))
    Then we just need to apply a filter on the matrix/dataset to get the records which the date is between values in these two parameters.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • CreateTextfield with dynamic height?

    Is it possible to use createTextfield with a fixed width, but
    without defining height, so that it will size according to the
    amount of text loaded into it from XML? I would like to do this so
    that I can get the _height property at runtime to use for custom
    scrolling of the text field. Thank you in advance!

    So, if I can't have dynamic height, (assuming no reply
    probably means "no" ;) ) I decided I would at least make it so the
    height can be defined from the XML file. I added an "h"= 300;
    attiribute to the node that contains the text in the XML file.
    Everything loads properly and traces just fine, but when I try to
    create the text field, nothing is there. I must have some wrong
    syntax or something,or perhaps I have to define a font differently.
    My font is in the library and linkage is set for exporting for
    actionscript. Could someone be so kind as to take a look and see if
    anything is obviously wrong? Thanks!

  • Multiple Report Regions with same height?

    Dear forum members,
    I have a page containing 4 report regions arranged in a 2x2 matrix. Each region should show 10 rows using pagination.
    And I want them to have same width and height.
    No problem to let them have the same width...
    But how may I tell my regions to have the same height (that is the same like showing 10 rows would be), even, if there is no data found by one of the source queries?
    Any comments welcome!
    Best regards,
    Johann

    Hi,
    You need to wrap your report in a DIV tag. I have done that here: [http://apex.oracle.com/pls/otn/f?p=267:28]
    In each region's Region Header setting, put:
    <div style="height:200px">and in the Region Footer setting, put:
    </div>Andy

  • Refresh report title with dynamic action

    Hi all,
    I have a report that is refreshed with an dynamic action. When the refresh is performed, first the value of two hidden variables are set (P2_ID and P2_NAME) and are submitted (using a dynamic action type 'pl/sql', with code 'null;' and page items to submit: P2_ID,P2_NAME).
    In the query of the report, i use :P2_ID in the where-clause. That's all working like a charm! The one thing that doen't work, is the title of the region: that's defined as 'Properties of &P2_NAME.', but the title isn't refreshed when the report gets refreshed.
    Is there a solution for this? I hope I'm clear enough.

    See Re: Dynamic action - Refresh
    So you are right; the native Refresh action just refreshes the report content, it does not perform &ITEM. substitutions everywhere in the region.
    What you could do is use a named SPAN as the title like <span id="my_title">&P2_NAME.</span> and add a TRUE action to your Dynamic Action to set the title using Execute Javascript code $s('my_title',$v('P2_NAME'));Hope this helps.

  • How to have a UILabel with dynamic height?

    Hi, I have a UILabel which I created it programmatically. This UILabel consists of dynamic data and has line break. I tried setting this to my UILabel:
    CGRect cuisineRect = CGRectMake(94, 66, 180, 50);
    UILabel *cuisineStr = [[UILabel alloc] initWithFrame:cuisineRect];
    cuisineStr.numberOfLines = 0;
    cuisineStr.lineBreakMode = UILineBreakModeWordWrap;
    If the UILabel text is higher than 50, it'll be cut off, without word wrap. Is it that I should set the init with position only, without the height and width?

    Try implementing this method:
    - (CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath;
    You'll learn more if you figure out how to use it on your own or with google. If you come up empty, I'll show you some example code.
    -Phil

  • BUG REPORT: Layers with 100% height in timeline knock bottommost layer(s) out of scrollable area

    I have tried to post this twice to the official bug report page, but (somewhat hilariously) the bug report page bounces it back with an internal error about an unknown email address, so I'm posting here too just in case. As I have no idea how to report a bug about the bug report page, I decided I might as well just post the bug here.
    CS5.5/Windows 7 - Verified on 6 different machines, some 64 bit, some 32 bit
    If I have a layer in the timeline that has been expanded to 200% or 300% (via Layer Properties) height, the bottom-most layers gets pushed outside of the viewable area. The scrollbars simply don't scroll that far. I double-checked and this is new since CS4--which still works correctly--so never let it be said that the engineers aren't working on the code! :-/
    Basically, I use this for audio layers, as it is nice to expand them to 200% so it's easier to see the waveform and guess where certain words are ending, etc when doing timeline syncing.
    It can be worked around by expanding the timeline to be tall enough to bring everything into view, so I suspect the bug lies in the scrollable area calculation. However, since space is at a premium, usually I only have about 5-6 layers worth of space allocated to the timeline panel, so this bug hits me quite frequently (since I have all my old projects set up with 200% audio tracks).

    sam wrote:
    I have the same soundcard (or at least the same modules loaded) and I'm getting good volume. 
    Things to check:
    If you have the pcm and main volume all the way up in alsa mixer that should be it.  You may have to adjust the volume separately if you use esd, arts, pulse, or jack (I don't use them). 
    Another thing to test is to make sure your using alsa not oss, and you may want to raise the oss level and see what happens. 
    The final thing is you want to check to see which sound device the audio programs are using (usually found in the preferences).
    If none of that works, then you're out of luck.  It would help if you post what sound programs you are using and what sound daemons you are using.
    Here is my Daemons line from /etc/rc.conf
    DAEMONS=(@syslog-ng @network @netfs @crond @alsa @hal @fam)
    So i would think im using alsa not oss.  but how would i go about raising the oss to make sure?  there is no "oss" option in alsamixer.  I have tried just abuot every audio progream there is and even firefox, all of them produce about half of the maximum volume level.

  • How to setup a gridPane/Table with a customer header/footer

    Hello -
    I'm going crazy trying to figure this one out and any help would be greatly appreciated!
    I'd like to create a table with a custom 4 column header and footer, but with a single cell as the "main" section holding a child table(another gridPanel, I presume). I've been using the headerClass property on the gridPanel, but not sure what this actually DOES. Do I need to use the "facet" tags manually to set up a header row? Basically, I'd like the effect of using graphics to create a "framed" effect for another table. I hope I've explained this okay :) Any thoughts/help would be so appreciated!
    Thanks,
    Tom

    Hello -
    I'm going crazy trying to figure this one out and any
    help would be greatly appreciated!
    I'd like to create a table with a custom 4 column
    header and footer, but with a single cell as the
    "main" section holding a child table(another
    gridPanel, I presume). I've been using the
    headerClass property on the gridPanel, but not sure
    what this actually DOES. Do I need to use the
    "facet" tags manually to set up a header row?
    Basically, I'd like the effect of using graphics
    ics to create a "framed" effect for another table.
    I hope I've explained this okay :) Any
    ny thoughts/help would be so appreciated!
    Thanks,
    TomIn JSF terms, using a Panel Grid component, you can specify a header that goes across the top of the entire grid using a "header" facet. Likewise, the "footer" facet can set a footer that goes across the entire bottom of the grid. You might want something like this:
    <h:panelGrid ... columns="3">
      <f:facet name="header">
        <h:outputText value="This Is The Entire Header"/>
      </f:facet>
      <f:facet>
        <!-- An image across the bottom of the grid -->
        <h:graphicImage .../>
      </f:facet>
      <h:outputText value="Row 1 Column 1"/>
      <h:outputText value="Row 1 Column 2"/>
      <h:outputText value="Row 1 Column 3"/>
      <h:outputText value="Row 2 Column 1"/>
      <h:outputText value="Row 2 Column 2"/>
      <h:outputText value="Row 2 Column 3"/>
    </h:panelGrid>So, the "headerClass" attribute on a PanelGrid sets the CSS style class that will be used; it does not define the content of the header. Instead, you do that by embedding a component inside the facet.
    Creator doesn't currently have any GUI to help you set up the header and footer facets, but you can still add them in the JSP source mode.
    Craig

  • Sliding panels with dynamic heights

    Hello,
    I'm currently working with sliding panels. When I resize my
    panels, the panel indexing system in spry does not seem to conform.
    Ie, if my panels are 100px high. As soon as I dynamically
    change them to 50px, panel(1) is no longer the second panel but
    rather the fourth.
    It appears that spry retains heights of elements. Is there
    something in SprySlidingPanels.js I can call for it to
    'recalculate' the heights?
    Thanks

    I was wrong!
    Spry is indeed clever and retains panel number.
    Doh!

  • CS3/CS4 - Tree view with dynamic height/width

    Hi,
    I have a resizable panel that contains a treeview, when the panel is resized the treeview resizes but I would also like the treeview nodes to adjust their width. For the record, -my treeview nodes contain static text widgets and images.
    Can I hook up some observers and manually resize the widgets when the panel resizes?
    Kind regards Toke

    If your node re-size needs are simple you may achieve it by setting e.g. kBindRight | kBindLeft on the appropriate widgets in the .fr file.  For a complex view I'd extend PalettePanelView to create your own implementations of Resize (adapting the widget widths in there) and perhaps ConstrainDimensions.
    Ian

  • Tabular report with variable-height 2nd line?

    I have a simple tabular (Tablix) report.  The last field is a message (varchar(1000)) which I would like to place by itself on a second line (while still preserving the tabular format), with variable height.  
    The problem is, when I add a second row to the detail region, I can add the message field, but it is limited to the size of the field just above it.  I'm trying to allow that message field to take almost the entire width of the second detail line.  Can
    this be done?  
    Thanks.

    If you add a row inside the Details group, then select all cells inside the details group that are on the new row, you should be able to merge cells by right-clicking and choosing merge cells.
    You cannot merge cells across different scopes (row groups, column groups, etc) so be certain that you are not selecting cells that span different groups.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • CF Report Builder 9: Dynamic Footer Band Height

    Problem:
    I have a coldfusion (.cfr)  and need to be able to either set the height of the footer band or set the bottom margin so that the report can be printed onto custom paper which has pre-printed information in at the bottom of the page.
    Can this be done:
    Is it possible to programically set the Footer Height in report builder or even have the footer band expand with its contents. There are options there called Stretch with Overflow but these don't appear to work on this band.
    Or
    Is is possible to programically set the bottom margin of the report for all pages when I am calling it from coldfusion 9
    <!---Create Report--->         
    <cfreport template="../reports/reportFile.cfr"
              style="mystyle{ defaultStyle: false; font-family:'Arial'; color: ##000000;}"
              format="#reportFormat#"
              query="#reportQ#">
              <cfreportParam name="lblTitle" value="#reportTitle#">
    </cfreport>
    I cannot figure this out. Someone please help!

    Another developer on my team sent me a report that worked and
    I noticed that I had set the Print Order to horizontal when I was
    trying to fix another issue. Changed it back to vertical and it
    works fine. Not sure why that should have mattered, but it works.

  • Download alv report output to excel format with out header line

    Hi experts,
    i want to download a alv report output into excel formatt with out the header line but it has to download including field description. as this output will fed into another transaction, the downloaded excel file should be with out header line.
    fro eg:
    Report   : Zabc                      ABAP Development          Page  :     1
    Run Date : 12/14/06                                                     System: UD400 
    Run Time : 08:45:37
    this header details should not be downloaded into the excel file.
    could somebody help me please.
    thanks
    deepu

    hi jayanti,
    thanks for your response.
    i have delclared all the field types as character but still it is not downloading and it 's sy-subrc is 4... the code is as below.
    *field names
      lt_fieldnames-value = 'Material Number'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Plant'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Group'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Description'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'UOM'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Price Unit'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Type'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'X-Plant Status'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Valuation Class'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_avmng.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_avntp.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Latest PO Qty'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Latest PO Cost'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'PO Creation Date'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_fcaqt.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Prev. Yr. Std. Cost'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_stcst.
      APPEND lt_fieldnames.
      CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          file_name                       = 'XLSHEET'
        CREATE_PIVOT                    = 0
        DATA_SHEET_NAME                 = ' '
        PIVOT_SHEET_NAME                = ' '
        PASSWORD                        = ' '
        PASSWORD_OPTION                 = 0
        TABLES
        PIVOT_FIELD_TAB                 =
          data_tab                        = t_output1
          fieldnames                      = lt_fieldnames
        EXCEPTIONS
          file_not_exist                  = 1
          filename_expected               = 2
          communication_error             = 3
          ole_object_method_error         = 4
          ole_object_property_error       = 5
          invalid_pivot_fields            = 6
          download_problem                = 7
          OTHERS                          = 8
      IF sy-subrc <> 0.
        MESSAGE e001 WITH 'Data could not be downloaded'.
      ENDIF.
    ENDFORM.                               " z_dwn_xl
    thanks
    deepu

Maybe you are looking for

  • My volume button became sound effects, no sound at all

    Can anyone help me with my ipad2, my button volume became Sound Effects label, and my iPad has no sound at all.

  • App update hung

    Internet connection went down in the middle of an app update. Status shows as "installing," but nothing happening. Have forced the App app to quit and have shut down iPad, both to no avail. How to get update process to restart? 

  • CRM 5.0 system / client copy

    Hello, we are running  CRM 5.0 with e-commerce webshop scenario - abap+java system. the systems are configured in a 3 system landscape. the QA and prod system have the same client number. the customer asked to refresh the QA with PROD system. what is

  • Doubt on number_get_next

    hi experts, i am new to abap , i have a requirement that i want to enter data through screen ,i have used tablecontrol , problem is i have to generate serialno(which is my first column field in tc) automatically(one by one),i have gone through the fo

  • Show/Hide controls?

    I'm building a concert of all my "go to" patches...a bunch are B3 kinda things and a bunch are everything else (pianos, synths, splits, etc). What I want to do is have the B3 drawbars visible and working for the B3 patches, but not visible on the oth