Report - Centre a subreport in the detail section

Hi all
With my Access 2013 DB I do have a Report representing an invoice.
There is a subreport in the detail section representing the items, VAT plus Total amount.
I do have text elements in the footer sections.
I'm looking for the right event and vba code to centre the subreport within the detail section before it gets sent to the printer.
Thanks for any help.
Martin

The best way is position it yourself in design mode and leave it that way. There is the Move x,y fuction and you can also set the subreports left and top positions, but when you start fooling around with positioning objects in code, you are asking for trouble
if users change the report margins or other settings that are printer-dependent. As far as I know, there is no "Centering" ability in code, for form or report objects.

Similar Messages

  • 12.1.3 BI Publisher report not displaying the detail section on first page

    Hi,
    As part of our R12.1.3 upgrade, I designed a Purchase Report as a RTF template.
    Header and footer sections generate fine, but for some reason the detail (text body of the RTF template) does not display on the first page but starts on the second page (this is a PO with many lines). I am using MS Word table to display the detail section.
    Is there something I can check?
    Thanks,
    Sinan

    can you send me your template and xml . i can check at my side .
    email:[email protected]
    there may be some spaces in the beginning .

  • How to fix the height of the details section in crystal reports.

    hi all
    How to fix the height of the details section in crystal reports.

    Thanks for your reply
    i didnt get the clear idea about your answer can you explain it once with example
    why iam asking is when i add a new details section according to you answer maintaining same height of the two details sections and i see the preview the iam getting gap between each record. this is so because one record from details section1 and another empty space from details section2
    like
    Details section A-contains records
    Details section B- no records
    Details section A-contains records
    Details section B-no records
    Then how will i solve my issue
    Thanks in advance

  • How to force multiple columns in the Details section

    Hello,
    My report has a lot of data in the Details section, but it could fit on one page if I could put it in three columns. Is there a way to do this?
    The Details section has setting: Force the new page after certain number of visible records. This would be perfect for me if instead of multiple pages I could use multiple columns.
    Thank you,
    Peter

    Thank you.
    I think I see now how to format the columns.
    Peter
    Edited by: Peter Afonin on Sep 10, 2010 2:34 PM

  • Why I can't set the Detail Section of a form at onLoad event?

    Hi,
    I'm having a silly problem with Access 2010. I can't modify the Detail section ("Corpo" in Italian) of a Form or a Report.
    Neither using the onLoad nor the onOpen events.
    What am I doing wrong? I load a micro example in my
    one drive, if you would spend some time helping me.
    Thanks in advance, Lauro

    Hi,
    I'm having a silly problem with Access 2010. I can't modify the Detail section ("Corpo" in Italian) of a Form or a Report.
    Neither using the onLoad nor the onOpen events.
    What am I doing wrong? I load a micro example in my
    one drive, if you would spend some time helping me.
    Thanks in advance, Lauro
    You should be able to size the detail section of the Form in the open event or onload event.
    I don't have 2010 on my PC. Why not post the sample code here?

  • Fitting alot of fields in the details section [overflow]

    Hi,
    I am trying to create a simple report. I need to place 12 database fields on the report. These are going to go in the "details" section one beside the other. Unfortunately, I have run out of space in the details section and am left with 3 database fields not on the report. Is there a way in which i can fit these fields on the report?
    thanks
    J

    Hi James,
    You may increase the page size by going to File>>Page Setup and select landscape as orientation.
    Another option is to connect to a plotter (printer) which is known to have wide page sizes
    Thanks

  • Master Detail Form - Update Statement for Column in the Detail Section

    Hello,
    I've posted a demo application to apex.oracle.com
    Application# 49298
    Application Name: Street_Inventory
    Basically, on page 3 I have a Master Detail Form. In the Detail section, I want the value of On_hand to save to table ITEMS. Here's my code below.
    SOURCE
    select
    "CONSUME_DETAIL"."CONSUME_DETAIL_ID",
    "CONSUME_DETAIL"."CONSUME_HEADER_ID",
    "CONSUME_DETAIL"."ITEM_ID",
    "CONSUME_DETAIL"."CONSUMED_QUANTITY",
    ("ITEMS"."ON_HAND" - "CONSUME_DETAIL"."CONSUMED_QUANTITY") as "ON_HAND"
    from "CONSUME_DETAIL",
    "ITEMS"
    where "CONSUME_HEADER_ID" = :P3_CONSUME_HEADER_ID
    and "CONSUME_DETAIL"."ITEM_ID"="ITEMS"."ITEM_ID"
    UPDATE INVENTORY PROCESS
    UPDATE ITEMS
    SET ON_HAND = :P3_ON_HAND - :P3_CONSUMED_QUANTITY
    WHERE ITEM_ID = (select     ITEM_ID
    from     CONSUME_DETAIL
    where CONSUME_DETAIL_ID = :P3_CONSUME_DETAIL_ID);
    My code isn't working. What am I doing wrong?

    WReed,
    The first thing I see "off the bat" is that you don't have items named P3_ON_HAND and P3_CONSUMED_QUANTITY which are referenced in your code. Although it's possible to do what you want with just SQL, I updated your code with a little PL/SQL to make it easier to understand...
    As you'll see the problem now is that the design/db model is not quite right as your getting a too many rows error.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Only the Largest number from a field in the details section

    I have one field that contains numbers dictating the number of entries in an assignment i.e. A call can be assigned to one person at a time, and once a call has been dealt with by a person they can close it or resign it to someone else......every time a call is assigned it gets and number.
    So if it is not assigned, then = 0
    Assigned once, then = 1
    Assigned twice, then = 2
    Assigned three times, then = 3
    Etc
    How can I run a report to only show me the details of the highest number?

    Hi,
    Formula for restricting records
    Similiar post..Check it out.
    Regards,
    Salah

  • Filling an array from a field in the details section

    Hi.
    I'm a Crystal newbie. I'm using Crystal 11 Dev. I have some basic understanding of programming but I am clueless as to the organization and syntax used in Crystal scripts.
    Here's what I need to do. (I don't expect anyone to solve this for me, but just a starting point would be great.) I have a field in the details section, let's call it field-A. The details section is under group field, let's call it groupedField-A. For each groupedField-A there are zero to many field-A's which get looped through and displayed in the details section. Instead of just listing the values for field-A in the details section, I would like to display them in a string seperated by commas.
    I figure I need to create an new array for each new groupedField-A, then add the values from field-A to the array as the details section loops through them. Then, I figure I concatenate the array values into a string in the details section or maybe the group header or footer.
    Will this work in Crystal? If so, I need some help with the syntax. OR, is there another way to approach it?
    Any ideas would be greatly appreciated.
    Thanks
    Chuck W.

    hey Chuck,
    instead of using an array you may wish to use a string running total. an array is limited to 1000 values whereas a string running total is 64k.
    details section formula:
    whileprintingrecords;
    stringvar srt:= srt + + ",";
    group header section formula for reset:
    whileprintingrecords;
    stringvar srt:= "";
    group foot section formula for display:
    whileprintingrecords;
    stringvar srt;
    srt[1 to length(srt) - 1]
    hope this helps,
    jw

  • Project Server - Projects does not show up in the detail section of the resource availability view!!!

    Hi,
    I click resource center in PWA 2010 and select a resource; then click resource assignments and a list of projects along with the task which the selected resource is assign is listed. I then click on resource availability and set the date
    option and units for the selected resource and the resource availability and capacity is visible in the details section but not the list of projects that the resource is assign.
    How can I get the list of projects to show up in the details section under the resource name?   
    A. Williams

    Hi A. Williams,
    Could you post a screenshot of BOTH upper (graph) and lower (detailed grid) parts of our resource availability page?
    It would be very weird that you can see workload in the upper part but not in the detailed grid. This is what we need to know to help you:
    Are you not seeing at all the assignments in both graph and detail grid of the resource availability page? In this case the issue comes from your assignment, not from the resource availability page.
    Are you seeing the assignment in the graph but not in the detail grid?
    In case this is an assignment issue, some reasons could be:
    you're not looking at the right period
    date range selection has not been applied clicking on the button "apply"
    the assignments are proposed (versus committed)
    the assignment has not been publish (column publish to "yes" in MS Project Pro)
    the assignment owner is not the resource
    Here is (sorry, it is in french) my upper part (graph) with 1 resource selected, 3 weeks and a 7hrs assignment on the 2nd week (note that you have to apply the date range once selected) :
    Then the lower part (detailed grid) where is have exactly the same information (same assignments, same resources, same date range):
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Seperating the detail sections to start a new page

    I'm using CR XI and I have the main report set up. I want to create a second section containing a seperate set of detail lines. When I insert the section below I now get detail a and detail b. When I do the preview the two sections are combined. I've added the subreport to detail b and tried to find some way to seperate them but nothing appears to say specificially how to do it.
    I just want to have the two details sections seperated and start on seperate pages.
    It's doing this:
      customer id   customer name  customer etc.
      supplier id  supplier name supplier etc.
      customer id   customer name  customer etc.
      supplier id  supplier name supplier etc.
    I want it do this:
    Main Report
      customer id   customer name  customer etc.
    Sub Report
      supplier id  supplier name supplier etc.
    thanks...

    I'm afraid that didn't solve my issue.  I already have information that needs to be in the footer.
    And I'm looking at a report done by someone else and they have 3 seperate detail sections and each section starts on a seperate page, but I can't find what was done to make this happen.  Unfortunately, that person is no longer available here.
    My thinking is that there is a setting somewhere that will allow this type of seperation.

  • Summarization within the details section

    Post Author: Todd Bailey
    CA Forum: General
    I need my report to summarized by a certain field called "asset group".  Examples of this asset group are; Streets, Parks, etc.Other fields include: Total hours, Labor Cost and Equipment Cost Depending on the actual data, more than 1 record could be returned.  For instance I have 5 rows of "Streets" returned because there were 5 instances of "streets" getting billed.How can i display one summarized row of each "Asset Group"?   Thanks,Todd 

    Post Author: SKodidine
    CA Forum: General
    1. Create a group on 'Asset Group'.
    2. Suppress Details Section.
    3. Create Running Totals for each cost that will total for each record and then resets at the change of group.  These are options while creating a running total.
    4. Place the running totals in the group footer.

  • Creating separation lines in the detail Section

    Hi All,
    I've got a database of 500 clients, and after listing out all the clients, i noticed it was difficult to follow the name across all the columns of information. 
    Is it possible to insert lines that span across the page after every entry?
    Thank You,
    Frank

    Your best bet is to use alternating highlights to separate data.
    Try this:
    1. SECTION EXPERT for your details section
    2. COLOR tab
    3. Custom Formula (x-2) for background color.
    4. enter formula without quotes "if recordnumber mod 2=0 then color (230,230,230) else nocolor"
    Colors can be replaced with whatever colors you want (replace "color (230,230,230)" with color name (crYellow) or with another RGB color combination.
    If you still prefer lines, you can try this:
    1. Insert section below on your details section.
    2. Add a line that spans the report.
    3. Resize your new section accordingly to fit the line.

  • Firefox keeps crashing every few minutes. I will paste a small section of the crash reports in the details section.

    <pre><nowiki>bp-dd5ac00c-6a07-44fe-8360-cc6ae2130223 2/23/2013 8:36 AM
    bp-a5f3933a-4931-429f-8359-38d762130223 2/23/2013 8:36 AM
    bp-a16013c5-90d3-4178-9e29-969e72130223 2/23/2013 8:33 AM
    bp-9555789f-b9c0-48d7-a275-823c12130223 2/22/2013 8:38 PM
    bp-2bd9a585-e9de-4f80-9d5d-e603a2130223 2/22/2013 8:38 PM
    bp-9713382b-b898-49e3-a00a-b6f492130223 2/22/2013 8:38 PM
    bp-11387c7d-4a80-4c3d-8b00-1684c2130223 2/22/2013 8:37 PM
    bp-fd7d3e8a-741d-492c-bbc9-492812130223 2/22/2013 8:35 PM
    bp-30f81cab-5a35-40a4-b3ff-919482130223 2/22/2013 8:17 PM
    bp-efeac610-9447-4fbf-8962-03b052130223 2/22/2013 8:12 PM
    bp-9e2b9ffe-a8bb-4665-84f0-2a6902130223 2/22/2013 8:09 PM
    bp-6a7fa3a8-7bce-4a21-8182-6e9722130223 2/22/2013 8:09 PM
    bp-7aefd5fe-d9a1-4bba-a30f-f82d02130223 2/22/2013 8:09 PM
    bp-53aad77b-55e9-4e21-b003-42de62130223 2/22/2013 8:07 PM
    bp-87e2aa57-a1f5-4d42-a739-ee2d82130222 2/22/2013 12:06 PM
    bp-290c5558-aaef-4bb6-ae5c-1ebcb2130222 2/22/2013 10:06 AM
    bp-296620c9-1749-4ec6-a129-b33c02130222 2/22/2013 10:06 AM
    bp-c97d27a2-5b33-4ff3-ac42-583c02130222 2/22/2013 9:50 AM
    bp-c81f8ea7-a73c-432f-8220-14d9e2130222 2/22/2013 8:49 AM
    bp-e7c6fa6c-ad7e-447b-947e-1e0a82130222 2/22/2013 8:48 AM
    bp-5f12e546-5474-47c3-8898-412862130222</nowiki></pre>

    hello, unfortunately this seems to be a crash that is appearing in firefox 19 on windows 8 with AMD Radeon HD 6XXX/7XXX graphics cards - developers are investigating the causes of it...
    the best option probably is to downgrade to the to the former version at the moment until this gets sorted out: [[Install an older version of Firefox]]
    ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/18.0.2/win32/
    the auto-update in firefox 18 for the affected systems is now disabled and will be turned back on when a fix is available.

  • How to print a value at the top of each page in the detail section of a rpt

    Thanks for helping, I will try to get right to the point.
    I have RTF template. Very simplistic template. I have the Group at the top (there is only 1 per XML file) and several DETAIL lines with like 10 columns.
    The first displayed field is "ACCOUNT_NUMBER". The user wished that if the ACCOUNT NUMBER for line 2 was the same as line 1, that it be suppressed, for example:
    Acct No other other other other
    1234 XX XX XX XX
    YY YY YY YY
    This was not a problem, I was able to accomplish it with the following code:
    <?if:position()=1 or ACCOUNT_NUMBER!=preceding::ACCOUNT_NUMBER[1]?><?ACCOUNT_NUMBER?><?end if?>
    But what happens is that IF THE FIRST line on a page has the same ACCOUNT_NUMBER as the last line on the previous page, the ACCOUNT NUMBER is not displayed.
    What I would like is for the ACCOUNT NUMBER to be displayed anytime we are at the first record on a page, AND anytime it is different from the previous record's value.
    I do not know how many lines per page are possible, because there are other line breaks which exist which put a space between lines when values change too. So I cannot just count how many total lines and divide it by lines per page.
    My thought was that there must be a way I could store a variable called LAST_PAGE, and at the end of each record, copy the current page number to that variable. Then in my ACCOUNT_NUMBER code, I could check if current page is NOT equal to last page along with my other conditions.
    1. Is this the best way to do this? If so, please help, I am new to BI and am having trouble figuring out where to put variables and stuff like that.
    2. If not, how can I do this?
    3. If your recommendation is going to be to group my items by Account Number, I may not have time to redo the report that way. I will happily supply the rtf and xml if that will help you help me.
    Regards:
    Michael Coughlin

    Here ya go. Obviously you can duplicate the G_DETAILS blocks to get enough for 2 pages. I have the data pre-sorted before the output is generated because I had trouble getting the RTF to work if I didn't, just so you know.
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Generated by Oracle Reports version 6.0.8.28.0 -->
    <XXDIPICK_RPT>
    <LIST_G_HEADERS>
    <G_HEADERS>
    <SHIP_FROM_ORG_CODE>202</SHIP_FROM_ORG_CODE>
    <LINE_STATUS>Picked</LINE_STATUS>
    <LIST_G_DETAILS>
    <G_DETAILS>
    <SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
    <ACCOUNT_NUMBER>1000</ACCOUNT_NUMBER>
    <DELIVERY_NUMBER>8062</DELIVERY_NUMBER>
    <ORDER_NUMBER>103049</ORDER_NUMBER>
    <CUST_NAME>DIAMOND INNOVATIONS INT SALES - NEWCO</CUST_NAME>
    <DELIVERY_DETAIL_ID>12474</DELIVERY_DETAIL_ID>
    <LINE_NO>1.1</LINE_NO>
    <ITEM_NO>4087401</ITEM_NO>
    <ITEM_DESCRIPTION>HPD M SD-CTO-0 Pot</ITEM_DESCRIPTION>
    <OPEN_FLAG>Y</OPEN_FLAG>
    <CANCELLED_FLAG>N</CANCELLED_FLAG>
    <BOOKED_FLAG>Y</BOOKED_FLAG>
    <ORDERED_QUANTITY>1</ORDERED_QUANTITY>
    <ORDER_QUANTITY_UOM>EA</ORDER_QUANTITY_UOM>
    <SHIPPED_QUANTITY></SHIPPED_QUANTITY>
    <SCHEDULE_SHIP_DATE>2011-01-31T23:59:00+00:00</SCHEDULE_SHIP_DATE>
    <NAME>INTERNAL ORDER - US</NAME>
    <CUST_ACCOUNT_ID>16404</CUST_ACCOUNT_ID>
    <HEADER_ID>6446</HEADER_ID>
    <LINE_ID>7926</LINE_ID>
    <ORG_ID>84</ORG_ID>
    <SHIP_TO_ORG_ID>16050</SHIP_TO_ORG_ID>
    <INVOICE_TO_ORG_ID>16052</INVOICE_TO_ORG_ID>
    <SHIP_SET_ID></SHIP_SET_ID>
    <INVENTORY_ITEM_ID>63927</INVENTORY_ITEM_ID>
    </G_DETAILS>
    <G_DETAILS>
    <SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
    <ACCOUNT_NUMBER>1000</ACCOUNT_NUMBER>
    <DELIVERY_NUMBER>8062</DELIVERY_NUMBER>
    <ORDER_NUMBER>103049</ORDER_NUMBER>
    <CUST_NAME>DIAMOND INNOVATIONS INT SALES - NEWCO</CUST_NAME>
    <DELIVERY_DETAIL_ID>12475</DELIVERY_DETAIL_ID>
    <LINE_NO>2.1</LINE_NO>
    <ITEM_NO>3732307</ITEM_NO>
    <ITEM_DESCRIPTION>NV MBS 2325 Bushing Asm</ITEM_DESCRIPTION>
    <OPEN_FLAG>Y</OPEN_FLAG>
    <CANCELLED_FLAG>N</CANCELLED_FLAG>
    <BOOKED_FLAG>Y</BOOKED_FLAG>
    <ORDERED_QUANTITY>1</ORDERED_QUANTITY>
    <ORDER_QUANTITY_UOM>EA</ORDER_QUANTITY_UOM>
    <SHIPPED_QUANTITY></SHIPPED_QUANTITY>
    <SCHEDULE_SHIP_DATE>2011-01-31T23:59:00+00:00</SCHEDULE_SHIP_DATE>
    <NAME>INTERNAL ORDER - US</NAME>
    <CUST_ACCOUNT_ID>16404</CUST_ACCOUNT_ID>
    <HEADER_ID>6446</HEADER_ID>
    <LINE_ID>7927</LINE_ID>
    <ORG_ID>84</ORG_ID>
    <SHIP_TO_ORG_ID>16050</SHIP_TO_ORG_ID>
    <INVOICE_TO_ORG_ID>16052</INVOICE_TO_ORG_ID>
    <SHIP_SET_ID></SHIP_SET_ID>
    <INVENTORY_ITEM_ID>67865</INVENTORY_ITEM_ID>
    </G_DETAILS>
    <G_DETAILS>
    <SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
    <ACCOUNT_NUMBER>46711</ACCOUNT_NUMBER>
    <DELIVERY_NUMBER></DELIVERY_NUMBER>
    <ORDER_NUMBER>102980</ORDER_NUMBER>
    <CUST_NAME>VAREL EUROPE</CUST_NAME>
    <DELIVERY_DETAIL_ID>12356</DELIVERY_DETAIL_ID>
    <LINE_NO>1.1</LINE_NO>
    <ITEM_NO>11004002</ITEM_NO>
    <ITEM_DESCRIPTION>TYPE I 100/120 MISC</ITEM_DESCRIPTION>
    <OPEN_FLAG>Y</OPEN_FLAG>
    <CANCELLED_FLAG>N</CANCELLED_FLAG>
    <BOOKED_FLAG>Y</BOOKED_FLAG>
    <ORDERED_QUANTITY>75</ORDERED_QUANTITY>
    <ORDER_QUANTITY_UOM>CT</ORDER_QUANTITY_UOM>
    <SHIPPED_QUANTITY></SHIPPED_QUANTITY>
    <SCHEDULE_SHIP_DATE>2011-01-27T23:59:00+00:00</SCHEDULE_SHIP_DATE>
    <NAME>STANDARD ORDER - IRE</NAME>
    <CUST_ACCOUNT_ID>5004</CUST_ACCOUNT_ID>
    <HEADER_ID>6234</HEADER_ID>
    <LINE_ID>7312</LINE_ID>
    <ORG_ID>85</ORG_ID>
    <SHIP_TO_ORG_ID>18929</SHIP_TO_ORG_ID>
    <INVOICE_TO_ORG_ID>4995</INVOICE_TO_ORG_ID>
    <SHIP_SET_ID></SHIP_SET_ID>
    <INVENTORY_ITEM_ID>42032</INVENTORY_ITEM_ID>
    </G_DETAILS>
    <G_DETAILS>
    <SHIP_FROM_ORG_CODE1>202</SHIP_FROM_ORG_CODE1>
    <ACCOUNT_NUMBER>76127</ACCOUNT_NUMBER>
    <DELIVERY_NUMBER>7608</DELIVERY_NUMBER>
    <ORDER_NUMBER>102981</ORDER_NUMBER>
    <CUST_NAME>LION ENGINEERING SERVICES LTD</CUST_NAME>
    <DELIVERY_DETAIL_ID>12357</DELIVERY_DETAIL_ID>
    <LINE_NO>1.1</LINE_NO>
    <ITEM_NO>11004002</ITEM_NO>
    <ITEM_DESCRIPTION>TYPE I 100/120 MISC</ITEM_DESCRIPTION>
    <OPEN_FLAG>Y</OPEN_FLAG>
    <CANCELLED_FLAG>N</CANCELLED_FLAG>
    <BOOKED_FLAG>Y</BOOKED_FLAG>
    <ORDERED_QUANTITY>200</ORDERED_QUANTITY>
    <ORDER_QUANTITY_UOM>CT</ORDER_QUANTITY_UOM>
    <SHIPPED_QUANTITY></SHIPPED_QUANTITY>
    <SCHEDULE_SHIP_DATE>2011-01-27T23:59:00+00:00</SCHEDULE_SHIP_DATE>
    <NAME>STANDARD ORDER - IRE</NAME>
    <CUST_ACCOUNT_ID>5614</CUST_ACCOUNT_ID>
    <HEADER_ID>6235</HEADER_ID>
    <LINE_ID>7318</LINE_ID>
    <ORG_ID>85</ORG_ID>
    <SHIP_TO_ORG_ID>18429</SHIP_TO_ORG_ID>
    <INVOICE_TO_ORG_ID>5605</INVOICE_TO_ORG_ID>
    <SHIP_SET_ID></SHIP_SET_ID>
    <INVENTORY_ITEM_ID>42032</INVENTORY_ITEM_ID>
    </G_DETAILS>
    </LIST_G_DETAILS>
    </G_HEADERS>
    </LIST_G_HEADERS>
    </XXDIPICK_RPT>

Maybe you are looking for