[JS CS3/4] How to Insert a page break (^P)  via scripting ?

Hi,
I would like to use that command for placing a pagebreak after a xml element but the string is just considered as plain text.
Is it possible to do so ?
myRoot.xmlElements[0].xmlElements[1].insertTextAsContent ("^P", XMLElementPosition.AFTER_ELEMENT)
I tried \^P but get strange result. The backslash does not appear but the string ^P does.
Any ideas ?
Thanks in advance.
Loic

Hi Loic,
How about:
myRoot.xmlElements[0].xmlElements[1].insertTextAsContent (SpecialCharacters.pageBreak, XMLElementPosition.AFTER_ELEMENT);
Thanks,
Ole

Similar Messages

  • How to insert a Page Break Programatically ?

    Hello,
    How to insert a Page Break Programatically ? Please Help..
    Regards,
    Aanta
    Message was edited by:
    user526601

    Hi Praveen,
    Thanks for the reply...
    I think <?split-by-page-break?> syntax is used in a loop. In my case i need to check the condition.. if its true i need to insert Page break.
    I have requirement Like as follows
    - In the Invoice Print Report I need to display “Invoice Appendix” On the Last Page of an Invoice.
    - If I am running for multiple Invoices then Invoice Appendix should print on last page of each Invoice.
    As I'm using XMLP 5.6.1, i'm unable to use <?start@last-page:body?> syntax. So i'm trying to achive this as i'm explaing below.
    Invoice Header
    Invoice Lines
    end Of Lines
    If Invoice_Appendix_flag = 'Yes'
    ---------------<Page Break>------------------
    New Page(Or Last Page)
    Start Of Invoice Appendix
    End Of Invoice Appendix
    End Of Header

  • How to insert a page break in smartform

    hi all
    i have to print only ten records per page. Is there anyway to insert a page break in smart forms?????

    hi
    To insert a page-break you have to Create a Node Called COMMAND.
    Here you can Specify a Different PAGE as next page if u want.
    Smartforms: protect lines in main window.
    It was easy with SAPscript, but how to do it with SF's. For 4.7 version if you are using tables, there are two options for protection against line break:
    - You can protect a line type against page break.
    - You can protect several table lines against page break for output in the main area.
    Protection against page break for line types
    - Double-click on your table node and choose the Table tab page.
    - Switch to the detail view by choosing the Details pushbutton.
    - Set the Protection against page break checkbox in the table for the relevant line type. Table lines that use this line type are output on one page.
    Protection against page break for several table lines
    - Expand the main area of your table node in the navigation tree.
    - Insert a file node for the table lines to be protected in the main area.
    - If you have already created table lines in the main area, you can put the lines that you want to protect again page break under the file using Drag&Drop. Otherwise, create the table lines as subnodes of the file.
    - Choose the Output Options tab page of the file node and set the Page Protection option. All table lines that are in the file with the Page Protection option set are output on one page.
    In 4.6, Alternatively in a paragraph format use the Page protection attribute to determine whether or not to display a paragraph completely on one page. Mark it if you want to avoid that a paragraph is split up by a page break. If on the current page (only in the main window) there is not enough space left for the paragraph, the entire paragraph appears on the next page.

  • How to Insert a Page Break and Duplicate a Page in Pages 5.1

    Pages 5 deprecated the "Word Processing" and "Page Layout" styles of document creation, but in 5.1, they have returned.
    It seems that the DEFAULT is to "Word Processing," however it is possible to convert the document to a "Page Layout" document: In your open document, click File, then Convert To Page Layout.
    So, for a Word Processing document, one only needs to click Insert and then Page Break, while in a Page Layout document, click Insert and then Page.
    Unfortunately, the Duplicate Page function has NOT returned, but you can still select the entire contents of a page and copy it to a new page. Unfortunately, your perfect page layout won't copy over exactly, and guides don't copy over either.

    Actually, I had an entire page worth of content that didn't change at all, but now that I think about it, that was probably because I had all of my content in boxes.
    And I was careful to specify Pages 5.1 in my post heading to avoid confusion. It is VERY WELL documented that Apple removed loads of features in their new iWork apps - including all over this support forum.
    Your obvious disdain for Pages 5 notwithstanding, the return of the Page Layout mode is a BIG DEAL to me, as Pages was otherwise just a word processor without it. Prevously, upgrading my Pages 4 documents to Pages 5 would render them un-editable.
    So, instead of the seemingly default answer of "delete Pages 5 and use iWork '09" that I saw on just about every post regarding this particular issue, I'm offering a tidbit of information for those who actually want to try and use the current version the way it is.

  • How to insert a page within a document

    I need to insert an additional page within a document without reformatting my layout.
    How do I do that?
    --- So far "Insert" > "sections" > "text page or blank" puts the additional page at the end of the doument.
    Tips anyone?
    (Pages 09 version 4.3)

    Luanne,
    When you Insert a Section from the Add Section tool or the Insert Menu, the new section will be inserted directly after the current section, the section that the Insertion Cursor is in, or the Section Selected in the Thumbnails pane.
    You can't insert a new section in the middle of an existing section, so it goes at the end of a 1-section document, which is what I would guess you have, a 1-section document. What you probably should do is insert a Section Break at the point where yiu want to add a section or page. Or forget about adding a Section and just Insert a Page Break there.
    Jerry

  • How to put Page break in SAP Script

    Hi Experts,
    Please tell me how to put page break in SAP Script. or give some sample code
    looking forward for your reply..
    Regards,
    Kali Pramod

    Hi,
      NEW-PAGE is used to insert a page break ,
      it can be conditional if used between IF..ENDIF
      e.g. /:IF &KNA1-NAME1& = 'XYZname'
            /:NEW-PAGE
           /:ENDIF
      If u want to Page break after displaying certain records or after some condition you use NEW-PAGE
    reward if useful.

  • How to change the page break in adobe forms

    Does anyone know how to change the page break on an adobe form?  I'm hoping it will be the same way you change the page view in excel.
    Can anyone help?
    Thank you in advance,
    Priscilla

    HI
          YOU CAN USE THE FOLLOWING SYSTEM FIELDS OF SMARTFORMS FOR THE MENTIONED PURPOSE
    <b>&SFSY-PAGE& </b>
         Inserts the number of the current print page into the text. You determine the  format of the page number (for example, Arabic, numeric) in the page node. 
    <b>&SFSY-FORMPAGES&</b> 
         Displays the total number of pages for the currently processed form. This  allows you to include texts such as'Page x of y' into your output
    <b>&SFSY-JOBPAGES& </b>
         Contains the total page number of all forms in the currently processed print  request.
    REGARDS
    ANOOP

  • How to create a page break in PDF output

    Hi there
    Does anyone know how to create a page break in the PDF output when using the EXPORT TO PDF command?
    I can create a page break using the page-break-after/before HTML stylesheet command, but this is not "interpreted" when the PDF is generated, and I am required to print each table in my web template on a new page.
    Please ... been searching for ages for a solution to this and can't find anything.
    Cheers,
    Andrew

    Try posting in the iWorks forum.
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • How to add a page in the SAP Scripts

    Hi All,
    I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
    Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
    Please help me out in this.
    Thanks,
    Praveen

    new page will create in sap scripts using new page command.
    you have to set condition like after some number of records displayed in page new page has to be trigger.
    ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
    Here you can use NEW PAGE COMMAND .
    IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
    Reward if useful.

  • How to make a page break in numbers

    The only way I found to make a new page in Numbers was to make new rows down to where the page would break, but it's only letting me add a few new rows to the new page.  I'd like to know how to make a page break without just adding rows.

    Hi Yellowbox,
    Still I'm not convinced, it gives you indeed some advantages but this page break is a great fault.
    All the company is working on Apple, we try even to keep Microsoft away but what when you make a quote of several pages and have to make your lay out at the end, it is a pain in your xxx to make it well.
    We cannot make different tables for each page nor I want to make it in Pages with a Numbers table.
    Secondly, what do you do when you get a Excell offer that you want to bring to Numbers.
    It opens well but again, you need to make all the page lay out afterwards!
    Thanks for yoru reply.
    It won't change my mind about Apple and Microsoft but for timing earning I won't changes all Excel offers to Numbers anymore. Even if I do not want, it would take me less time to work it out in Excel.
    Our own offers will remain in Numbers ...
    It is a pity but time is so important nowadays!
    Nice week-end.

  • How to achieve dynamic page break in Smart form

    Hi
              1.How to achieve dynamic page breaks in Smart forms.
               2.What are the various table types in Smart forms.
    Regards

    <i>Dynamic page break : </i>
    create a node of type COMMAND and in its attributes check "Go to new page".
    <i>There are Tables and Templates in smart forms :</i>
    Use node type <i>Template</i> to display a table whose layout and size (number of lines and columns) is determined before the runtime of the print program else use <i>Table</i>.
    Take a look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf">SAP Smart Forms (BC-SRV-SCR)</a>
    Regards

  • My Microsoft Word inserts a page break when I hit return

    If I press delete to remove the page break, it brings the sentence back into the previous paragraph.  If I hit return again to make the sentence into a new paragraph, as it is supposed to be, the computer/program inserts a page break, vaulting me onto the next page and leaving the previous half-page (or a bit more) blank. 
    Ideas?  I have restarted.
    Thanks.

    Hi c,
    Try the following:
    Select the paragraph following the unwanted page break.
    On the Format menu, click Paragraph, and then click the Line and Page Breaks tab.
    Clear the Keep lines together, Keep with next, and Page break before check boxes.

  • How do I change page breaks?

    How do I change page breaks and margins in Numbers?

    Hi Sharon,
    Margins are set in the Sheet Inspector. These settings determine the closest that your content can come to the paper edges. You can set different margins for each Sheet in your document.
    I have made an edit here, and I mention this in case you saw the original, because I originally mistook your post for a Pages question.
    Sorry it took so long for you to get a reply. I started earlier but had an interruption.
    Regards,
    Jerry

  • Insert a "page break" into web page?

    Creating a certain set of pages for a client's site that will
    primarily be printed by the viewer. Client wants to be able to
    insert functional page break commands at critical spots in a page.
    Anybody got a sweet bit of code to do this simply and reliably?
    Much appreciated --
    Yairah

    Use CSS and the page-break-before/page-break-after styles?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "hrh_abe" <[email protected]> wrote in
    message
    news:ell946$b75$[email protected]..
    > Creating a certain set of pages for a client's site that
    will primarily be
    > printed by the viewer. Client wants to be able to insert
    functional page
    > break
    > commands at critical spots in a page. Anybody got a
    sweet bit of code to
    > do
    > this simply and reliably?
    >
    > Much appreciated --
    >
    > Yairah
    >

  • How to insert Tab Pages into a document

    I have a print job, where I need to insert tab pages into a document. Is there a tab template that I can insert into the Indesign document? If not, how can I create tab pages in Indesign?

    When I used to do tabs I would set up a page that was as wide as the tab sheet including the tab, then add text frames in each tab position.

