Insert One Word Document into another using OLE ABAP

Hi,
I want to insert one word document into another Word Document called by OLE ABAP.
ie.first word document having 6 pages have been displayed and I want first page of
second document as a 7th page.I want to dispaly the entire data in  one document.
Hope to get the reply soon.
Thanks & Regards,
Divya.

T.code :- DWDM
u can check OLE and OFFICE INTEGRATION tree  have so many demo report
Report :- RSOLETT1
Edited by: Krupaji on Feb 18, 2010 2:00 PM

Similar Messages

  • How to insert one XML document into another

    Hi,
    I've been working on a simple CMS.
    There is a main template that is just a HTML page. The main template has a few extra 'module' tags that indicates places where individual modules have to be placed.
    main template: template.xml
    <html>
    <body>
    <div>
    <module id="centre"/>
    </div>
    </body>
    </html>module template: module_centre.xml
    <div>
    <a>This is a MODULE and it may be much more complex</a>
    <div>My application has to detect every 'module' tag from the template.xml and insert there XML content from a proper module template.
    The result file has to be generated dynamically on a request. The structures of 'modules' can be only defined in module_*.xml files.
    The expected result
    <html>
      <body>
        <div>
            <div>
                <a>This is a MODULE and it may be much more complex</a>
            <div>
        </div>
      </body>
    </html>What's the best practice do solve this case?
    Pawel

    I think I've came up with a better solution.
    SRC file
    <?xml version="1.0" encoding="utf-8"?>
    <html>
      <head>
        <title></title>
        <style type="text/css">
    div.c4 {background-color:pink;width:400px;height:50px}
    div.c3 {background-color:green}
    div.c2 {background-color:blue;width:400px;height:299px}
    div.c1 {background-color:red}
    </style>
      </head>
      <body>
      <module id="XXX"/>
        <div id="main" class="c3">
          <div id="top" class="c1"><module id="menu_test"/></div>
          <div id="bottom" class="c2"><module id="menu_test2"/></div>
        </div>
        <div id="footer_container" class="c4">    <module id="menu_footer"/></div>
      </body>
    </html>MODULE src file
    <?xml version="1.0" encoding="UTF-8"?>
    <div id="admin_panel_module" style="background-color:orange;width:200px;height:50px">
        <p>Control Panel TEST</p>
    </div> @param source  -  NODES from MODULE document
    *@param target - TEMPLATE document where MODULES are going to be inserted*
    @throws Exception
    public static void insertModules(Node source, Document target) throws Exception {
    Node importedNodes = target.importNode(source, true);
    // Use XPath to find all 'module' nodes in ''
    XPath xpath = XPathFactory.newInstance().newXPath();
    NodeList nodes = (NodeList) xpath.evaluate("//module", target, XPathConstants.NODESET);
    // Remove MODULE node and insert there an XML content from MODULE template
    for (int idx = 0; idx < nodes.getLength(); idx++) {
    Node editedModuleElement = nodes.item(idx);
    // parent of module mode
    Node parentNode = editedModuleElement.getParentNode();
    // replace <module/> node with imported nodes from 'module' XML document
    parentNode.replaceChild(importedNodes, editedModuleElement);
    // nodes.item(idx).appendChild(node);
    importedNodes = target.importNode(source, true);
    }Edited by: maestr0 on May 24, 2010 12:44 AM

  • Importing one Pdf document into another.

    I am trying to import one Pdf-document into another using a Reference XObject. I am looking at thePDF- specification, and I thought I was doing things the right way, but its not working. The PDF-specification doesen't have an example of how to do this, only an explanation.
    Below is the PDF-file I am testing with (if anyone can be bothered looking at it   ). The file embeds another pdf-file, and is supposed to show a part of the embedded file at a certain position.
    Again, if anyone can be bothered looking at my PDF and see if they can see what I am doing wrong here I would appreciate it.
    (There is nothing wrong with the embedded file itself...)
    PDF-file embedding another PDF-file and using a Reference XObject to display the embedded file:
    %PDF-1.5
    1 0 obj
    <<
    /Type /XObject
    /Subtype /Form
    /BBox [0 0 100 100]
    /Ref <<
    /F (4fa27162e72547a00771606.pdf)
    /Page 1
    >>
    >>
    endobj
    2 0 obj
    <<
    /Type /Filespec
    /F (4fa27162e72547a00771606.pdf)
    /EF <</F 3 0 R>>
    >>
    endobj
    3 0 obj
    <<
    /Type /EmbeddedFile
    /Length 854
    >>
    stream
    %PDF-1.5
    1 0 obj
    <<
    /Length 334
    >>
    stream
    q
    1 0 0 1 128.10769621539 70.591821183642 cm
    1 0 0 1 0 0 cm
    1 0 0 1 0 0 cm
    1 0 0 1 0 0 cm
    1 0 0 1 -128.10769621539 -70.591821183642 cm
    /DeviceCMYK CS
    1 1 1 1 SCN
    /DeviceCMYK cs
    0 0.89 0.89 0.05 scn
    0.2743205486411 w
    2.743205486411 M
    0 J
    0 j
    -1.9202438404877 -2.6517653035306 260.05588011176 146.48717297435 re
    h
    B
    Q
    endstream
    endobj
    2 0 obj
    <<
    /Type /Page
    /Parent 3 0 R
    /Resources <<
    /Font <<>>
    /XObject <<>>
    >>
    /MediaBox [0 0 255.11811023622 141.73228346457]
    /Contents [1 0 R]
    >>
    endobj
    3 0 obj
    <<
    /Type /Pages
    /Kids [2 0 R]
    /Count 1
    >>
    4 0 obj
    <<
    /Type /Catalog
    /Pages 3 0 R
    >>
    endobj
    xref
    0 5
    0000000000 65535 f
    0000000010 00000 n
    0000000401 00000 n
    0000000568 00000 n
    0000000624 00000 n
    trailer
    <<
    /Size 5
    /Root 4 0 R
    >>
    startxref
    679
    %%EOF
    endstream
    endobj
    4 0 obj
    <<
    /Length 322
    >>
    stream
    q
    1 0 0 1 93.268986537973 71.826263652527 cm
    1 0 0 1 0 0 cm
    1 0 0 1 0 0 cm
    1 0 0 1 0 0 cm
    1 0 0 1 -93.268986537973 -71.826263652527 cm
    55.961391922784 45.628651257302 74.615189230378 52.39522479045 re
    W n
    1 0 0 1 55.961391922784 42.062484124968 cm
    74.615189230378 0 0 55.961391922784 0 0 cm
    /XobjectPDF1 Do
    Q
    endstream
    endobj
    5 0 obj
    <<
    /Type /Page
    /Parent 6 0 R
    /Resources <<
    /Font <<>>
    /XObject << /XobjectPDF1 1 0 R >>
    >>
    /MediaBox [0 0 255.11811023622 141.73228346457]
    /Contents [4 0 R]
    >>
    endobj
    6 0 obj
    <<
    /Type /Pages
    /Kids [5 0 R]
    /Count 1
    >>
    7 0 obj
    <<
    /Type /Catalog
    /Pages 6 0 R
    >>
    endobj
    xref
    0 8
    0000000000 65535 f
    0000000010 00000 n
    0000000144 00000 n
    0000000238 00000 n
    0000001172 00000 n
    0000001551 00000 n
    0000001738 00000 n
    0000001794 00000 n
    trailer
    <<
    /Size 8
    /Root 7 0 R
    >>
    startxref
    1849
    %%EOF

    PDF is a binary format. The most important piece in a PDF file is the cross
    reference table. It contains byte offsets to the different objects in a
    file. If you insert just one space (which in a true ASCII file will not
    change much), you are making all byte offsets after the insertion point
    invalid. They now all point to something different than the start of an
    object.
    Because there is no standard about how line endings are encoded in text
    files, every time may add (or subtract) a byte - depending on what computer
    system and what editor you use to convert your PDF to fake-ASCII, and then
    again what I use to try to convert it back to PDF. If you are using a
    Windows system and I'm using a Mac, the cross reference table gets
    corrupted. And that's even before the web server does it's magic and
    potentially adds data.
    If you want somebody to look at your file.
    Have you looked at the post I linked to? The settings in Acrobat are
    important. You need to enable Reference XObjects, AND you have to declare
    the directory where your target file is stored as trusted.
    From what I can see in your PDF code, you are doing a whole bunch of cm
    operations. You may want to consolidate all those into one operation. I
    have not done a detailed analysis, but you could potentially shift your
    data off the page. Keep it simple and see if that makes a difference.
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    [email protected]
    http://www.khkonsulting.com

  • How to Append two  word documents into single  using   java

    How to Append two word documents into single using java
    we tried this but it's not append the one word document to other
    source code:public class AppendTwoWordFiles {
         public static void main(String []arg)throws IOException
              FileInputStream fi=null;
              FileOutputStream fo=null;
              try {
                   System.out.println("Enter the source file name u want to append");
                   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
                   File f1=new File(br.readLine().toString());
                   System.out.println("Enter the Destination file name ");
                   File f2=new File(br.readLine().toString());
                   fi = new FileInputStream(f1);
                   fo = new FileOutputStream(f2,true);
                   byte b[]=new byte[2];
                   while((fi.read(b))!=-1);
              fo.write(b);
    System.out.println("Successfully append the file");
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              finally{
              fi.close();
              fo.close();
    plz reply me quickly ,,,what can i follow

    Use this code ..
    and give the path of the both file like this.....
    source file ---- C:/workspace/Practice/src/com/moksha/ws/test/practice.text
    destination file ---- C:/workspace/City/src/com/moksha/ws/test/practice1.text
    import java.io.*;
    public class AppendTwoWordFiles {
         public static void main(String[] arg) throws IOException {
              FileInputStream fi = null;
              FileOutputStream fo = null;
              try {
                   System.out.println("Enter the source file name u want to append");
                   BufferedReader br = new BufferedReader(new InputStreamReader(
                             System.in));
                   File f1 = new File(br.readLine().toString());
                   System.out.println("Enter the Destination file name ");
                   File f2 = new File(br.readLine().toString());
                   fi = new FileInputStream(f1);
                   fo = new FileOutputStream(f2, true);
                   byte b[] = new byte[2];
                   int len = 0;
                   while ((len = fi.read(b)) > 0) {
                        fo.write(b, 0, len);
                   System.out.println("Successfully append the file");
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
              } finally {
                   fi.close();
                   fo.close();
    }

  • I dragged a cut out image from one photoshop document into another and now it is blurry. What to do?

    I dragged a cut out image from one photoshop document into another and now it is blurry. What can I do to prevent this?

    What is the resolution of the image that you "dragged"? The resolution is the number in pixels per inch (ppi). If you dragged a significantly lower resolution file into a higher resolution file, it could result in a blurry image.
    see below:
    For further reading of Key Concepts:
    http://www.adobe.com/designcenter-archive/keyconcepts/articles/concept_resolution.html
    You can determine the image size by choosing Image > Image Size
    below you can see the pixel dimensions of my example image.
    Resolution Basics:
    Adobe TV- http://tv.adobe.com/watch/creative-sweet-tv/photoshop-resolution-basics/
    http://tv.adobe.com/watch/visual-design/getting-started-09-resizing-an-image/
    Adobe Help:
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7945a.h tml
    -janelle

  • How to insert a pages document into another pages document?

    How can I insert a pages document into another one?
    How can I insert 1 page of a document into another document?

    Open your files & show thumbnails. Sections have a yellow border around all of the pages in that section. Now click on the page in the thumbnail pane & copy. If the file is more than one page & you only want one, you'll need to insert a section break to separate the pages. Then go to your other file, click in the thumbnail pane & paste. The whole copied page will be pasted in. Repeat with another section. Styles will copy over with the sections but headers & footers will not.

  • How can I [cmd]+A including text boxes? Or how to import one Pages document into another Pages document?

    Hi there,
    I am working on my thesis with several Pages documents (for the first time). And I really have searched all over the Internet to find an answer to exactly my question but I cannot find it.
    First my question was: How can I import one Pages document into another one? I found the answer on that (I think) and there is nothing else than just make a new section and copy/paste it in.
    But then another issue pops up: I cannot [cmd]+A my whole document including the texboxes to paste it in the other Pages document. Then the document will be paste without the textboxes (and I have quite a lot of them in that document) and the text will not be at the right place.
    So please explain to me: How I can combine two Pages documents and keep them exactly the way they are? Is that even possible?
    I thank you so much in advance!

    Hi Fruhulda,
    I have already tried to mark the textboxes in line but that did not work, and besides then the text and the boxes won't be at the rigt places either. Thank you for your reply .

  • Link one solution manager word document into another solution manager HTML

    Hi,
    I have requirement in solution manager that there are two documents uploaded into solution manager.
    1. One word document in one of the project folder
    2. HTML page in another folder of same project
    I have to set up a hyper link of word document in the HTML web page.
    If anyone has gone through this type of requirement, please let me know the details of how did you set up the link between word and HTML document.
    Appreciate the early response.
    Thanks,
    Siva

    Go to the properties of the file you want to link your word document to. (attributes icon)
    There you will find a button "Generate Document URL (F9)". Clicking this button will buffer the URL into clipboard.
    Then you open your Word document in edit mode and paste the URL there.
    source: Inserting a document into another in Solution Manager

  • How do I copy a page from one Pages document to another using Pages 5.0?

    I posted this question on another page, and haven't recieved an answer to it yet. However I have found a temporary solution, so I am posting this here in case anyone else has a similar problem.
    The issue here is that I have just upgraded from Snow Leopard to Maverick (10.9.1), and my Pages also upgraded (to 5.0.1), altering my Pages documents. This is the issue, as as far as I can see the new Pages does not offer some of the basic needs that the old Pages did! In other words it is worse than the previous version.
    Using the upgraded new Pages 5.0.1 seems to result in some major editing problems for me. If you upgrade, make sure you KEEP the old version of Pages 09 (v 4.3). That is what has saved me!  If you have the same problems I have had - explained below, you will still be able to close the new version and open your Pages document in the old version, provided it is not a new Pages document. If it is, it will be possible to export it as a Pages 09 document and edit properly.
    After upgrading to the new Pages 5.0.1, when I open documents in Pages and try and copy a section from one document to another (easy before using the thumbnails) many of the Menu items previously available are visible but appear faded and are not possible, including Insert>Section Break/Page Break/Page Number and Edit>Cut/Copy/Delete/Undo/Redo
    This even happens if I duplicate the Pages document and try and do any of these from the Duplicate (which should be an easily editable copy).
    My solution has been to simply open all Pages documents that Iwant to edit (or may want to edit in future) in the old Pages app (v 4.3), which I never got rid of. That has meant I can continue editing and copying a section (of 1 or more pages) from one Pages document to another.
    If anyone reading this has figured out a way to edit Pages documents using the new version 5.0.1 please post an explanation, and I will try it!

    And there are those who don't like me repeating the same message over and over again in this forum!
    Apple has removed over 90 features from Pages 5.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5, after Exporting your files to Pages '09, and rate/review it in the App Store, then get back to work.
    Peter

  • Atttaching one  word document in another document as Object

    Hi ,
    I was looking for soemthing in java with which I can attach one word document in to another . Can anyone help me with this ?

    Java isn't really the platform to do this with as word files are highly platform specific. If it were possible at all you would have to look at the POI library, but I doubt you will find support even there. You would have more luck in Microsoft's own .NET platform for windows specific stuff.

  • Insert one html page into another html page

    Hi there,
    I wonder if sombody can help. I am trying to insert one short
    html page into another page. I could not find any option or feature
    in Dreamweaver that allow me to insert the page at all. The page I
    want to insert has the links and it is a short page, just like a
    banner. When I update the links on that page it will update all
    other pages in the website. I do not have to open many pages to
    update. I have been using FrontPage and I am now converting to
    Dreamweaver. Some codes from FrontPage does not work in
    Dreamweaver. I would very much appreciate if somebody can help with
    the codes.
    This is my website so that you can understand what I mean. At
    the top of the screen there are many links that are from one page I
    inserted into index.html. I use FrontPage. But, Dearmweaver does
    not work that way.
    Thank you. Kevin

    Be aware that IFrames carry all the disadvantages that frames
    do, for both
    you and your client's visitors.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "polarl light" <[email protected]> wrote in message
    news:g06ad0$2rm$[email protected]..
    >
    >> I wonder if sombody can help. I am trying to insert
    one short html page
    >> into
    >> another page. I could not find any option or feature
    in Dreamweaver that
    >> allow
    >> me to insert the page at all. The page I want to
    insert has the links
    >> and it
    >> is a short page, just like a banner. When I update
    the links on that
    >> page it
    >> will update all other pages in the website. I do not
    have to open many
    >> pages
    >> to update. I have been using FrontPage and I am now
    converting to
    >> Dreamweaver.
    >> Some codes from FrontPage does not work in
    Dreamweaver. I would very
    >> much
    >> appreciate if somebody can help with the codes.
    >
    > Depending on what you want to do you can use SSIs or an
    Iframe. SSIs are
    > good for things such as headers, menus and nav bars that
    you want to stay
    > the same across a range of pages. Iframes let you load
    an external HTML
    > file into a predefined area of your page so you can
    display different
    > content while staying on the same page.
    >

  • How can I copy/paste a page from one pages document into another pages document?

    I have read the directions in the manual, but when I go to the document where I want to put the page the paste function is greyed out.  I assume this has something to do with styles, but can't find what to do. 

    You got it.
    Paste is greyed when we try to paste a page from a WP document into the thumbnails area of a Layout one.
    It's active if we try to paste in the pages area.
    In the document's tool bar, there is an icon with a + symbol at top left.
    In WP documents it's named Sections, In Layout ones its named Pages.
    Yvan KOENIG (VALLAURIS, France) mercredi 26 octobre 2011 17:50:55
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How to insert one document into another in microsoft word?

    I would like to set up a word document such that the document has embedded in it another document shrunk down a bit to make room for additional comments and information which I will add on the side. I've been looking to see if word 2007 has this feature
    but have had difficulty finding it. Is it possible to take an entire document and insert it as a resizeable object into another?
    Some of my research suggests that I might be able to accomplish something of this nature with publisher, and while several people in my office do not have publisher and we'd prefer if it were doable in word, instructions for publisher would be appreciated
    as well if Word 2007 cannot do this.

    Hi,
    Thank you for using 
    Word IT Pro Discussions
    forum. 
    From your description, I understand that 
    you would like to know to how to add a Word document into another Word document in Word 2007, and you can make some comments besides the embedded Word documents.
    If there is any misunderstanding, please feel free to let me know.
     Thank you for your inquiring.
    To insert a Word document to another Word document in Word 2007, follow the steps below:
    =========
    1.      
    In the Word document, click the
    Insert tab.
    2.      
    Click the
    Object in the Text group.
    3.      
    Click
    object. Then click the Create from file tab.
    4.      
    Click the
    Browse button to select the Word document. Also, check the checkboxes before:
    Link to file and Display as icon.
    5.      
    Click
    OK to save the settings.
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything I can do for
    you, please feel free to let me know.
    Best Regards,
    Sally Tang

  • Converting Word Document into Robohelp format

    I am new at Robohelp and have been recently assigned a task to convert several Word documents into Robohelp using version 9 of RoboHelp. Can someone please direct me in the right direction (location, URL, tutorials etc.) to find some step-by-step help, it would be most appreciative

    Hi Michael.
    Rick asked that question because there IS a method of linking a Word file to a Robohelp project and bringing in any changes to them. It was designed exactly for the scenario where a SME or client writes the content and someone else just acts as a kind of content curator. However if you just want to import the Word file, this is fine also but you'll need to understand that once the content is in RoboHelp, the content would need to be changed in Robohelp.
    There is a good tutorial on the benefits of both linking and importing over on Peter Grainge's website (see the link below). This is a very useful resource for all things RoboHelp and well worth bookmarking.
    http://www.grainge.org/pages/authoring/importing/about_importing_linking.htm

  • JTextPane: Insert one (part of) a Document into another

    Hi,
    I am writing a small programm which user a JTextPane and a
    StyledDocument with
    an RTFEditorKit.
    Now I have the problem that I want to get one Document, transport it
    over
    a network and insert it into another Document.
    The only method in Document to insert sth needs a string but I have a
    Document.
    So my question is: How can I insert one Document into another or at
    least append
    one Document to another?
    Thanks
    Frank

    Hi, it is much more simpler than i thaught.
    use the getLength method of the Document-Interface.
    e.g.:
                    InputStream in1; // Streams of your Files
         InputStream in2; // Streams of your Files
         RTFEditorKit rtf = new RTFEditorKit();
         Document doc = rtf.createDefaultDocument();
         try{
             rtf.read(in1, doc,0);
             int x = doc.getLength();
             rtf.read(in2,doc,x);
         }catch(BadLocationException ble){
         }catch(IOException ioe){
         }use this value in the read-method as pos and your second doc is concated to the first.
    Or any other pos you like.
    Hope this is what you are lokking for.
    Greetings Michael
    read
    public void read(InputStream in,
                     Document doc,
                     int pos)
              throws IOException,
                     BadLocationException
        Insert content from the given stream which is expected to be in a format appropriate for this
        kind of content handler.
        Overrides:
           read in class DefaultEditorKit
        Parameters:
           in - The stream to read from
           doc - The destination for the insertion.
           pos - The location in the document to place the content.
        Throws:
           IOException - on any I/O error
           BadLocationException - if pos represents an invalid location within the document.

Maybe you are looking for