Adding sections to a document.

Hi-
I'm trying to add sections to a document. Basically, I'm adding a new page, adding a section, adding a page,...
but when I add the third page, I get the following error: (code generating this error follows the error)
Any thoughts?
Thanks!
============================================================
?ex
{System.Runtime.InteropServices.COMException}
System.Runtime.InteropServices.COMException: {"Error HRESULT E_FAIL has been returned from a call to a COM component."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: Nothing
InnerException: Nothing
Message: "Error HRESULT E_FAIL has been returned from a call to a COM component."
Source: "mscorlib"
StackTrace: " at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at InDesign.Sections.Add(Object Reference)
at Mrll.Typeset.InDesignProxy.IndesignContext.AddPage() in ...
?iddocument.Sections.Count
2
?iddocument.Pages.Count
3
============================================================
and here's my vb code:
Me.IdPage = Me.IdDocument.Pages.Add(ID.idLocationOptions.idAtEnd)
Try
Me.IdDocument.Sections.Add(Me.IdDocument.Pages.LastItem)
Catch ex As Exception
Stop
End Try

So are you trying to add a shipment, Order and Tour as a single add?
So if I added six entries ...woudl the sequence be
ship, order, tour , ship, order, tour .....
OR
ship, ship, ship, ship, order, order, order, order, tour, tour, tour, tour?
Paul

Similar Messages

  • How can I change one section of the document to a landscape orientation and not the whole document?

    How can I change one section of the document to a landscape orientation and not the whole document?

    Page Setup, including page orientation, is done in the File menu. The setting applies to the whole document. As Peter says, you can rotate the contents of a page (not including the text layer of a word processing document).
    As an alternative, you could use Numbers, where Sheets are empty canvases onto which you may place images, charts, tables and text boxes, and where page orientation may be set for individual Sheets. The main tradeoff is that you lose many of the built-in word processing and page layout features of Pages.
    Regards,
    Barry

  • Error Code "-5002" While adding a Goods Issue Document

    Hi,
    While adding a goods issue document for only a specific combination of items I get "Internal Error (-5002) occured" message.
    The scenario is i am adding 5 rows with following specification
    Row1- Serial Managed Item
    Row2- Batch Managed Item
    Row3- Managed by none
    Row4- Batch Managed Item
    Row5- Serial Managed Item

    Hi I had the same Issue,
    What my problem solved was setting the baseline number for each serial and batch number on each specific line to the line number of that specific line.
    like this:
    doc.Lines.SerialNumbers.SetCurrentLine(doc.Lines.SerialNumbers.Count - 1);
    doc.Lines.SerialNumbers.InternalSerialNumber = 2;
    doc.Lines.SerialNumbers.BaseLineNumber = doc.Lines.SerialNumbers.Count - 1;
    Regards

  • I added content to a document in Pages on my Mac last night, which was saved to icloud and this morning it was gone. Can I get my precious work back? Thanks

    Hello
    I added content to a document in Pages on my Mac last night, which was saved to icloud and this morning the additions were gone. Can I get my precious work back? Thanks

    Just thought I'd add my solution, I decided to go with WebDAV and I think it actually works better than the iTunes way, the steps are pretty much the same but avoiding the iTunes interface just makes things easier and faster.
    I followed this guide but it does have a small mistake in the httpd-dav.conf file, on line 2, where it's WebServer/WebDAV">, it should be <Directory "/Library/WebServer/WebDAV">.
    The tricky part is setting permissions which if wrong will give you errors when connecting with the iPad, I opted to set all to Read&Write since my home network has a hardware firewall. Another convenience was to add an alias to the webdav share on the Desktop.
    I'm still expecting the call from Apple but even if they fix the iTunes I'm sticking with WebDAV, atleast until I see what's new with iOS5 and iCloud this fall which should bring true sync for documents (I'm hoping that they will offer encryption with my own keys, if not, then I'll probably keep using WebDAV).

  • How to move sections from one document to another?

    In Pages 08 I could merge two documents by simply moving the sections from one document to the other one. By activating the thumbnail-view you could drag and drop sections. In Pages 5.2.2 that doesn't work. Any suggestions? Copy and paste doesn't work, because the layout is broken afterwards.
    Jan

    You only recourse in Pages v5 (any release) is copy/paste between documents, and its layout consequences; follow Peter's advice, or use a non-Apple word processing solution that allows you to get work done effectively. Apple put dumbnation into Pages v5.

  • How to best take sections from one document to merge with another Indesign document

    I am looking for most efficient way to take a section from one document to merge with a section from another document?  We have a book that needs updating, taking a section from one document to merge into another.  We have typically copied and paste each page, but there are 20+ pages involved.  Does anyone have a better way?

    Open both documents.
    With source document active, In pages panel, select pages that are to be copied to the destination document
    Right Click (or use panel menu) and select Move Pages ...
    Double check that correct page range is noted
    Select destination document
    select where in document pages should appear (beginning, end, after or before page X)

  • Adding More than one document to a cell in a dataform

    Hi All,
    I am using EPM 11.1.1.1.0 .
    I have a planing application and I need to add three documents to a cell in a data form.
    Is there a way i can do this...
    I can add one document and can open it as well but did not find a way of adding more than one document. Is it supported on Hyperion Planning ?
    Also if we have a document attached to a cell text ...Is there a way to print it out from Hyperion Planning or Workspace?
    Regards.
    Alicia
    Edited by: Alicia on Aug 6, 2009 6:39 AM

    Hi,
    I believe it will be just one document, I say that because when you go to the cell and choose open document then it is aimed at opening just one document.
    As for printing from cell text, you would have to open the document first before being able to print.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Webclient does not open previous added versions of bqy documents

    We are running IR/ workspace 9.3.1.3.0401 on weblogic.We have an odd behaviour in opening previous added versions of bqy documents.
    case:
    import a bqy document.
    add another version of this document (make it obvious and simple only a dasboard with a "1" and "2" in a text label should be enough. for this test)
    open the bqy as/ with IR webclient. (make sure this action opens the last added version.
    till so far no problems
    the open the previous version (File> Open > Document> (open as interactive reporting web client/ Version (choos the first or previous version) )
    It does NOT open the previouws version but the last posted version.
    strange is it?
    I opened a case at Oracle for this.
    (trying the same document with ihtml does not give a problem., it shows whichever version you ask for)

    Oracle confirmed this is a bug.

  • Upload of Sections in Word Document into SAP SE38 editor

    Hi
    I was wondering if we can build a ABAP tool which would read different sections within the 'Technical Specification Document' word document and  
    - Create ABAP program in SE38
    - pull content from various sections of Word document under the respective event in SE38
    e.g program could pick up the content written under section '1.1- Input Selection' and have it replicated in ABAP editor before 'Initialization' Event.....
    To make this happen, i am currently struggling to read the content from Word Document. Would apprecaite if you can help /share some light on this subject.
    thanks

    First of all I am wondering who places all the code in techinical documenation. For me it should be just a summary of all things done in the program, so it actually should be created after the report is ready, not before.
    Secondly generating the code from some input stream is highly risky. Word or other applications don't have syntax checker for ABAP, right? So how do you know this coding doesn't dump once loaded to the report.
    Next, dynamic report generation is of course possible with at least two ways, one would be using [generate subroutine pool|http://help.sap.com/abapdocu_70/en/ABAPGENERATE_SHORTREF.htm] but it would require whole program to be self-written not just part of it. Another way with [READ REPORT|http://help.sap.com/abapdocu_70/en/ABAPREAD_REPORT_SHORTREF.htm]  and then insert your part using [INSERT REPORT|http://help.sap.com/abapdocu_70/en/ABAPINSERT_REPORT_SHORTREF.htm]  but this is also not a convenient way of changing the report unless you do this deliberately and totally aware of the consequences.
    As for reading Word you can use OLE or [Desktop Office Integration|http://help.sap.com/saphelp_nw04/helpdata/en/e9/0be7b9408e11d1893b0000e8323c4f/frameset.htm]. For the latter you might look at package SOFFICEINTEGRATION .
    To sum up, although technically possible there is no quarantee you will have the code proper in your document so inserting it in some program might be disaster in consequences.
    Regards
    Marcin

  • MS word It prints one file for each section of the document

    With MS word (2004 and 2008)It prints one file for each section of the document.
    somebody can help me with that????

    Please post Office related questions on Microsoft's own forums for their Mac products:
    http://www.officeformac.com/productforums

  • My audiobooks keep stopping at about 8mins. Only the older audiobooks in the audiobook section. Not the newer ones if played from Purchased or Recently Added sections. What can I do?

    My audiobooks keep stopping at about 8mins. Only the older audiobooks in the audiobook section. Not the newer ones if played from Purchased or Recently Added sections. What can I do? Thank you.

    have you ever copied those audio books in another location and played in your computer? May be the audio book file is corrupted. give it a try.
    have a nice day.

  • Deleted the recently added section from the source area how can i add back

    how can i add back the recently added section from the source without reinstalling itunes thanks in advance....
    insp 8100   Windows XP  

    Ok that is easy.
    1) File > New Smart Playlist.
    2) Make sure match the following rule is checked
    3)The first drop down change to date added.
    4)Set the second drop down setting
    5) Enter the number you want based on step 4
    The rest of the check marks are up to you but make sure "Live Updating" is checked.
    Take some time playing around with the smartlists. I love them!! I have a 2 level smartlist at work, I hardly use the regular playlists.

  • Achieve the tab order for dynamically added section

    Hi friends,
    I'm facing the issue with tab order.
    How to achieve the tab order for dynamically added sections?
    Could you Plaese suggest me in this.
    Thanks,
    Susila S

    Hi,
    Thanks for your reply.
    Ya. I'm adding rows in a table dynamically which is grouped in a subform which is flowable and the buttons are placed in the same subform. At the end of the row I'm having the hidden fields.
    So what I want is without focusing the tab on hidden field I want to traverse the first field of the next dynamic row. For that I have used the access property as protected on hidden field, but its not working properly.
    Please help me on this ASAP.

  • Cannot access the just added section for music

    everytime i click on the just added section for music it shows an error message. i have been unable to access this section for a week. have tried on my home computer and work computer, what gives????

    I predict that, if there are many people out there who search for music like I do each week by genre, iTunes will take a big hit in sales as a result of this change. I found some new albums this week on another site, went back into iTunes to search for them and lo and behold they were there. If I had not looked at that other site, I would not have found them on iTunes because they were not in the new music section this week. I am really disappointed by this change. iTunes had a great thing going, but boy they messed it up. Unfortunately, there is no other site that even comes close.

  • When I copy a section of a document or email and copy within the text where does my Mac store it.

    I have a mac desktop and I am using OS X Yosemite
    When I highlight in Blue a section of the document I want or email I tap and get a window that allows me to COPY that highlighted section but can't find where it is saved so I can retrieve it.My friend told me his goes to CLIPBOARD which I don't have.

    The Clipboard is hidden by default.
    http://www.dummies.com/how-to/content/the-clipboard-and-os-x-yosemite.html
    Usually when you copy something you can immediately paste it by performing the same action as before, and choosing paste.
    Alternatively you can use the keyboard shortcuts, command + c to copy and command  + v to paste.

Maybe you are looking for