CREATE DOCUMENTO IN WORD - OLE

Hi to all
I have the following issue:
I have this code (this is a piece of code), and I need create the document in word (I need that word open it inside of SAP dynpro ) but I need create it with information. With this code, the document is created empty.
data       document    type ref to i_oi_document_proxy.
     CALL METHOD DOCUMENT->Create_document
                    EXPORTING OPEN_INPLACE = 'X'
                              DOCUMENT_title = 'Documento en word'
                              NO_FLUSH = ' '
                              CREATE_VIEW_DATA = ' '.
*CALL METHOD DOCUMENT->open_document
                   EXPORTING
Este metodo permite grabar el documento sin intervencion del usuario
      CALL METHOD DOCUMENT->save_as
                  exporting FILE_NAME = 'C:\test.doc'.
      CALL METHOD c_oi_errors=>show_message EXPORTING type = 'E'.
Can somebody say me, wich is the method or FM, that I can use by create the document, and insert information of the itab or fix information ??
Thanks and regards
Dario

Jorge, thank you for that kind offer. I rebooted my PC and tried again, and now everything is working fine. I suppose that something in the add-in wasn't working properly. But the problem isn't repeating.

Similar Messages

  • Word OLE Automation

    Hi All,
    I have the below scenario.Can any one please suggest a solution.
    I created a variable for OLE object , iole_word_application, and started MS Word with it.
    iole_word_application.ConnectToNewObject("Word.Application")
    Lets say I closed this MS Word instance accidenally, not through automation but manually.
    Now how can I validate through my OLE object variable, iole_word_application,if MS word is still open?
    If MS word is no longer open, I will not try the rest of the automation but will re start MS word.
    Best Regards,
    Kiran

    Thanks a lot for your suggestion Jacob, it helped.
    Now I have the below question as well.
    I have been enhancing my PB application by migrating the DDE operations to OLE operations.
    I could translate most of the DDE commands to OLE but the below.
    We have a DDE call like below.
    ExecRemote("[n=MSWordMacro("Argument to Macro")]", DDE Channel Handle, Window Handle)
    I know how to call the "MSWordMacro" with "Argument to Macro" using OLE.
    iole_word_application.Run("MSWordMacro", "Argument to Macro" )
    But I dont know what "n=" means in the original DDE command and how to convert it to OLE.
    The "MSWordMacro" does not have any return values.
    Can any one help please.

  • Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e

    Good day sir, please i just got an iPAD 4 and I have bee having a serious difficulties performing some operations on it of which  was told it is possible one of which is to create a microsoft word documents on my iPAD the second is attaching a file to y e mail in order too send Also, I have not been able to safe a download files on my iPAD as I do not have a download manager on it. Please, kindly send to me ways of getting these problems fixed as i am a young resarcher who sends a lot of mails and download as wel. Als, I am always on the move as this has propmted me in the first place to get an IPAD .
    Last but not the list II will equally wish to know if it will be possible for  me to use a pen to take seminar notes on my iPAD and safe the same on my iPAD fr later reference as it is done on other tablets ke samsung. I read somethng like stylus pen but I don't know how far. Please, kindly make an appropriate recommendaton for me and where i can get it. I reside in Turkey and currently a Ph.D stuudent in ine of the leading niversities in the country. Also, I will like to know if you ave ecoonomics text books that I can buy or published journas in apple store because i have searched but could not get  a desirerable ones.
    Once again, thanks for your anticipated prompt rely to my mail.
    Regards
    Wasu Fawole

    Have a look at the following:
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1

  • Documents Created In MS Word Can No Longer Be Opened in Pages

    After three months from the date of purchase of a new computer with Mountain Lion, I am now unable to open documents originally created with MS Word that were on my old system.   For the first three months, when I clicked on Word documents, they opened in Pages.  I could edit those documents but had to save them as Pages documents.  Now I am unable to even open previously created Word documents.
    Was there some sort of 90 day "conversion" period where all documents needed to be switched to a Pages format?

    No, there was no time-limiting on that feature, it should still be there. It sounds like you're having a problem with Word files no longer being associated with Pages as the default. I'm guessing that dragging a Word file onto the Pages icon on your Dock would open it... is that correct? If so, select a Word file and choose File -> Get Info. In the Open With section, change the selection to Pages and click the Change All button. (Note that this is assuming that the Word files have the appropriate .doc or .docx extension.)

  • How to prevent public users from creating and saving Word Documents

    I have two public computers available for the public to view legal case documents.  The program used uses the Word shell to save, view and print documents within the program.  The clerk has stated that she does not want attorneys or others to
    be able to create and save word documents on these computers.  Is there a way to prevent a user on the public computers from opening word, creating a document and saving it?

    Instead of installing Word on the public computer (or at least instead of making it available on the public account), you could install the free Word Viewer:
    https://www.microsoft.com/en-us/download/details.aspx?id=4 and make that available for the public account. Alternatively, if you want to ensure the document retains its originally
    formatting regardless of what printer may or may not be attached to the public computer, you could keep only PDF copies of the file where the public can access them and install the free Adobe Acrobat Reader for viewing:
    https://get.adobe.com/reader/.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Problem selecting text in PDF created by MS Word for Mac 2011

    I'm viewing PDFs in Adobe Digital Editions 4.0, and when I try to select text, the text that actually gets selected is 1-2 lines BELOW where the cursor (I-bar) is located.  This makes highlighting text extremely difficult.  This only seems to happen with PDFs that were created in MS Word for Mac 2011 and viewed in Adobe Digital Editions.
    If I try opening the very same PDF file in Adobe Reader, the cursor highlights text just fine.  If I open it in Preview, it works fine too.  It just won't work when viewing the PDF in Adobe Digital Editions.
    System:  Mac OS 10.10 Yosemite
    I have not been able to find any info on this issue anywhere, and if anyone knows a fix or workaround, I would greatly appreciate the help.

    DHodges wrote:
    Thanks; this last reply came closest to 'solving' the issue. While I selected font sub, it at first had no affect on the document.
    I then went back to prefs and set the compatability dropdown from 'Custom' (where it had defaulted) to 'Word 2004-2007', assuming these docs were created from a recent past Windows.
    I 'Saved As' a Word for Mac " .docm "
    Whoa... the extensions mean something. Your original problem (document shows bold, italic, underline, but tables and other complex formatting are lost) sounds as though the document was being exported as a .RTF, a Rich Text Format file. If you save as a .DOCM, that's a Word Macro Enabled Document. Regular Word 2007, 2008, 2010 and 2011 docs are .DOCX. Regular Word 97 through 2004 docs are .DOC. You need to save that document as a .DOCX or a .DOC or you're gonna have problems later.
    - and the documents appear normal (though I had to switch one to 'Portrait' as it for some reason wanted to display in landsacpe.
    Normally you'd have to select page orientation.
    So, poor testing on my part. I have no idea which of the above steps fixed it but I'm guessing the 'Save As' to my version of Word.
    If so, it would appear the 'Compatability' feature was not working at least on these two documents.
    Word's compatibility feature is supposed to ensure that a document you produce is compatible with the target version of Word. If you turn the compatibility stuff on then you will be warned if you are using Word 2007 through 2011 and you use a feature that earlier versions of Word do not have. Microsoft shipped a translator which works with Office 2003 and 2004 and which allows Word 2003 or 2004 to read Word 2007, 2008, 2010, or 2011 documents (.DOCX) and to save them as Word 97 through 2004 documents (.DOC) _as long as they don't have any incompatible features_. Word's compatibility features doesn't do much for .RTFs or for .DOCMs.

  • Dashed Table borders do not render correctly when PDF created from MS word 2013

    I have a defined format for many documents which have all been created in MS word 2007.  Never any problem creating PDFs of  these using ADOBE XI Pro.
    Updated to MS 2013 and now when converting the same doc to PDF all dashed borders around tables render as solid lines. The only time they render correctly is if I PRINT to PDF.  Printing to PDF is not an option as I create batches of many documents at one time, so would be to time consuming.  This was an issue when i considered upgrading 2007 to 2010 a couple of years ago, so caused me to delay upgrade.. upgrade is now required.
    I have a sample of a document if required.
    thanks

    Just as a test, have you tried the MS plugin for PDF creation? I have found with other versions of WORD and Acrobat that PDF Maker and the MS plugin can both fill in dots and dashes on vector graphics (basically what the border is) and yet it comes out correctly with printing to the Adobe PDF printer. Unfortunately I do not have a solution. In my case, it seemed to be related to the vector graphic itself (I could import it to InkScape or other vector graphic tool and save to EMF and it then worked fine. It may be something that MS themselves have messed up in OFFICE 2013. Good luck.

  • Acrobat Pro 9.1 no longer creates PDFs from Word 2007

    I upgraded from Acrobat 7 to 9 specifically to gain more control over settings when making PDFs from Word 2007. This worked as I had hoped until the 9.1 vulnerability upgrade was installed. Now it will no longer create PDFs from Word 2007 documents at all.
    From within Word 2007, when I click on "Create PDF" (whether in the Office menu or Acrobat toolbar) it asks for a file name, but after I click "Save" does nothing. This is true even for the simplest possible document, using the "Default" settings for PDF "Preferences."
    If I right click the file name of the document in Windows Explorer, with Word 2007 closed, and click on "Convert to Adobe PDF" in the menu, it starts and the staus box comes up, but after a few seconds quits and displays "An unexpected error occurred. PDFMaker was unable produce the Adobe PDF."
    I can still "Save As" PDF in Word 2007, but this gives me little control over the format.
    Is there any way that I can get Acobat 9.1 to do what I bought it for, and what Adobe advertises it will do?

    Try printing to the Adobe PDF printer, the more fundamental process (PDF Maker is a preprocessor for the printer). If that does not work, then try with print-to-file selected. Open the file in Distiller and see if the PDF is created. If the latter happens, then check for AcroTray running in the background. It is required to automate the process and is needed by PDF Maker.

  • Creating PDF in Word 2007 creates horizontal line

    Hello,
    This is my first post in this forum. In general, I have not had problems creating PDFs from Word 2003, or from Word 2007 - from either .doc or .docx documents.
    Yesterday, with one document, when I created a PDF, a centered horizontal line kept appearing near the top of the first 2 pages. These 2 pages
    have no header content. This line is NOT in the Word document. The rest of the PDF appears normal - with its normal header content.
    I think the problem is within Word 2007 (what a surprise!) because I can eliminate the problem by printing a .ps file of the Word doc and then
    distilling it.  The only problems with that method are that (1) It's more time-consuming, and - more important -  (2) the bookmarks are not
    automatically created. So, to create bookmarks manually takes even more time, and I don't know how to create the hyperlinks from the TOC
    (or even if that's possible).
    Any idea what's going on?  I tried making PDFs of some other user
    guides (same doc template), and they are fine.
    Many thanks!

    Hi again Raechel,
    It's such fun dealing with Word and "Microsloth", isn't it?!  IMHO, they
    should have left Office alone at the 2003 (or 2002?) versions.... Even at
    2000, styles were easier to deal with!
    Especially after using Madcap Flare for a few years, going back to Word is
    especially torturous.  I go back and forth from one to the other,
    depending on what I'm working on - product-wise or document-wise.
    Your Word certainly may have gotten corrupted, but even if that's not the
    case -- Word is still buggy as hell (forgive the minor expletive)!!
    Glad you made your printing deadline!!
    Regards,
    Melanie
    Melanie Blank
    Product Documentation Specialist
    Rochester Software Associates (RSA)
    (585) 987-6972
    [email protected]
    From:
    Raechel02 <[email protected]>
    To:
    Melanie Blank <[email protected]>
    Date:
    06/15/2011 09:34 AM
    Subject:
    Creating PDF in Word 2007 creates horizontal line
    Melanie,
    I read your post, and decided to spend my evening figuring out what was
    going on.  You are right about it being related to the lines in the header
    and footers, but as my document had no headers and footers, I found that
    odd.  I tried to edit the styles without success.  Now isn't that odd,
    too?
    I had to delete the header and footer styles from my document in order
    to
    get rid of the lines.  I suspect my copy of Word became corrupted as I
    madly
    edited several documents, all with photos.  As my adult son pointed out,
    "well, they don't put their top programmers on Word, after all."  I
    checked
    my memory utilization, and it appears that Word isn't cleaning up after
    itself very well, so it loses track of some of its objects, and things get
    out of synch.
    Well, in the end I managed to re-produce my document, which is good,
    because
    it had to go to the printer last night before midnight, and it got there
    at
    11:40.
    Thanks for your help,
    Raechel

  • HT4168 I have created an 100 page booklet in Pages, with many photographs, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?

    I have created an 100 page booklet in Pages, with many photographs, and much written word, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?....
    Basically what I want to do is publish the document into both an eDocument, and a hard copy document. What is the best way to do this?

    No Peter, this statement came right off the Apple ePub statement when outlining how to use ePub. the full context is:
    Creating ePub files with Pages
    Summary
    Learn how to create ePub files with Pages.
    Products Affected
    Pages '09
    ePub is an open ebook standard produced by the International Digital Publishing Forum. Pages ’09 lets you export your documents in ePub format for reading with iBooks on iPhone, iPad, or iPod touch.
    iBooks supports both ePub and PDF file formats, and you can export both from Pages.
    When to use ePub or PDF
    Use ePub when text is the most important part of your document, for example when you create a book, a report, a paper, a thesis, or classroom reading material.
    More details on using ePubUse PDF when layout is the most important part of your document, for example when you create a brochure, a flyer, or a manual with multiple illustrations.
    More details on using PDF
    Creating an ePub Document to Read in iBooks
    You can export any Pages word processing document to the ePub file format for reading in an ePub reader, such as the iBooks application on the iPad, iPhone, or iPod touch. Documents created in page layout templates can’t be exported to the ePub format.
    Documents exported to ePub format will look different than their Pages counterparts. If you want to get the best document fidelity between the Pages and ePub formats, style your Pages document with paragraph styles and other formatting attributes allowed in an ePub file. A sample document is provided on the Apple Support site that features styles and guidelines to help you create a Pages document that’s optimized for export to the ePub file format, which you can use as a template or a guide. To learn more about using paragraph styles in Pages, see the topics under the heading “Working with Styles” in the Pages built-in help.
    To read your ePub document in iBooks on your mobile device, you must transfer the ePub file that you create onto your device.
    To use the “ePub Best Practices” sample documentTo learn more about using the ePub format and get a better feel for how a Pages document might appear as a book in iBooks, it’s a good idea to download the “ePub Best Practices” sample document. After reading the guidelines and instructions within the document, you can use it as a template to create your own document. You can also import the styles from the sample document into a new document you create.
    Download the “ePub Best Practices” sample document at the following web address:
    http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip
    Do either of the following:Use the sample document as a template.Import the paragraph styles from the sample document into a new or existing Pages document.
    Export the document you create to ePub format to see how it looks in iBooks.
    Preparing an existing Pages document for export to ePub format
    Documents exported to the ePub format automatically appear with page breaks before every chapter. A table of contents is automatically generated, which allows readers to jump quickly to any chapter title, heading, or subheading in the book. In order to create a meaningful table of contents, it’s important to apply appropriate styles within your document. The ePub reader uses the paragraph styles to determine which items should appear in the table of contents for your book.
    Note: The Pages document must have been created using a word processing template.

  • Can't create PDFs from Word due to Cambria font. Help.

    I'm using win 7 32 bit office 2010 acrobat pro 9. I can't create pdfs from word because of problems with cambria. I've ttried all the fixes I can find but none worked. Any more ideas?
    [thread title updated by moderator]

    How are you trying to create the PDF? With AA9 you have to print to the Adobe PDF printer or use the MS plugin.
    When you say you cannot create PDFs because of Cambria, what error messages are you getting and copy them here? At this point we really do not know what you are having problems with or how you are trying to create PDFs.
    In the future, please provide a topic to help folks that are stepping through all of the posts. A blank topic almost led me to simply skip your post.

  • How to open .doc files created with microsoft word 97... when using mac os x 10.7.4?

    hi!  i'm using mac os x 10.7.4 and have Office 2011.  i can no longer open older documents (.doc) created with Microsoft Word 97...  What can i do to get access to these files?
    thanks in advance!

    I had too many of these that I had to convert to a modern format. It isn't easy or consistent but one of these normally works:
    1. Open up Word and use the File/Open command rather than just double clicking on the file. Why does this sometimes work? I don't know! Save in docx format.
    2. Try opening the files in Office 2010 on a Windows machine. Again, immediately save as a docx file. This works more often than the advice above.
    3. Download the free LibreOffice and try opening it there. There will be some format problems but easily fixed. Once again, save in docx format.
    4. Breakdown and look for a dedicated format converter.

  • IPhone can't recognize .docx files create with  Mac Word 2008

    iPhone will not recognize .docx attachments created using Mac Word 2008. It will recognize .docx attachments created in Word 2007 (Windows).
    Please advise?

    This is easily reproducible. I have spoken to Technical Support at Apple. It has been escalated to the Development team. They are working on it. I expect to hear back from them in a couple of weeks.
    I think that it is interesting to see few complaints about this problem posted anywhere. It speaks to the fact that the docx format is not adopted as widely as one would presume. We're going to have to stick to compatibility mode (i.e, doc not docx) until Apple fixes the issue.
    Have a nice day.

  • Trying to create a rotating word cloud

    I'm trying to simulate one of the 3D word clouds you see popping up around the net these days. Here's an example (to the right in the header):
    http://tarasnovak.com/blog/2009/01/12/wordle-beautiful-and-compact-word-cloud-generator/
    What I've done so far is create all the words and then move them back and forth in z space so that I have something looking like a typical word cloud. What I can't figure out is how to get the words to orbit around a central point as well as have the words always facing towards the camera as the cloud itself rotates. I want to animate certain words rotating to the front of the cloud, but have had no luck figuring this out.
    Any help would be much appreciated.
    Thanks,
    Ray

    What I can't figure out is how to get the words to orbit around a central point
    Parent them to a Null object.
    as well as have the words always facing towards the camera as the cloud itself rotates.
    Layer --> Auto Orient --> Toward Camera
    Mylenium

  • Creating links to Word, PDF and Powerpoint files

    I need advice on how to create links to Word, Powerpoint and PDF files in my Captivate project.  How do I also make sure that when my file is published, those links can be accessed by the reader.  I am new to this process.  Thanks!

    Yes. You can place the linked file in your zipped folder. Here is a recommended workflow.
    1. Add a button (Smartshape or regular button) to the slide.
    2. Assign the Open File or URL action to the button. In the URL field, specify the file name (say, Sample.PPTX) which you want to link to.
    3. Click the down arrow button next to the URL field and select New so that the file launches in a new window.
    4. Save and publish your project to a folder.
    5. Go to the published folder and place the linked Sample.pptx file in the folder.
    6. Zip the published folder.
    Absolute Path is where you give the full path of the file's location including the folder structure. For example, C:\<UserName>\Documents\My Adobe Captivate Projects\Sample.pptx. If you use this, then you have to maintain the same folder structure in the published folder as well, which is impractical.
    Relative Path, in this case, is where you just give the file name and make sure that the file is in the published folder. 
    Just Google and you will find several examples of absolute and relative paths. You will even see that you can define sub folders if required.
    Sreekanth

Maybe you are looking for