Ole Adobe Reader integration

Hi,
I would like to start Adobe Reader from Abap with OLE automation. I want to know is that possible and how?
Kind regards,
H. Hendriks

Hi H. Hendriks,
i use PDF-Integration not by OLE but with WE_EXECUTE.
I fill an itab, put the itab in an simple FORM
convert the FORM to PDF and download it.
Then I Read the PC-Pfad in my report
and execute it.
Here a short example to show an abap-code as PDF.
REPORT ZGRO_ITAB_PDF_FORMULAR.
DATA: BEGIN OF ITAB OCCURS 0,
         TEXT(72),
      END   OF ITAB.
Druckparameter
DATA: BEGIN OF DR_PARAM.
        INCLUDE STRUCTURE ITCPO.
DATA: END   OF DR_PARAM.
Tabellenausgabe
DATA: OTFDATA      LIKE SOLI     OCCURS 0 WITH HEADER LINE.
DATA: PDFDATA      LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA: PDF_FILESIZE LIKE SOOD-OBJLEN.
DATA: BIN_FILESIZE TYPE I.
DATA: PROGRAM(128) TYPE C.
READ REPORT 'ZGRO_ITAB_PDF_FORMULAR' INTO ITAB.
DR_PARAM-TDDEST    = 'LOCAL'.        "Ausgabegerät
DR_PARAM-TDIMMED   = ' '.            "Sofort ausgeben
DR_PARAM-TDPREVIEW = 'X'.            "Druckvoschau
DR_PARAM-TDGETOTF  = 'X'.            "Ausgabe in  Tabelle
CALL FUNCTION 'OPEN_FORM'
     EXPORTING
          DEVICE   = 'PRINTER'
          DIALOG   = ' '
          OPTIONS  = DR_PARAM
          FORM     = 'ZS_ITAB'
          LANGUAGE = SY-LANGU.
LOOP AT ITAB.
  CALL FUNCTION 'WRITE_FORM'
       EXPORTING
            WINDOW  = 'MAIN'
            ELEMENT = 'AUSGABE'.
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
     TABLES
          OTFDATA = OTFDATA.
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
     EXPORTING
          FORMAT_SRC  = 'OTF'
          FORMAT_DST  = 'PDF'
          DEVTYPE     = ''
          LEN_IN      = ''
     IMPORTING
          LEN_OUT     = PDF_FILESIZE
     TABLES
          CONTENT_IN  = OTFDATA
          CONTENT_OUT = PDFDATA.
BIN_FILESIZE = PDF_FILESIZE.
CALL FUNCTION 'GUI_DOWNLOAD'
     EXPORTING
          BIN_FILESIZE     = BIN_FILESIZE
          FILENAME         = 'D:TEST.PDF'
          FILETYPE         = 'BIN'
     TABLES
          DATA_TAB         = PDFDATA
     EXCEPTIONS
          FILE_WRITE_ERROR = 1
          NO_AUTHORITY     = 5
          UNKNOWN_ERROR    = 6.
Programmpfad auf PC für PDF ermitteln
  CALL FUNCTION 'SO_PROGNAME_GET_WITH_PATH'
       EXPORTING
            DOCTYPE           = 'PDF'
       IMPORTING
            PATHNAME          = PROGRAM
       EXCEPTIONS
            PATH_NOT_FOUND    = 1
            PROGRAM_NOT_FOUND = 2
            NO_BATCH          = 3
            X_ERROR           = 4
            OTHERS            = 5.
  IF SY-SUBRC <> 0.
    write: / 'PDF-Programm kann nicht ermittelt werden!'.
    EXIT.
  ENDIF.
  CALL FUNCTION 'WS_EXECUTE'
       EXPORTING
            COMMANDLINE        = 'D:TEST.PDF'
            PROGRAM            = PROGRAM
       EXCEPTIONS
            FRONTEND_ERROR     = 1
            NO_BATCH           = 2
            PROG_NOT_FOUND     = 3
            ILLEGAL_OPTION     = 4
            GUI_REFUSE_EXECUTE = 5
            OTHERS             = 6.
  IF SY-SUBRC <> 0.
    write: / 'PDF-Programm kann nicht ausgeführt werden!'.
  ENDIF.
Programmende                                                        *
Hope i can help you.
Regards, Dieter