Maybe you are looking for

  • Developer Studio deployment problem

    Hi All, I'm unable to deploy from Developer studio. Error is 'Server XXX did not accept login request as admin on port 50018'. Looked into the documentation and put an entry in the host file too. but i still have the problem. Studio (2.0.4) Server: S

  • Batch Capture Changes Media Start, End, and Duration

    Hello all... For some reason, when I batch capture from an imported batch list in FCP 4.5, the program changes the media start, end, and duration just slightly once the capture has completed. Does anyone know why this might be occurring?

  • IPhone/iTouch 2.0 software music, vid and photo resume problem

    Hi all, Not sure whether anyone else is getting the same problem or not but I seem to have problems resuming after I installed the 2.0 software upgrade. For example if I am listening to music and I watch a video then return to listening music, the mu

  • Identifying the blocking Lock

    In one of our production DB we are experiencing huge bottlenecks due to locks. I am using OEM lock monitor to detect and identify the problematic lock. I am trying this out randomly as OEM list all the blocking locks. . Most times I am not able to an

  • Iphone 5 "crescent moon" icon always on.

    I noticed this morning the "crescent moon" icon is always on no matter if the Do Not Disturb program/function is turned on or off. All calls seem to be coming through though. I did read some of the other related posts and thought this was suppose to