Problem with 'Filling Space' described in Tim's Blog

Dear Experts,
I am using the Invoice Template described in the excellent Blog by Tim Dexter (Anatomy of a Template) to produce my own version. However, I am having problems with the 'Filling Space' described here: http://blogs.oracle.com/xmlpublisher/2007/03/anatomy_of_a_template_ii_heade.html
My template is almost identical to the example, when I import XML data where there is only one record, the Filling Space does not pad out with enough empty rows so that the Total table is not at the bottom of the page, aligned with the watermark that I have. The code in the 'Filling Space' field is as in the Blog:
<?if:not(count($invLines) mod $lpp=0) and ($start+$lpp>count($invLines))?><?for-each:$invLines?><?if:position()<$lpp - (count($invLines) mod $lpp)?>
If the number of records is greater than half a page or more, then the padding is correct. This is even if, say on the third page there is just one record. Therefore, it seems the padding does not work if the number of records are less than half a page in total.
Is this correct and does anyone have a solution - would be greatly appreciated.
Many thanks,
Mark

"If the number of records is greater than half a page or more, then the padding is correct. This is even if, say on the third page there is just one record. Therefore, it seems the padding does not work if the number of records are less than half a page in total."
This statement is wrong.
Leave the if conditions logic,
This is how it works,..
xml contains 43 rows...
each page you need 10 rows..
after every 10th rows [using position mod 10 ,] , you put a page break...
if the mod returns greater than 0, that means row filler has to come into effect now.
what is the logic now to have row fillers is , 10 - 3 [position mod 10] , comes to 7... so seven blank rows should be inserted..
this is how , it works...
so the statement, saying, less than half of page, or something, wont come into this :).
http://winrichman.blogspot.com/2008/09/limit-row-per-page.html