Similar Messages

  • How to test a plug_in without Adobe Reader Integration Key?

    I havge a project to create a plug_in for acrobat reader with Adobe Acrobat 8.1 SDK. I also apply for the Adobe Reader Integration Key, but I have not it by now. But deadline of the project is coming, is there any one who can tell me how to test the plug_in without Adobe Reader Integration Key?
    I also have another question, does the plug_in I make with Adobe Acrobat 8.1 SDK can be compatible for all the version of Acrobat reader, such as 7.0, 8.0 and so on? Thank you.

    You test the plug-in, as well you can, using Acrobat. You also build
    it using the preprocessor options to build a Reader plug-in, so you
    don't accidentally use an API not in Reader.
    If you are saying, is there w way around the Integration key for
    testing in Reader, the answer is no.
    Different Reader keys and tools are needed for each version of Reader.
    You will probably not get a key for an old version of Reader.
    Aandi Inston

  • Do I need to apply for Adobe Reader Integration Key License (RIKLA) Program?

    I want to develop a commercial plugin for Adobe Reader that invokes some action through new items on right-click context menu.
    I need to apply for RIKLA for that?
    Reading the FAQ I notice this:
    What are the restrictions for Adobe Reader plug-in development?
    Modify the appearance of Adobe Reader
    I don't know if adding an item to context menu could be considered as "Modify appearance", besides this seems that RIKLA only applies for vary specific types of plugins and closed to very few people... I don't know if I need to worry about this or not because of being a commercial plugin.
    Thank you so much

    It's not just a licensing requirement. Without the RIKLA you cannot make Reader plug-ins at all. Adobe will vet your proposal and decide if they will permit it, and what license fee you will pay.

  • Adobe Reader integration to VS C#

    Hi,
    I'm very new to the adobe SDK. So, i've a problem using Adobe Reader in C#. i've add the COM object of adobe reader. it's very easy to built in the element in your forms but now, i want to remove all the adobe menu bars so that i can create my own controls (because i don't need all the adobe controls ans some things wil be done automaticlly).
    so is it possible to hide al these controls or remove?..
    Greets, Gert-Jan

    I think what Leonard (aka: One-line Leonard) means is :
    You cannot do this with the SDK.... since it relies on the Reader/Acrobat as a platform.
    If you purchase the PDF library - a spearate product - you might be able to get the functinality that you are looking for -
    Is this right Leonard ????

  • How to enable my plug-in for loading by Adobe Reader?

    I create a plug-in for Adobe Reader, but after 5 seconds by Adobe Reader loaded my plug-in,  the Adobe Reader will prompt "Invalid plugin detected. Adobe Reader will quit", and then the Adobe Reader will be disabled.
    what's the problem? what should I do?

    Yes, I read this section.
    The contentis as follows:
    Visit the Adobe web site and fill out an Adobe Reader Integration Key License Agreement. There is a fee involved. The Adobe Reader Integration Key Licensing Agreement can only be submitted as a web form. Information can be found at http://www.adobe.com/go/acrobat_developer.
    Once your Adobe Reader Integration Key Licensing Agreement is approved, you will receive a contract package that includes your contract number and other information that is unique to you.
    but when I click the web link: http://www.adobe.com/go/acrobat_developer, it will jump to http://www.adobe.com/devnet/acrobat.html, as follows picture:
    where can I fill out an Adobe Reader Integration Key License Agreement?

  • Whitelist for Adobe Reader 10 and 11 Web Plugin?

    We need to have PDFs open in IE automatically for a list of domains and websites where employees need this function to work to do their job, but we don't want Adobe Reader integration with the browser triggered by random websites on the Internet due to malware that uses this function to infect computers.
    How can this be done?

    Can you try this next: navigate to C:\Program Files\Adobe\Reader 11.0\Reader (if you have Reader XI installed), or C:\Program Files (x86)\Adobe\Reader 11.0\Reader (Reader XI on 64-bit Windows), and double-click on Eula.exe, then accept the license agreement.
    Does that fix the problem?

  • Using Adobe Reader indirect in a commercial application?

    Hello!
    I'm developing a commercial software.
    Inside my application i use a webbrowser control to show html files, images a.s.o.
    If the user has installed Adobe Reader, he can also view PDF files in the browser control.
    Now my question: Are there any restrictions for using the Adobe Reader?
    Did I need a license for allowing to show those PDF files?
    best regards,
    Hans

    Section 3 doesn't talk about distribution. It mentions that you can't integrate it in to other software unless you have applied for and received the Adobe Reader Integration Key.
    To do that, you can go to the following link: http://www.adobe.com/devnet/reader/ikla.html
    And don't worry about your English. Even if it was your first language, it's pretty tough to understand. Go to the link above and you'll find a ton of information in regular English rather than a bunch of legal speak. If in doubt, you'll be able to find contact information there as well.

  • Problems using Adobe Reader 10 in browsers

    Ok, I'm running Mac OSX Lion 10.7.2.
    I read the announcement regarding Adobe not working in Safari's browser. But I'm having
    this problem with every browser that I have tried.
    I'm trying to use my bank's website, and in order to go further I need to read a page and accept it.
    There is no way to download the PDF from them. It merely shows me a button that says I need to
    download Adobe Reader, which I have. (I have adobe reader 10)
    When I downloaded Adobe, I restarted my computer.
    When I opened my browser, it still displayed that I needed to
    download Adobe reader in order to continue. I have tried using it on
    Firefox and Chrome.
    Outside of the browser issue, Adobe works fine.

    Section 3 doesn't talk about distribution. It mentions that you can't integrate it in to other software unless you have applied for and received the Adobe Reader Integration Key.
    To do that, you can go to the following link: http://www.adobe.com/devnet/reader/ikla.html
    And don't worry about your English. Even if it was your first language, it's pretty tough to understand. Go to the link above and you'll find a ton of information in regular English rather than a bunch of legal speak. If in doubt, you'll be able to find contact information there as well.

  • Error while installing Adobe Reader "Did not pass integrity check"

    When the download manager gets to about 80% this error pops up every time, I have tried clearing the temporary files, restarting my computer donwloading an older version but nothing works.
    The entire message says:
    "Adobe Reader":
    "Adobe Reader":
    The Download did not pass the integrity check (16291.304.428)
    I have windows 7, 32 bit. Help please!

    Don't use the download manager; download the installer directly from http://ardownload.adobe.com/pub/adobe/reader/win/10.x/10.0.0/en_US/AdbeRdr1000_en_US.exe (English version 10.0 for Windows).
    Use this link if you need another version http://get.adobe.com/reader/enterprise/

  • How to use SharePoint integration in Adobe Reader XI?

    Acrobat XI and Reader XI are now offering a SharePoint integration feature, supporting SharePoint 2010 and 2013.
    In 'Adobe Enterprise Administration Guide' there are some requirements mentioned for SharePoint, saying that there is a Acrobat License necessary for every client computer!
    Does that mean, that I can only use the SharePoint Integration in Adobe Reader with an additional Acrobat license?
    Has anybody tried this?
    Reagrds
    Hans
    Message was edited by: Hans-J. Dohrmann

    Not possible with Adobe Reader.

  • Adobe Reader X - Firefox integration Problem

    Dear All,
    My first post here.
    I am having problem's with the Adobe Reader X integration with Firefox (v3.6.12). I have been using Adobe Reader always and it's been fine.
    But I installed the new Adobe Reader X, and it integrates with firefox well, PDF document's open well within the browser.. BUT, I cannot save the PDF document from within the pdf.. I cannot click anywhere on the toolbar.. I cannot click on the pop up toolbar as well (the black one).. When i press F8, I can restore the toolbar or make it disappear.. but that's all I can do..
    If I try to save the document from firefox file menu, it works.. but not from within the pdf...
    This problem is also seen in IE, as well.
    I have tried repairing the install and also uninstall / reinstall adobe reader X. But nothing worked..
    For more info., I have been discussing this issue here > http://forum.notebookreview.com/windows-os-software/534412-adobe-reader-x-available-3.html
    I am looking forward to resolving this soon, because I use / read / work with hundreds and thousands of PDF, and they are extremely essential for my research work.. as some might know, all research articles are in PDF format these days..
    Thanks in advance and best wishes,
    Cheers, fondue

    My replies are in Bold.
    Thank you for your response and message.
    1. Are you seeing this problem with all kinds of PDF's or some specific  kinds like secure PDF's (with doc open password or printing  restrcitions), reader extended PDF's or PDF forms.
    This problem is with all kind's of PDF's.
    2. Are you opening a locally saved PDF by doing a drag drop in the  browser or right click and open with IE/FF or directly opening a PDF  hosted on the internet?
    It doesn't matter. However I do it, I see this problem in Firefox, IE & Google Chrome.
    3.  Can you also check the version of the Reader X browser plugin? you  could find it at C:\Program Files\Common  Files\Adobe\Acrobat\ActiveX\AcroPDF.dll. Right click -> Properties  -> Details
    If version is 9.0.x then you could try a clean install of Reader X.
    I have checked it. It's the latest plug-in (though at the moment, I have gone back to Adobe Reader 9.4.1, as I've mentioned before, because I need the reader to be working fine for my work and daily life. I am just waiting for a fix before I try Adobe Reader X again.
    As I've mentioned before, I am seeing this issue ONLY on my Windows 7 Ultimate (Laptop). In the desktop's at work, with Windows XP / Vista, I don't see it. Adobe Reader is working fine, browser integration is fine, the floating tool bar works fine, the right click menu pop' up where the right click is done...I can also save PDF' from the main toolbar at the top and so on...
    I really have run out of ideas.... and I am very surprised that no expert support personnel (if at all there is one) have dropped by or said anything or mentioned anything about this.
    Anyway.... Cheers.

  • Reinstall/repair adobe reader 11.0.08 on win xp pro sp3 - ole trouble.

    Hi,
    i want to reinstall adobe reader 11.0.08 on win xp pro sp3.
    Reinstallint using setup seem to work, but ole is not working: e.g. from word , I do insert object, click ole , select adobe acrobat object, then app freezes.
    2 processes are created dor adobe reader and I have to do "end-task".
    Inserting another ole object (e.g. excel) works!
    I tried uninstall from control panel.
    I also downloaded and ran acrobat_ittools_cleaner_p1_061713 and acrobat_ittools_cleaner_p2_061713 (downloaded from your web site), then reboot and reinstall. No change!
    Any hint?

    Hi albourg,
    Try disabling the protected mode in Reader and check the performance.
    You can find the option at: Edit > Preferences > Security (Enhanced) > Enable Protected Mode at startup
    Regards,
    Rave

  • Embed Adobe Reader with OLE into Java client

    Hi all,
    I am trying to integrate Adobe Reader 9.3 using OLE into an Eclipse base Java client using SWT.
    However the basic initialization of the OLE Control fails with this error:
    Unable to open type library for AcroPDF.PDF.1
    org.eclipse.swt.SWTException: Failed to create Ole Client. result = -2147221164
        at org.eclipse.swt.ole.win32.OLE.error(OLE.java:302)
        at org.eclipse.swt.ole.win32.OleControlSite.<init>(OleControlSite.java:142)
    Here is the code I used:
    String progID = "AcroPDF.PDF.1";
    Shell shell = new Shell();
    OleFrame frame = new OleFrame(shell, SWT.NONE);
    OleControlSite site = null;
    OleAutomation auto = null;
    try {
        site = new OleControlSite(frame, SWT.NONE, progID);
        auto = new OleAutomation(site);
    } catch (SWTException e) {
            System.err.println("Unable to open type library for " + progID);
        e.printStackTrace();
        return;
    I can see the key "AcroPDF.PDF.1" in my registry...
    Does anybody know what I am missing here?
    Thanks!
    Paul

    I'd suggest posting to the Acrobat SDK forum. You may need a license to do what you want.

  • Adobe Reader X cosmetic bug - browser integration scrollbars do not move

    There appears to be a cosmetic bug in Adobe Reader X (10.0.0) browser integration. When you open a PDF in a browser window, the scroll bar remains at the top of the window when you scroll the PDF using page up / page down, or the mousewheel. If you mouse over the scroll bar, it moves to the correct place in the PDF.
    This bug is consistent across IE 8, Chrome 7.0.517.44, and Mozilla Firefox 3.6.12 (running on Windows 7 Enterprise x86).

    *PUSH*
    Please fix this. Its just ridiculus to provide a plugin like _THE_ Adobe Acrobat Reader and not be able to implement a proper scroll behavior. Come on it can't be _that_ hard .
    Thanks

  • OLE object error when using with Access 2003 and Adobe Reader X

    I link to .pdf files in Access 2003 and since upgrading to Adobe Reader X yesterday, am unable to link to these files.  I receive an error stating "A problem occurred while accessing the OLE object". It goes on to tell me to verify that the file is where I say it is and that it is accessible, which it is.   I can go to that file in Adobe Reader and open it.

    Disable the protection mode in the preferences of Adobe Reader.

Maybe you are looking for