ABAP OLE Word for reading a file

Hi,
I am looking for the method or property to get the word document content to send it to the clipboard.
All I found an OLE is for writing but not for reading and I need it to read a file.
Someone got an idea?
Thanks a lot.
David

Hi David, the ad on top sucks.
it's already almost 10 years old but SAP did not develop anything new un this area (as far as I know),
[Desktop Office Integration (BC-CI) H|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf]
copy_selection
You use this method to copy marked text from the office document to the clipboard:
CALL METHOD document->copy_selection
EXPORTING no_flush = no_flush
IMPORTING error = error
retcode = retcode.
paste_clipboard
You use this method to insert the contents of the clipboard at the current cursor position. The
clipboard contents are inserted as fixed text; there is no link to the object:
CALL METHOD document->paste_clipboard
EXPORTING no_flush = no_flush
IMPORTING error = error
retcode = retcode.
select_all
You use this method to mark all text in the office document.
CALL METHOD document->select_all
EXPORTING no_flush = no_flush
IMPORTING error = error
retcode = retcode.
I hope you were looking for this.
Regards,
Clemens

Similar Messages

  • Open data set for reading excel file on application server in back ground

    open data set for reading excel file on application server in back ground

    hi Vijay,
    I am afraid you won't be able to read from Excel file on Appl. Server.
    ec

  • Customised module for reading Excel files.

    Hi Gurus,
    I have to develop a customsed java module for reading Excel files from PI. I downloaded NWDS 7.31 from following location NWDS Download links - Java Development - SCN Wiki. I have installed it on my local laptop. For developing the module I need following Jar files.
    com.sap.aii.af.ms.svc_api
    com.sap.aii.proxy.svc_api.jar
    com.sap.aii.sec.svc_api.jar
    com.sap.aii.utilxi.server.jar
    com.sap.aii.utilxi.core.jar
    com.sap.xi.mapping.tool.lib_api.jar
    sap.com~tc~bl~txmanagerimpl~plb~impl.jar
    sap.com~tc~je~appcontect_api~API.jar
    com.sap.aii.af.cpa.svc.api
    com.sap.aii.af.lib.mod
    com.sap.aii.af.ms.ifc_api
    com.sap.aii.af.svc_api
    com.sap.xpi.ib.mapping.lib
    1. Where can i get these jar files. I checked these files in my downloaded NWDS 7.31  package, but cold not find them.
    Thanks in advance

    Hi.
    Check this thread.
    Where to get the libraries for XI development - Process Integration - SCN Wiki
    Regards
    Lucho

  • How to create a method for reading a file

    i tried to make it as static method for reading a file and
    then to return string
    is this code correct?
              public static String fileMaterial(String fileName)
                   fileReader = new BufferedReader(new FileReader(fileName));
                   info = fileReader.readLine();
                   while(school != null)     {                    
                        return info;
                        info = fileReader.readLine();

    I created a class you might want to look at. I come from a world of C and love fgets() and other FILE stream functions. I created a class that uses the Java I/O buts to the calling application behaves like fgets and such. The block of code where I do the calling in the calling program even looks like C. In my class I capture almost all errors and set error buffers to the errors. The calling program looks at the return to see if it succedded or errored.
    BuffIO new = BuffIO.fopen("fiilename", "r");
    String s;
    if((s = new.fgets()) == null)
    System.err.println("error reading file: " + new.ferror());
    That would be waht the calling program does

  • How do I make Adobe Reader NOT my default program for reading pdf files?

    I installed Adobe Reader and made it my default program for reading pdf files.  I'd like to undo that and go back to "preview" as my default.

    Sure you are following instructions:

  • Java API for reading Excel Files.

    Hi,
    Can you please suggest me any api for reading excel files.
    Right now i am using jxl.jar for this purpose but i am searching for an open source java api better than this.
    Whether POI gives better than this ?
    Thanks,
    Amit Shah.

    Can you please suggest me any api for reading excel
    files.
    Right now i am using jxl.jar for this purpose
    but i am searching for an open source java api better
    than this.
    Whether POI gives better than this ?i don't know about jxl but poi has several features which an excel can contain and it has been vastly improved in the past few versions.

  • HT5878 how to check the detail of font being used for reading the file received by an email

    I received word file as an attachment with email on my iphone. I want to check the detail on font being used for reading the word file received as attachment in an email.
    Thanks

    You don't need to copy the cert out of your configuration. OpenSSL has an "s_client" subcommand which can open an SSL connection and verify the cert for you. It even knows how to do STARTTLS. Something like this ought to do it:
    openssl s_client -starttls smtp -CAfile /path/to/ca/file -connect your.ironport:25
    The /path/to/ca/file is necessary to provide openssl with a cache of root CA certs. You could use -CApath instead of -CAfile if you have a hashed directory of root CA certs instead of a single file containing them all.
    You can also point this at your partner's SMTP server as well.

  • ABAP OLE Word - Delete last page

    Dear all,
    I have a SAP program which prints some documents in Microsoft Word by using ABAP OLE Objects.
    I use a template to take the main context, and after that I send some variables in order to populate the word document.
    The problem is when I create the new word document, I paste the template text in a new document, but at the end I have always an empty page. I don't know how to delete this final page, I don't find the corresponding OLE method to do it.
    I have found a method to cut a line, but the problem is that line is also empty, and I cannot cut it.
    Could anyone help me?
    Many thanks in advance and best regards.

    Hi,
    post some code lines. Format as code, use preview.
    Regards,
    Clemens

  • Api for reading .cfg files

    Hello everyone,
    Once I saw an api for reading typical .cfg files, in which ## are comments, [xx] are labels... Now I need to use it but I don't remember the api any more.
    Can somebody tell me which class do I have to use?
    Thanks a lot

    Now I need
    to use it but I don't remember the api any more.http://java.sun.com/docs/
    There is nothing that I'm aware of in the api that has the same functionality as MFC GetPrivateProfileString(...)
    You could use a properties files like most other people, otherwise you are going to have to implement it yourself.

  • Why no simple method for reading text files

    I'd like to know, after all this time why there is no simple method of reading ext files into a string.
    Yes, yes, I know all about buffered readers, (it took me long enough to figure them out) but they are cumbersome and seem to change every release (how many file methods have been deprecated...)
    Here's what I'm looking for:
    file.open();
    file.read(String);
    file.close();
    No single character at a time, no loop - the whole file into a single string in one shot. If buffers are used, i want it hidden.
    Perl, PHP, VB, C# all have this. Even Java has it when you write to a file.
    So why not on read?
    Yes, buffered streams are very elegant, but for what most programmers want to do, they are overkill and annoying.

    Just Dennis Ritchie's little joke.
    Do you have a better reason for wanting the feature
    other than that some other languages have it?Yes. It would save me time and help dozens of new programmers who continually ask this question in this and other forums. It is in other languages because people use it and want it - clearly Jarkata saw the need. If you don't like the idea, then I won't argue the point. We agree to disagree.
    Also did you have an answer for my question?in java.io.file you can do the following: (i've used it, it works) Granted, you still have to use the buffered output streams, which in my opinion should be abstracted for a simple text read and write.
    BufferedWriter outputStream = new BufferedWriter(new FileWriter(fileNewPath));
    outputStream.write(fileContent);
    outputStream.close();

  • Design for reading mutiple files

    hi , my problem statement is i have to read multiple files at same time and send the content to a C++ system using socket connections. only solutions i am able to think is using executor and other classes from java concurrent api. is there any other options like using session beans or jms for solving the problem. because in future we will be changing C++ system to java

    hi , my problem statement is i have to read multiple files at same time and send the content to a C++ system Make a class called TaskFileReader which implements Future; this class is specializing in reading a file.
    submitt your TaskFileReader into an executor by looping through the file set ( different files) and add all the future into a collection
    Now you will get notified once the task is being process ( if you do not want to add the futures into the collection and loop through them after submitting them to the executor) so that you can get a call back ( look at Future documentation)
    In your call back you open a session ( socket ) with the C++ server and make your conversation of the returned data with a seperate thread or you can
    try to get the future result in the conversation thread which will block until the result is back and then you can proceed
    Regards,
    Alan Mehio
    London,UK

  • InDesign CC slows down significantly upon placing a Microsoft Word for Mac 2011 file

    I'm running the latest Mavericks OS on a brand new iMac 27" 3.5 GHz Intel Core i7 computer with 32 GB RAM. The slowdown occurs even if ID is the only app running.
    The Word files consist mainly of text which are typically book maunscripts. It doesn't seem to matter whether the files are large or small. They all cause ID to slow down. We want to import the Word files so as to preserve mainly any italics.
    Once the ID document contains a placed MS Word file, the slows are apparent mainly in:
    Selecting a text box: 20-30 sec lag waiting for the beachball until it selects
    Clicking to place the insertion mark: an additional 20-30 sec
    Placing an image file: 20-30 sec for the import dialog to appear, 20-30 sec after the open button is clicked for the selected image to appear on the page
    We've tried uninstalling ID CC via the script in the app folder.
    We've also completely uninstalled MS Word follow MS's instructions, and reinstalling Word.
    We've cleaned up our fonts with Extensis' Font Doctor.
    We've deleted fonts we don't use.
    One of the main reasons for buying the new iMac was to hopefully benefit from the enhanced processing power, additional RAM, and clean installs of the software.
    What else can we try?
    Page layout for books using ID CC with Word is the bulk of our work and we need to resolve this matter ASAP.

    Thanks for the info, Bob. We've been Adobe pro customers since '87 and have been through a number of such hardware/software "leapfrogs." We basically love the CC products and the new Macs and Mavericks, so we're looking forward to the updates.

  • Photoshop CS4 will not read Raw files from Nikon D60. [was: No automatic updates for my PS CS 4  on windows (for reading .Nef files)?]

    Hi
    I have been using PS CS4 for several years.
    Yesterday, I went to PS CS4 help and selected "updates", but I get the message "There are not updates available at this time; Please note that some updates for the following products cannot be determined at this time: Adobe Updater".
    I need the updates because I just purchased a Nikon D60 and my Photoshop does not read the .NEF files produced by the camera.
    any idea, please?
    thanks

    I need the updates because I just purchased a Nikon D60 and my Photoshop does not read the .NEF files produced by the camera.
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    Do you really mean the Nikon D60 which shipped in 2008? Was it purchased secondhand?
    The Nikon D60 was first supported in Adobe Camera Raw 4.4.
    Photoshop CS4 ships with Camera Raw 5.0 so it can read D60 NEF files out of the box. No updates required.
    If you do mean the D60 then something else must be going on. e.g. are you using Nikon software to transfer files from camera to computer?

  • Trouble with MS Word for Mac 2008 file open from LaCie NAS drive after installing Mac OS X 10.9 Maverick.

    Since installing Max OS X 10.9 "Maverick" when I open Word documents from my LaCie NAS drive they open as empty documents. When I copy them to my local hard drive and then open them the content is fine. Has anyone else run into this? I contacted LaCie and they said "we do not support OS X or MS Word so talk to Apple and Microsoft. I have a thread with Microsoft and here is one with Apple.
    Thanks
    James Anderson

    I suspect that the issue with the EFI partition is unrelated to your Mac’s slow performance. I have had this same error message with Disk Utility. The EFI partition is related to firmware updates, and as it is not even booted when you boot from your usual boot drive, it is not relevant. (I was able to repair the EFI partition with Techtool Pro 7 , though, but then it reappeared, which makes me think it is a bug with Disk Utility.)
    I’d uninstall the following items, which are frequent flyers on the list of culprits for misbehaving macs:
    Blackberry
    google keystone agent
    Chrome
    Perian stopped being supported by the developer before Mountain Lion, so I doubt that it’s compatible with Mavericks.
    I have the same 8,2, BTW, and it is very fast. I like Kappy's suggestion. If getting rid of those 4 items above doesn't fix the problem, then a clean install (and not reinstalling your old "utilities" or other junk) will.

  • Problem for reading data file in jar file

    I use eclipse to export my project to jar file. My project is a program used to update data of the company. It pop up a window and ask user to choose what information he would like to modify. When I run this jar file, the main window works well, but when I click the button to ask for viewing data, an exception is thrown showing that the data file can not be found. When exporting, I already include data files into the jar file.
    Can any one help me please?
    Thanks.

    import java.io.*;
    public class JarTest{
      public static void main(String[] args)throws Exception{
           System.out.println("Starting deviousness...");
           File f = new File("myjar.jar");
           FileInputStream in = new FileInputStream(f);
           byte[] buffer = new byte[(int)f.length()];
           in.read(buffer);
           in.close();
           FileOutputStream out = new FileOutputStream(f);
           out.write(buffer);
           out.close();       
           System.out.println("Finished!");
    }Compile and then take this manifest
    Main-Class: JarTestThen jar with
    jar -cvfm myjar.jar manifest JarTest.classand run
    java -jar myjar.jarIt actually works. I wonder if the classloader is borked though....

Maybe you are looking for

  • Staple problem with printer Canon iR-ADV 8205

    Hello, I work with output designer 5.7 and when i try use option staple with canon printer Canon iR-ADV 8205 the document is print and staple, but the pageconter is equal zero. What can i do for print my document correctly? Thanks Julio.

  • Position goods issue log.

    Dear gurus,    We run the solution on ECC 6.0 SR3. when I performed goods issue using tcode 'vl06g',Goods movement error occured. Now my problem is that the error log is so simple ,there is no material number and the item is empty.how can I position

  • Should i purchase a iMac now or will there be a update in april/may?

    Hello everyone, Im curious to know if i should purchase a iMac now or wait and see if there will be a update for ivy bridge? Im curious how big of a update it will be though. I dont NEED it right now but i would prefer to have it now rather than wait

  • Turn off display without shutting down?

    I'm downloading a pretty large update (nearly 4GBs @ 190 hours estimated time) to my office computer (a Mac Pro w/ large display) and I would like to shut off the screen display, yet leave the computer on over the weekend. Reason being is that I am t

  • Multiple PCMCIA GPBIB cards

    I am trying to run multiple PCMCIA GPBIB cards on a Compaq NC6000 laptop, running windows 2000. Device manager will recognize both cards but MAX will only see the first one inserted. I have tried changing the PCMCIA card buss drivers to the windows g