Different results for PDF and RTF NumPages when using for-each@section

Hello world!

I need to print the current page number and the number of pages for each (say) order.
I use the Page and NumPages fields as well as the for-each@section:order group.

As a PDF, I get what I expect
Page 1/2
page 2/2
Page 1/3
page 2/3
page 3/3

But in the RTF header I
Page 1/5
page 2/5
Page 1/5
...

and in the body
Page 1/1
page 2/1
Page 1/1
...

I would like to have the page numbering in RTF as I in PDF format.
I use Word 2010 and BEEP for Word version 10.1.3.4.2 model generator.
This is the model and the XML: http://dl.dropbox.com/u/709106/page_test.zip.

Thank you in advance.

Sebastian

Published by: user5692810 on 5 March 2012 06:05

Hi Sebastian,.

There is a simple ;) solution:

1. in a form field 'end for-each@section' create a dummy fo block with function "generate - id ().

like this (but in a form field):

 

2. on the page header and page footer uses the id of the current node generated by XSLT

for example like this:

Page:  NumPages: 

3. on the body of the page

Page:  NumPages: 

the model and the XML after above changes is here:
https://docs.Google.com/open?ID=0B_cJOGrr614bc1VES0I0dlNSNGFVWFFseHVQM3hYdw

Andrzej

Tags: Business Intelligence