Similar Messages

  • Problems with filling out PDF forms

    We have problems with filling out PDF-forms. Aotomatic filling of forms is deactivated and we use the Adobe Reader 11.0.05. The problem is: After some time the inputs are wrong put down in the form. For example: I write 120 and in the form stands 125. We have already extinguished the cache. Thanks for your help in advance.

    You will get that first message when the document has been changed in a way that invalidates the internal digital signature that's applied when a document is Reader-enabled. Certain changes are allowed (e.g., filling fields, commenting, signing) and will not invalidate the signature, but others are not. The exact cause of the change is often hard to track down, but it can be due to font problems, some type of file corruption, or something that Acrobat/Reader attempts to correct when the file is opened/saved. You will also get the message if the users system time is not correct and is currently set to some time before the document was Reader-enabled. It seems best to use the most recent version of Acrobat to enabled the documents and recent versions of Reader to work with them.
    It problem is probably not related to the user using anything in the Sign pane.

  • Office Web Apps Server 2013 - Word Web App - Problem with Tab space

    Hello We have Office Web Apps Server 2013 running with SharePoint 2013.  Users Editing a Word document with Office Web Apps, can't use "Tabs", any Word document with Tabs; the tabs are replaced with a single space.
    Has anyone noticed this?  Is this a bug?
    -thanks
    thomas
    -Tom

    Yes, currently the Word Web App does not support
    Tab Keyboard shortcut for editing document content .
    For more information, you can have a look at
    the article:
    http://office.microsoft.com/en-us/office-online-help/keyboard-shortcuts-in-word-online-HA010378332.aspx?CTT=5&origin=HA010380212
    http://social.technet.microsoft.com/Forums/en-US/3f5978d3-67a1-4c8c-981f-32493d72610b/office-web-apps-server-2013-word-web-app-problem-with-tab-space?forum=sharepointgeneral

  • Hello Apple? How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    Have you tried closing all apps via the iPad's multitasking bar and then doing a soft-reset and seeing that helps ? To close all apps :
    iOS 7: double-click the home button to open the taskbar, and then swipe or drag each app's screen from there up and off the top of the screen to close it, and click the home button to close the taskbar.
    iOS 6 and below : from the home screen (i.e. not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Problem with filling nodes of a context with data

    hi,
    i've got the following problem with filling a controller context:
    the context of the controller looks like:
    Context
    |-Node1             0..n singleton
      |-Subnode1        0..n singleton
      | |-SubVal1.1
      | |-SubVal1.2
      |-Subnode2        0..n singleton
      | |-Subval2.1
      | |-Subval2.2
      |-Val1.1
      |-Val1.2
    that means every Element of Node1 should have its own Subnode-Elements & Val1-Values
    in wdDoInit() of the controller I fill the context like this:
    Collection Node1, SubNode1, SubNode2
    for (Iterator iter = Node1.iterator(); iter.hasNext;) {
       newNode1NodeElement = wdContext.createNode1Element();
       newNode1NodeElement.set... //setting the values
       wdContext.nodeNode1().addElement(newNode1NodeElement);
       for (Iterator iter2=Subnode1.iterator(); iter2.hasNext;) {
          newSubnode1NodeElement = wdContext.createSubnode1Element();
          newSubNode1NodeElement.set... // setting the SubVal1.x
          wdContext.nodeSubnode1.addElement(newSubnode1NodeElement);
       for (Iterator iter3=SubNode2.iterator(); iter3.hasNext;) {
          newSubnode2NodeElement = wdContext.createSubnode2Element();
          newSubNode2NodeElement.set... // setting the SubVal2.x
          wdContext.nodeSubnode2.addElement(newSubnode2NodeElement);
    i've got the impression, that <b>all</b> my SubNodes are filled in the <b>first</b> Node1-Element. is there an error in the code above? because in the first place, i see every values in the first Element of Node1-views and if i navigate to the next Element of Node1, every views are empty.
    for every Node (Node1, Subnode1, Subnode2) i've got an own view, that maps its context to the corresponding Node of the controller context, e.g for the SubNode1-View:
    Context                  Context
    |                        ....
    |- ViewNode      --->    ..|- Subnode1
      |- SubVal1.1   --->    ..   |-SubVal1.1
      |- SubVal1.2   --->    ..   |-SubVal1.2
    in these views, i navigate through the nodes via
    wdContext.nodeViewNode().move...()
    in the SubNode1-View i see the SubVal1.1, SubVal1.2 (that's what i want) <b>and</b> additional SubVal2.1, SubVal2.2 (that's what I don't want...)
    kind regards, achim
    ps: i've studied the Master/Detail-Tutorial and i think the choice for cardinality 0..n and type singleton is correct in my case.

    hmm, let's look at the code:
    for (Iteration Node1) {
      newNode1NodeElement = wdContext.createNode1Element();
      wdContext.nodeNode1().addElement(newNode1NodeElement);
      for (Iteration SubNode1) {
         newSubNode1NodeElement = wdContext.createSubNodeXElement();
         newNode1NodeElement.nodeSubNode1().addElement(newSubNode1NodeElement);
         for (Iteration SubNode1.1) {
            newSubNode1.1NodeElement = <b>wdContext</b>.createSubNode1.1Element();
            newSubNode1NodeElement.nodeSubNode1.1.addElement(newSubNode1.1NodeElement);
       for (Iteration SubNode2) {
          newSubNode2NodeElement = wdContext.createSubNode2Element();
          newNode1NodeElement.nodeSubNode2.addElement(newSubNode2NodeElement);
    is there an error in creating the SubNode1.1-Node (bold line)?
    if the code is correct, perhaps it's only a viewing problem:
    i use views that point on every node and display the values in that node. if i move in the view for Node1 to another node, the values for SubNode1 point to the correct values too, but the values for SubNode1.1 still stay on the old values. is the move of a grandfather node not correctly propagated to his first child?
    kr, achim

  • I installed Mavericks yesterday and have now got problems with QuarkXpress 9. Every time I click on an image and try to move it the application crashes. Anyone had similar problems or got any suggestions?

    I installed Mavericks yesterday and have now got problems with QuarkXpress 9. Every time I click on an image and try to move it the application crashes. Anyone had similar problems or got any suggestions?

    Hi Guys
    Updated my 2 imacs to Maverick yesterday. Schoolboy error on my part not checking if there were problems with any programmes before I did.
    Quark is now a nightmare with no short term answer on the way. As a Quark user for over 20 years this is just another reason to hold your hands up and say OK Indesign you win I will have to learn how to use you and Quark will be a distant memory.
    I am told there will probably be no solution to getting quak 9 running on Maverick and that you will need to update to 10 in about 2-3 weeks to get back to normal. Having spent a few bob on 2 versions of 9.5 only in Feb this year i didn't really want to upgrade yet.
    So its cough up to carry on using Quark or learn Indesign.
    I have lost faith in Quark as they are quick to send me e-mails asking me to upgrade to this and that version, why didn't they send one out saying do not upgrade to Maverick. Perhaps they know there loyal follwing will uograde to 10 and will generate a nice little bonus before Xmas.
    Lots to do today and will now take 10 times longer to do it. Is this 2013 or 1974!!!!!
    If anyone hears of a solution please post ASAP

  • I have an iMac OS X 10.6.8 and have problems with the backup Disk for Time Machine disconnecting itself with the message that I ejected it improperly.. It ejected itself - why?

    I have an iMac OS X 10.6.8 and have problems with the backup drive to Time Machine ejecting itself and so does not automatically backup the way it is meant to do. It is connected with an USB cable to my iMac. What could cause this - malfuntioning drive?

    The "iLife" apps are not part of any Mac operating system install and are a separate purchase.
    Once you get past 10.6.6 you can purchase and download iPhoto, GarageBand and iMovie. iWeb and iDVD have been discontinued.
    Snow Leopard 10.6.6 and higher include the App Store application which is what you use to purchase Lion.

  • Sudden problem with fill layers

    I use Adobe Photoshop Elements 11.  Until recently, I've had no problem with fill layers.  I'd make a selection from the photo, then I'd make a layer of the selection, then I'd go to edit, fill layer, fill with background/foreground color.  Then the selection only would be filled.  Now, all of a sudden, I make the selection, make a layer of the selection, go to edit/fill layer/fill with background/foreground color, and the whole photo becomes filled with the fill color, and not just the selection.  I'm always on the selection layer, not the background or any other layer.  I've reset all the tool defaults, and I've even deleted the defaults file, but to no avail.  What's happening here?  How do I fix this?
    Thanks,
    Sue

    Sue and MichelB
    MichelB
    When I tried to help Sue with the inquiry, I was doing so based on what was written and my interpretation of it
    then I'd go to edit, fill layer, fill with background/foreground color.
    For me that Photoshop Elements 11 Full Editor, Edit Menu/Fill Layer and the issue did not fit.
    But if the route were as you have suggested Photoshop Elements 11 Full Editor, Layer Menu/New Fill Layer/Solid Color then everything would fall into place, centering around that option in the New Layer dialog "Use Previous Layer to Create Clipping Mask" being checked or unchecked.
    Sue
    We look forward to your follow up.
    Thank you both.
    ATR

  • Hi. I have got problem with my ITunes. Every time I´m opening the program I´ve got the message: One unkwown problem is appering (-42032) Can anybode please tell me what to do wit this error? Thanks

    Hi. I have got problem with my ITunes. Every time I´m opening the program I´ve got the message: One unkwown problem is appering (-42032) Can anybode please tell me what to do wit this error? Thanks

    Gary,
    discussions may sometimes be slow for an hour or so (at which point the opening page of discussions will eventually apologize for the inconvenience, back on line soon...) but your description looks like a cache problem.
    Try OnyX freeware to do some cleanup and see if that helps.
    http://www.titanium.free.fr/index.html

  • Problem with 4 sparsebundles to a time capsule - running out of room

    hi, if anyone could help me? I am near critical in filling up the time capsule and time machine is not deleting older files within the sparsebundles.
    I have 4 macs backing up to a 1Tb time capsule via time machine. I have only 4.4 G left.
    Theoretically, the time machines for each individual machines should have started deleting once I hit a critical mark. But, it has simply continued filling and I am worried it is going to crash.
    I realized this happend a few months ago when I was keeping docs AND sparsebundles on the timecapsule. but when I called applecare, they guarenteed it was because of the data files and once I had only sparse bundles on the time capsule, there would be no problem.
    Well, the problem has reoccured, and I am no longer covered by apple care.
    My questions are:
    1. I was told once that you could export your sparsebundles directly to a USB drive? Can someone tell me how (from within time capsule). Otherwise, copying requires it go through one of my computers (which I assume would then be done wirelessly and be slooooooow). I can't take it in to the apple store until I have the data backed up.
    2. Am I doing anything wrong? Is there a setting (ie watermark) that I am simply missing?
    Any help would be greately appreciated.

    mchang.to wrote:
    hi, if anyone could help me? I am near critical in filling up the time capsule and time machine is not deleting older files within the sparsebundles.
    I have 4 macs backing up to a 1Tb time capsule via time machine. I have only 4.4 G left.
    Theoretically, the time machines for each individual machines should have started deleting once I hit a critical mark. But, it has simply continued filling and I am worried it is going to crash.
    No, there's no "critical mark" if you mean a certain percentage or amount of space remaining. Time Machine will begin deleting old backups when it doesn't have enough room for new ones.
    If any of your Macs are running Leopard, however, and have the +Warn when old backups are deleted+ box checked in Time Machine Preferences > Options, the backups will fail with a "Backup disk full" message. See #C4 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of the +Time Machine+ forum).

  • Problem with free space on itnernal hdd on mac book pro!

    On the about this mac menu i storage i get 512 gb of backups and if you add all the numbers given for the internal hd the total is 837.88 gb on a 750 gb hd! When i go to finder my macbook pro and get info on the macintosh hd ->get info i get 582 bg free! i have repaird the disk permitions and repaird the disk! but it doesnt seen to work!

    what i want to say is that there is a problem with reading the actual free space from the hard drive....i had 259gb free space and after deleting 100gb + and restarting i had only 100 gb free indicated...!
    these are the values i take at the same time!! they are obviusly both wrong!!

  • Strange Problem With Extra Spaces

    Hello,
    My development staff is experiencing a very strange problem with our JSP pages which display the values from a JDBC result set. We have two environments here: development and production. We have been creating pages in development which work out fine in our development environment. But when we move the page into production, each value which results from the ResultSet getString() method is having multiple blank spaces appended to the end of the value. So, for example, a 5 digit zip code field is really showing up with a length of 8 or 9 because there are extra spaces added to the end of the value.
    We are able to work around this problem by using the trim() method, but this is getting quite tedious to do to every single page in the site. It is very annoying because the problem does not exist in the development environment.
    So you figure there must be a difference in our development and production environments. But there really isn't. Here is the details for both environments:
    OS: Windows NT 4.0
    Web Server: Apache with Tomcat setup as a plugin
    Database: Sybase ASA 6.0.3
    JDK: 1.3
    Apache and Tomcat were installed from the same download on both servers. Sybase was installed from the same CD on both servers - and the JDBC Driver (SybDriver) was copied from one server to the next.
    Sorry for the long explanation - but does anyone have any idea what could be occurring? Why are the extra spaces being appended to the production pages and not the development pages?
    As always, thanks in advance for any suggestions!
    -- Chris

    Hello Paul,
    Thank you for taking the time to analyze this case.
    The data in the system comes from two different sources. The first source is a nightly feed from a legacy system. The second source is user input via the JSP application. The records that were inserted from the nightly feed have an accurate length() value (meaning there is no untrimmed spaces trailing along.) But the values coming in from the application have extra spaces appended to them. In the development environment, however, both sources provide properly trimmed data.
    If I enter an 8 character last name into the web form in the production app, the value which ends up in the database upon submission will have 2 to 3 extra spaces. I know that this sounds strange - and believe me, it is boggling everyone here. I suspect this problem has to do with the Tomcat installation - even though it was installed identically in each server.
    I think we are just going to have live with using the trim() for every database submission. As always, thank you for the help, and all ideas are always welcome.
    -- Chris

  • Problem with itunes and iphoto after time machine restoration

    After an apocalyptic type meltdown in my hardrive the other night, I now have a new one. I have restored as much as I had backed up using time machine when I turned my computer back on for the first time. However in iphoto it lists all the different albums I have, but all the photos come up as grey squares. They are definitely on the computer as you can see them in the iphoto originals folder in the finder window.
    A similar problem with itunes. My itunes library is totally blank, with no songs whatsoever. However the songs are there in itunes music folder.
    How can I restore everything back to normal?
    Matt

    Look at Q15 here. http://pondini.org/TM/FAQ.html
    There are separate sections for iphoto and itunes.
    It has to be so complicated because Apple made TM to do too much and be too many things to too many people.. a horse designed by a committee. It has become flakey in later editions.
    If you still have the iMac you can move the files directly from the source.. you don't need to use TM backups at all.

  • Problem with filling up vector

    Hello,
    i'm having a problem with the following code; when i try to fill up the vector, it overwrites the previous values with the new, so the when i add the second item, the first item becomes the second too. So when i return the vector, all values are similar (the last).
    public Vector getClients(){
    Database singleton = Database.getDatabase();
    User user=new User();
    Vector clients = new Vector();
    try{
    singleton.openConnection();
    ResultSet rs = singleton.getResultSet("SELECT * FROM tblClients");
    while(rs.next()){
    user.setNaam(rs.getString("naam"));
                   user.setVoornaam(rs.getString("voornaam"));
                   user.setNickname(rs.getString("nickname"));
                   user.setEmail(rs.getString("email"));
                   user.setPaswoord(rs.getString("paswoord"));
    System.out.print("user added:" + user.getNickname() + "\n" );
    clients.add(user);
    System.out.println(user);
    singleton.closeConnection();
    }catch(SQLException sqle){
    sqle.getMessage();
    sqle.printStackTrace();
    System.out.print(clients.size() + " users added\n");
    return clients;
    }

    You are always adding the same user-Object to the Vector.
    You should put the command
    user=new User();inside the while-loop to have different objects for different users.

  • CopyRights problem with "expires at the fixed time" uat mode

    Dear all
    I found a problem with rights parameter
    When I use rights parameter in uat mode or umt mode
    it can't be work with this two modes($uat and $umt)
    and I found a document in adobe jp
    the document says "only uat mode works well with expire function"
    so I change the rgihts to uat
    but it still has problem and does not work
    this is part of my ASP VBS code
    startTime=DateDiff ("s","1-Jan-1970",Date())
    endTime=DateDiff ("s","1-Jan-1970",DateAdd("n" , 1 , Now()))
    strQueryParams = oGBLink.AppendToQuery("bookid", pSku, strQueryParams)
    strQueryParams = oGBLink.AppendToQuery("rights", "$uat#"&endTime&"#"&startTime&"$", strQueryParams)
    strQueryParams = oGBLink.AppendToQuery("price", CStr(pPrice), strQueryParams)
    ....and more
    is there any problem with my code??

    I don't see a problem with your code. You might put in a print statement and make sure that strQueryParams contains what you're expecting.
    When you're testing, are you using the same book more than once? If so, ACS can get confused about which voucher to use and use an old one.
    - either use a different book each time
    - or after each test, reset Acrobat or Reader on your test download machine. Adobe has a KB article:
    http://support.adobe.com/devsup/devsup.nsf/docs/53857.htm

Maybe you are looking for