Similar Questions

  • [REQUEST] Different images for each parent of the field of the tree?

    How can I provide different pictures for each parent/root of the field of the tree?

    I finally understand it.

    This is my code:

       public static class TreeCallback implements TreeFieldCallback {
            // The "drawTreeItem" method is invoked
            // when a treefield item requires painting.
            public void drawTreeItem(TreeField tree, Graphics g, int node, int y,
                    int width, int indent) {
                // Retrieves the user-supplied cookie object
                // for the given node and casts to a string.
                String text = (String) tree.getCookie(node);
                Bitmap b;
                g.setColor(Color.ANTIQUEWHITE);
                // Draws the text of the treefield item.
                if (text.equals("First Parent")) {
                    b = Bitmap.getBitmapResource("your_first_bitmap");
                    g.drawText(text, indent + b.getWidth() + 20, y + 15);
                    g.drawBitmap(indent + 15, y, b.getWidth() + 5, b.getHeight(),
                            b, 0, 0);
                } else if (text.equals("Second Parent")) {
                    b = Bitmap.getBitmapResource("your_second_bitmap");
                    g.drawText(text, indent + b.getWidth() + 20, y + 15);
                    g.drawBitmap(indent + 15, y, b.getWidth() + 5, b.getHeight(),
                            b, 0, 0);
                } else {
                    b = Bitmap.getBitmapResource("your_default_bitmap");
                    g.drawText(text, indent + b.getWidth() + 50, y + 15);
                    g.drawBitmap(indent + 40, y, b.getWidth() + 5, b.getHeight(),
                            b, 0, 0);
                }
            }
        }
    
  • How to acquire of various AI channels simultaneously with a different range for each of them?

    How to acquire of various AI channels simultaneously with a different range for each of them?

    In LabView, I found some examples but in C it is not seem to be any.

    Or you can add channels one by one with individual instructions: the follwing code compilation and runs without error on vitual DAQ hardware:

    ERR = DAQmxCreateTask ("", &taskH); ")
    ERR = DAQmxCreateAIVoltageChan (taskH, ' Dev1/ai0', 'AI0', DAQmx_Val_Cfg_Default,-5,0, 5.0, DAQmx_Val_Volts, "");
    ERR = DAQmxCreateAIVoltageChan (taskH, ' Dev1/ai1', 'AI1', DAQmx_Val_Cfg_Default,-10,0, 10.0, DAQmx_Val_Volts, "");
    DAQmxStartTask (taskH);
    ERR = DAQmxReadAnalogF64 (taskH, 5, 10.0, DAQmx_Val_GroupByChannel, val, 10, & read, 0);
    DAQmxClearTask (taskH);

  • Try to set a different "vision" for each folder in Windows Explorer - I have Window 7

    I have Windows 7.  I'm putting each file in Windows Explorer to a specific view (for example 'list', 'Large icons', 'Détails', etc.) and I want that this point of view to apply to a single file, and I want this file to show in the view selected every time that I access.  And I want to be able to define different views for different folders.  But every time I have to change the view in a given folder, it keeps this view of every folder I open it.

    I clicked on 'Tools', then 'Folder Options', but I don't see anything that helps.

    How to set different views for each individual file?

    Thank you very much!

    G: Samhrutha

    I'm a fool lol.  I realized that I had copied my entire "My Documents" folder by mistake in the 'Documents' library, rather than simply copy a shortcut in my 'Favorites' (which is what I intend to do).  And I had tried to change all my folders by accessing them through the library instead of via the location of origin in 'My Documents '.  And the library does not change the display of each specific case.  This is why the buttons 'Apply to folders' and 'Reset records' shady and would not allow me to push, because I was in the library.

    In any case, it's all good now.  Now that I'm accessing the files from their original location in 'My Documents', it's to let me change the display of each individual file.

    Thank you very much for your help.  Without you me through these steps, I would not have stumbled on the problem.

    Thanks again!
    theokapi

  • How can I create a slide show 100% width, but have the caption in different positions for each slide.

    How can I create a slide show 100% width, but have the caption in different positions for each slide.

    There is placement of the legend only one for all the images in a slide show.

    The slideshow widget is specialized to create slideshows of the image. The widget of composition is a much more flexible widget which allows any combination of images and text in the trigger containers or containers of target of the widget. A widget of composition could be used to create a slide show with several legends by image and/or legends of different places for each image. The disadvantage of the widget of composition is that, due to the nature flexible widget, very little is automated for you and so it is much more intensive work to create a slideshow of images using the widget of composition.

    Thank you

    Sanjit

  • Web Gallery - different caption for each photo - broken?

    It's something I've done successfully with versions before LR2.5 but for some reason that I cannot now create different captions for each photo.  The help page in line said: "to display a different caption or title for each photo, click on the menu of settings customized to the right of title or a legend and choose Edit. In the patterns of text editor that appears, insert the IPTC title or caption metadata element, and then click Done. »

    This does not happen.  If I create a title for the first photo, it appears for all others.  If I change the caption for the second picture, everything changes, including the first caption of the photo.  Is this a new bug, or am I just missing something?

    I can always change the HTML gallery, but it is not an elegant solution, to say the least.

    Help appreciated.

    DN

    Enter the title or caption in the library, in the metadata Panel. And select the items in the grid. The titles that you change apply to the web gallery, not the individual photos.

  • Number of pages for-each@section jump

    I want to make my conditional section, so if the condition is false it should not display the page.
    but when I use for-each@section it gives a page break, even if the condition is false.

    It's my logic model

    <? for-each@section:p0? > <? If: d1! = 'test2 '? >
    <?-foreach: p1? >
    <? D2? >
    <? D1? >
    <? end foreach? > <? end if? >
    <? end foreach? >

    And my data file is

    <? XML version = "1.0" encoding = "UTF-8"? >
    < p2 >
    < p0 > < p1 > < test1 d1 > < / d1 > < d2 > 24 October 08 < / d2 > < / p1 > < / p0 >
    < p0 > < p1 > < d1 > test2 < / d1 > < d2 > 24 November 08 < / d2 > < / p1 > < / p0 >
    < p0 > < p1 > < d1 > TEST3 < / d1 > < d2 > 30 - Jan - 08 < / d2 > < / p1 > < / p0 >
    < / p2 >

    so, now I get just 3 pages while I want to only 2 pages.
    I want to use @section only because I want to reset page number for every p0. I am looking for options in this context.
    any help on this is much appreciated.

    Thank you
    Mouly

    and. / p1/d1! =. / p1/d2

  • Page number will not be reset using for-each@section:

    Greetings,
    I have a page that I try to print from my Bill of lading. I use <? for-each@section:Shipment_Header_S10? > to generate my repeating group and reset the page numbers for each bill of lading (a new is generated for each shipment number). I have 453 pages for this example and the numbering of pages does not reset. In addition, on each page which follows the first, I get this black bar through the space above and a bit more at the top of each page.

    Thanks for the help.

    DVF

    sent the updated model check and let me know. You must keep the each@section code and end for each code outside the table. and if you used @section that you must not use split by a page break.

  • List of deployed applications. Different results for different hierarchies of MBean

    Hello

    When I list deployed applications, I get different results depending on what hierarchy MBean I question:

    • serverConfig():
    wls:/MY_WEBLOGIC_DOMAIN/serverConfig> listApplications() APPLICATION_1APPLICATION_2
    

    • domainRuntime():
    wls:/MY_WEBLOGIC_DOMAIN/domainRuntime/AppRuntimeStateRuntime/AppRuntimeStateRuntime> ls()
    -r--   ApplicationIds                               java.lang.String[APPLICATION_1, APPLICATION_2, APPLICATION_3]
    

    No idea why is APPLICATION_3 in the list?


    Thanks in advance,

    Luis


    PS: if I apply directly to the managed server:

    wls:/MY_WEBLOGIC_DOMAIN/domainRuntime/ServerRuntimes/prodGAD_1> ls('ApplicationRuntimes')
    dr--   bea_wls9_async_response
    dr--   bea_wls_cluster_internal
    dr--   bea_wls_deployment_internal
    dr--   bea_wls_diagnostics
    dr--   bea_wls_internal
    dr--   APPLICATION_1
    dr--   APPLICATION_2
    

    Hi Vijaya,

    Thanks for your reply, yes you are right, my config.xml file I see this request:

      
        APPLICATION_3
        ...
        ear
        ...ear
        DDOnly
      
    

    But now that I read your response, I already rebooted the AdminServer. This new beginning has resolved the problem.

    Thank you

    Luis

  • Directory of different report for each subsequence

    Hello

    My test sequence contains a number of subsequences, representing different tests, which can be run separately.

    When all the subsequences (tests) is selected to be executed by the operator (as "Run selected Tests" and not as a part of "USE Test") I have to save the test report to its specific subdirectory in the reports directory. To do this, I created a variable in StationGlobals, which contains the name of the sub directory and is changed in the configuration section for each subsequence (test), according to the name of the test.

    I am trying to use the following expression as a path to the report file in Report Options:

    "StationGlobals.ReportsDirectory+"\\SN_\\"+StationGlobals.TestSubDirectory+"\\SN_[] []."

    The problem is that the path of the report expression is read before execution of the selected step starts (and the StationGlobals.TestSubDirectory is changed), this is why the report is always saved in the subdirectory of the previously executed test. Any change in the StationGlobals.TestSubDirectory made by the subsequence running will be 'seen' in the next run of one of the subsequences.

    I tried also to change the reports using the ReportOptions Callabck directory, but the same problem stop there as well (is executed before the subsequence selected, changing the StationGlobals, TestSubDirectory to the value of specific test).

    How can I get the name of the subsequence selected for execution in order to build a custom report for this subsequence directory/path?

    Other means will be appreciated as well.

    Roman

    I solved the problem using my custom LabVIEW interface:

    When the report is displayed in the status display window, I send it to a printer. At this point, I read the value of the global variable Station (from TS), which contains the name of the directory in which the report should be saved (this variable has been already changed by the executed subsequence). Then I change the path to the PDF printer, depending on the value of the global of the Station, so that the report PDF file is placed in the correct directory.

  • Two 'sum' s with different requirement for each

    Hello...

    I am trying to create some statistical queries (reports) using the Oracle10g database
    and I was wandering if it was possible for me to create a query "select' with 2 'Sum' function in it to be manipulated under certain conditions.
    Here is my case and I'm trying to do.

    Lets assume that I have a (STUDENTS) table that contains the information for a students of the University as follows

    Students
    -----------------
    stud_no
    between the sexes
    main
    .. .etc

    what I'm trying to do is to get a statistical report for the number of students grouped by the 'major' for each 'sex', there is no training with me using Group By, but I managed to get this way:

    SELECT DISTINCT MAJOR,

    (SELECT COUNT (STUD_NO)
    STUDENTS
    WHERE MAJOR = A.MAJOR AND SEX = am') "MALE_COUNT."

    (SELECT COUNT (STUD_NO)
    STUDENTS
    WHERE MAJOR = A.MAJOR AND SEX = 'f') "FEMALE_COUNT".

    STUDENTS HAS
    ORDER BY A.MAJOR

    Is there a more effective way to achieve the same result? I am so concerned about the problem of performance, as it is so important to the system.
    SELECT  A.MAJOR,
            SUM(CASE A.GENDER WHEN 'm' THEN 1 ELSE 0 END) MALE_COUNT,
            SUM(CASE A.GENDER WHEN 'f' THEN 1 ELSE 0 END) FEMALE_COUNT
      FROM  STUDENTS A
      GROUP BY A.MAJOR
      ORDER BY A.MAJOR
    /
    

    SY.

  • How to choose different sounds for each contact

    It is possible to select the notification sound for each contact email name?

    You can set different sounds for ringtone and messages for each contact independently of the contacts application change a contact and then set the tone that you want under the header of message or ring.

    For email, you can set a single sound of the sounds settings section. It is not possible to set different sounds for notifications by e-mail.

  • How to set a different screen for each user profile resolution?

    original title: Troubleshooting

    Is it possible to have the accounts of differnet with different settings for screen resolutions? This is the problem, I have an Aspire that I am connected to my hd tv. This allows me to have a bigger screen, I need. A significant number of games does not work on 800 x 600. My son went through a whole bunch of options to change the resolution so that I can play these games, but all, apart from the games is smaller than a postage stamp. So if I want to play a game, I can do nothing else until someone can help me to change the resolution. Thank you.

    Judyk

    Right-click on your desktop and click on the screen resolution,

  • Low dependency to start between CARS and VIP instance when using Server Pools

    The CCR, an Instance of database on a node requires a VIP to also run on this node, otherwise, the Instance does not start. This is known in the administration Guide RAC 11 GR 2 as a dependency of good start.

    However, I believe now that server pools and bases managed policy introduced in 11 GR 2, there is now start low dependence means that the RAC Instance on one node can start even if the VIP is not started on the same node.

    Q1. Is this because the VIP may be running on another node in the server for the VIP Pool?

    Q2. So the VIP could be assigned to a Pool which has different nodes that the Server Pool assigned to the RAC database - is - right?

    Q3. I guess that's not say that the Instance of FCAC does not have a VIP before starting, what he said, so that the VIP for this Instance may not necessarily be running on the same node as this Instance?

    Trying to get my head around that! As in the past, that the only reason why a VIP would not not be running on the node for, would be if the node has failed and the VIP was inherited by another node. In this case there are 2 VIP on the same node, supported by the same Instance.

    Q4. Now that we seem to be saying that is a VIP and the associated Instance could be on separate nodes - is that correct?

    any advice greatly appreciated,

    Thanks Jim

    Hi Jim,.

    This is a pretty good example of server pools:

    An Introduction to RAC 11.2 server pools & #8211; All things Oracle

    It is designed as a feature for clusters really big cars, that you divide into pools. And for each pool, you name the amount of servers, you want to have and the candidate. The clusterware chooses server on which to run your instances.

    Yet, even in this case, you should have 1 VIP and 1 listener node by node rac. Saw 2 VIP on a node is only failover and a node without a VIP can support a listener running on the VIP. If the case in your Q3 will not happen even in a server pool.

    You can play arround with resources as it moves to the CCR on a test system with:

    srvctl move h

    the default pool in 11g:

    srvctl config serverpool

    Concerning

    Thomas

  • Unable to apply security restrictions on creating pages templates and page extraction when using password restricted security in acrobat DC

    Hello

    Would appreciate any help with this problem

    I have a pdf file that I want to sell as a downloadable file on my etsy shop. It is work of art that I created with a few boxes of form to add names. I want to ensure that the recipient can print pages and fill in the areas of form but do not want to allow, print edition, page extraction or creating pages of models. I use the password restriction option, print - high resolution, change-deposit form fields and signing existing signature fields. Check the box enable access text for screen reading devices, compatibility for Acrobat 7 and later versions and check her encrypt all the contents of the document. After saving the document restrictions summary looks like this:

    Print: authorized

    Change the Document: unauthorized

    Document Assembly: unauthorized

    Copy content: unauthorized

    Copy of content for accessibility: allowed

    Page extraction: authorized (as this is not allowed)

    Comment: Not allowed

    Filling of form fields: permit

    Signature: authorized

    Creation of the template Pages: allowed (that this is not allowed)

    I can't work on what I am doing wrong? my mac is Yosemite and I try to use Adobe acrobat free trial version DC (for the moment)

    Thank you very much

    Hi Helen,

    I will suggest you to use DRM for it. You can find more information here: (DRM) digital rights development of management plugins | Adobe Developer Connection

    or this: Digital rights management, DRM protection, video content | Adobe Primetime

    Thank you

    Abhishek

Maybe you are looking for

  • After the Macbook to Yosemite 10.11.15 update, it will not stop

    I have therefore updated the latest version of Mac OS x at 10.11.15. During installation, all work fine including the reboot and restart the macbook. But when I tried to stop my Macbook, it will not stop. The macbook has not frozen, but the tab is di

  • Widows 7

    I chose an earlier date in December for my PC settings back. Now my PC looks like its in mode safe and all the fonts & everything is twice the size, and only about half of my screen is used. Microsoft wanted to $99, but I am on disability and my inju

  • Can be upgraded to Windows 8 Pro custom built-in Windows 7 Home Premium?

    My question is I am running Windows 7 Home premium 64-bit upgrade on my custom computer. It is not oem. Buy Windows 8 pro upgrade and it will work because the entire site to pre order enough to pre-order pro versions. Does in 32 and 64 bit. It's goin

  • Installation CS2 Insert Disc 2

    Downloaded CS2, disc 1, 2 and 3 and it seems to have stumbled on a question... I can't drive 2 to work, not to mention Disc 3.Anyone want to explain to me how to make this work, please?I saw a thread about it that never responded because they had ill

  • PresentationObject.dtd for publishers of the attribute

    Hello community,is it possible to have a presentationobject.dtd for publishers to attribute other than the main file and how the XML editor attribute definition will look like?Change the file name and the attribute that is in the DOCTYPE does not wor