Opening Linked Excel OLE Objects in Forms 6i

Hi,
I have a linked Excel OLE object which is populating properly into an OLE container. However, I cannot open the file to save a local copy, as I would a non-linked Excel OLE object. If I right-click on the linked OLE object choose copy, I can paste the data into a spreadsheet, but it appears as an image, rather than as regular tabulated data. Is there anyway to open the file normally?
Thanks in advance.

Hi Shay,
Thanks for the reply but i was unable to register to metalink. they need some support agreement code which i do not have. Can you please give me some more information on how to use that.
waiting for an early reply.
Warm Regards
Vivek Bajaj

Similar Messages

  • Truncation of leading Zeros when Down Loading into Excel - OLE Objects

    Hi,
    Can any one help me on this.
    I am using <b>OLE Objects</b> to download Data into Excel Sheet. Data with leading Zeros is getting truncated in Excel.
    Ex: Report Output is showing Plant Number as 0002. But when i am downloading to Excel Plant value will become 2 .
       I would like to have it as 0002 in Excel.
    I have declared Werks as CHAR of 4.I am using OLE Obects for Downloading into Excel Sheet.
    I am using "OLE2_OBJECT" I can not use any other FMs to down load to Excel.As i am modifying this program not creating.
    Thanks In Advance.
    K.Nirmala
    Message was edited by: Nirmala Reddy

    Hi Nirmala,
    While downloading to excel sheet, u need to change the number format of cell from General to Text, then leading zero's won't get deleted. For that u need to set the property of the cell. Please check this sample code,
    INCLUDE OLE2INCL.
    tables : zobrent.
    data : it_kna1 type table of zobrent with header line.
    handles for OLE objects
    DATA: H_EXCEL TYPE OLE2_OBJECT,        " Excel object
          H_MAPL TYPE OLE2_OBJECT,         " list of workbooks
          H_MAP TYPE OLE2_OBJECT,          " workbook
          H_ZL TYPE OLE2_OBJECT,           " cell
          H_F TYPE OLE2_OBJECT.            " font
    DATA  H TYPE I.
    DATA: cell1 TYPE ole2_object.
    *&   Event START-OF-SELECTION
    START-OF-SELECTION.
      select * from zobrent into table it_kna1
               where zopanid = '10001'
                and zo_brent = '050'.
    start Excel
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
    get list of workbooks, initially empty
      CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP.
      PERFORM ERR_HDL.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'EDate'.
      PERFORM FILL_CELL USING 1 2 1 'Brent'.
      PERFORM FILL_CELL USING 1 3 1 'Zopanid'.
      PERFORM FILL_CELL USING 1 4 1 'Contract Type'.
      PERFORM FILL_CELL USING 1 5 1 'Price Type'.
      PERFORM FILL_CELL USING 1 6 1 'Installation Type'.
      PERFORM FILL_CELL USING 1 7 1 'Volume'.
      PERFORM FILL_CELL USING 1 8 1 'AQ'.
      PERFORM FILL_CELL USING 1 9 1 '00000123'.
      LOOP AT IT_KNA1.
    copy values to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_KNA1-zo_effdat.
        PERFORM FILL_CELL USING H 2 0 IT_KNA1-zo_brent.
        PERFORM FILL_CELL USING H 3 0 IT_KNA1-zopanid.
      ENDLOOP.
      CALL METHOD OF h_excel 'Cells' = cell1
        EXPORTING
          #1 = 1
          #2 = 1.
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL.
      if sy-subrc eq 0.
       write : / 'year'(001).
      endif.
         FORM FILL_CELL
    sets cell at coordinates i,j to value val boldtype bold
    FORM FILL_CELL USING I J BOLD VAL.
      CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
      PERFORM ERR_HDL.
      GET PROPERTY OF H_ZL 'Font' = H_F.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_F 'Bold' = BOLD .
      PERFORM ERR_HDL.
    ***Changing the format of the cell from General to Text
      <b>SET PROPERTY OF H_ZL 'NumberFormat' = '@'.</b>
      PERFORM ERR_HDL.
      SET PROPERTY OF H_ZL 'Value' = VAL .
      PERFORM ERR_HDL.
    ENDFORM.
    *&      Form  ERR_HDL
    FORM ERR_HDL.
    IF SY-SUBRC <> 0.
      WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
      STOP.
    ENDIF.
    ENDFORM.                    " ERR_HDL
    U just paste this code in a sample program & see.
    Please reward, if found helpful.

  • Using OLE Objects in Forms 6i

    Hi
    I need to use OLE object (VSFlexGrid) in my forms 6i. can anybody help with some code by which I can achieve this.
    Warm Regards
    Vivek Bajaj

    Hi Shay,
    Thanks for the reply but i was unable to register to metalink. they need some support agreement code which i do not have. Can you please give me some more information on how to use that.
    waiting for an early reply.
    Warm Regards
    Vivek Bajaj

  • Automating Importing a Visio OLE Object or Changing the Source of a Previously Imported OLE Object

    My colleagues and I import our Visio files into FrameMaker 10 via the following mechanism: File > Import > Object... > Create from File (with Link checked).  We do this because, for us, the benefits of object linking and embedding outweight the pitfalls. In order to institute and automate a graphic file naming convention, I want to be able to do one of the following using ExtendScript:
    Replace each Visio OLE object with that of a renamed or new Visio file. (I've tried using the Import() method  with many different import-script settings, but have not found the correct import-script, if such a thing exists for importing Visio files  imported by reference and linked as OLE objects. My typical error when attempting this is FV_DisallowedImportType, which indicates the source file type is disallowed by my import-script settings. When I talk about my import-script settings, I'm referring to the adjustments that I make to the parameters returned from a call to GetImportDefaultParams().  I've tried numerous import-script combinations but have had no luck. )
    Rename the Visio source file and change the source file of an already-linked Visio OLE object.  (To do this, I need to determine how to implement a script that equals the following user actions while a FM document is open: clicking on Links... under the Edit menu to bring-up the Links window; selecting each link displayed in the Links window; clicking the Change Source button for each selected link; entering the new file name in the File name field of the Change Source window; clicking Open.  Needless to say, I found nothing in the ExtendScript capabilities that indicates that this approach is doable. It may be doable using FDK F_Codes, I haven't explored that avenue and would like to avoid it.)
    Modify the OLE2 facet such that it points to the renamed file instead of the previous name for the file.  (This does not seem like a clean approach.  As is the case now, I don't know how to properly update the facet with the new file name.  I've experimented with simply changing the file name strings from new to old, but that does not work.  There's probably some error-checking or checksum that needs to be recomputed.  Bottom line: I don't know enough about facets.)
    Any help would be greatly appreciated.
    Thanks, Paul

    Hi Paul,
    I tried doing something like this years ago with FrameScript, but found out that the OLE stuff is not exposed to FrameScript or the FDK. So it is probably not exposed to ExtendScript either. When you query an OLE graphic's InsetFile property, it returns a null string, the same as a graphic Imported by Copy would. As far as I can see, importing as an OLE object is only available through the Windows FrameMaker interface.
    Rick

  • OLE objects linked to MS Word/MS Excel do not update in InfoView

    I am facing the following problem:
    - Embedded a Word document as linked OLE object into a crystal report and stored it to Enterprise repository.
    - When opening the report with CR Developer from my workstation, links are updated and changes made in the .doc file are reflected, the report is updated
    - However when displaying and refreshing the report in InfoView changes aren't reflected.
    The OLE link (type document) is set to update automatically. I tried to store the report to the enterprise repository with and without data. Yet no difference - no update in either case. Neither scheduling nor opening and refreshing the report in InfoView helps.
    I further inserted an OLE object linked to a bmp image, and for the image refreshing works, even in InfoView
    So am I doing something wrong?
    Some threads in this forum indicate that only OLE linked pictures (bmp, jpg) can be refreshed dynamically, e.g.
    [Dynamically change path to OLE file]
    Others indicate that it is also possible to dynamically refresh OLE objects linked to .doc, e.g.
    [Re: Link to Word document doesn't refresh when running from Infoview]
    - Is it at all possible to dynamically display the contents of .doc or .xls files in a CR when viewing and refreshing the report in InfoView (without the need to reopen and resave the report with CR Developer first) ?
    - We are using BOE XI3.1 SP3 and Crystal Reports 2008 SP3.  On the BOE server Crystal Reports Developer is not installed. Can this be a prerequisite for the OLE links to update in InfoView?
    - Any other suggestions?
    Thanks
    Konrad

    Hi Don,
    Thank you for the quick reply.
    - You say that this works in CR Designer. That's right. As described above, even I can open the report with CR Designer and the links are getting updated.
    - However if I do not reopen and resave the report with Designer ... if I just open and refresh the report in InfoView to get the updated information from the files ... changes are not shown. I face this problem ONLY with ole links to .doc and .exe. OLE links to image formats such as .bmp do work. WHY?
    My files are already stored locally to the BO server and the (changed) image files are read and updated from exactly this directory. But not the linked Excel and Word files...
    Thanks
    Konrad
    Edited by: Konrad Hartl on Jan 25, 2011 8:04 PM

  • Header and footer in excel sheet (ole object)

    How can we generate footer and header in an excel sheet with ole object ?
    Thanks

    hi brian,
    Excel Upload Alternative - KCD_EXCEL_OLE_TO_INT_CONVERT
    *Title : Excel Uploading
    TYPES:   BEGIN OF t_datatab,
             col1(25)  TYPE c,
             col2(30)  TYPE c,
             col3(30)  TYPE c,
             col4(30)  TYPE c,
             col5(30)  TYPE c,
             col6(30)  TYPE c,
             col7(30) TYPE c,
             col8(30)  TYPE c,
             col9(30)  TYPE c,
             col10(30)  TYPE c,
             col11(30)    TYPE c,
           END OF t_datatab.
    DATA: it_datatab TYPE STANDARD TABLE OF t_datatab INITIAL SIZE 0,
          wa_datatab TYPE t_datatab.
    Data : p_table type t_datatab occurs 0 with header line.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '1',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    DATA: it_tab TYPE filetable,
          gd_subrc TYPE i.
    field-symbols : <fs>.
    *Selection screen definition
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_file LIKE rlgrap-filename
                   DEFAULT 'c:\test.xls' OBLIGATORY.   " File Name
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      REFRESH: it_tab.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title     = 'Select File'
          default_filename = '*.xls'
          multiselection   = ' '
        CHANGING
          file_table       = it_tab
          rc               = gd_subrc.
      LOOP AT it_tab INTO p_file.
       so_fpath-sign = 'I'.
       so_fpath-option = 'EQ'.
       append so_fpath.
      ENDLOOP.
    START-OF-SELECTION.
      PERFORM upload_excel_file TABLES   it_datatab
                                 USING   p_file
                                         gd_scol
                                         gd_srow
                                         gd_ecol
                                         gd_erow.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3,
                wa_datatab-col4,
                wa_datatab-col5,
                wa_datatab-col6,
                wa_datatab-col7,
                wa_datatab-col8,
                wa_datatab-col9,
                wa_datatab-col10,
                wa_datatab-col11.
      ENDLOOP.
    *&      Form  UPLOAD_EXCEL_FILE
          upload excel spreadsheet into internal table
         -->P_TABLE    Table to return excel data into
         -->P_FILE     file name and path
         -->P_SCOL     start column
         -->P_SROW     start row
         -->P_ECOL     end column
         -->P_EROW     end row
    FORM upload_excel_file TABLES   p_table
                           USING    p_file
                                    p_scol
                                    p_srow
                                    p_ecol
                                    p_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
    Has the following format:
                Row number   | Colum Number   |   Value
         i.e.     1                 1             Name1
                  2                 1             Joe
      DATA : ld_index TYPE i.
    Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = p_scol
          i_begin_row             = p_srow
          i_end_col               = p_ecol
          i_end_row               = p_erow
        TABLES
          intern                  = LT_INTERN
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'Error Uploading file'.
        EXIT.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
         MOVE lt_intern-col TO ld_index.
         assign component ld_index of structure
         p_table to <fs>.
    move : lt_intern-value to <fs>.
        MOVE lt_intern-value TO p_table.
          AT END OF row.
            APPEND p_table.
            CLEAR p_table.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "UPLOAD_EXCEL_FILE
    thanks
    abdul

  • Microsoft Forms and Microsoft Visual Basic while opening the Excel file

    Hello,
    I have issues with 2010 64 bit Office Pro Plus Excel. Whenever I open an Excel file (97-2003 worksheet) which has macros then I get below 2 errors in sequence.
    Please note that all macro settings are enabled and below are my system configs.
    Win 7 Ultimate 64 bit,
    MS Office Pro Plus 2010 64 bit with SP2.
    Googled all and tried but in vein and also note that I dont have any .exd files under ../forms to delete. Please help.
    Please note that for others with same system config/office versions and same 97-2003 worksheet it works so issues is only in my system.
    First Error
    Microsoft Forms
    Could not load an object because it is not available on this machine.
    Second Error
    Microsoft Visual Basic for Applications
    Compile error in hidden module:  MainUtilities2.
    This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.  Click "Help" for information on how to correct this error.
    Thanks.

    Your macro's will not run in a Office 64 environment only in a 32bit environment. The 64bit environment has a whole different setup and macro's created in an earlier 32 bit environment will stop working.
    So if you want to use them in a 64 Office environment you have to rewrite the macro's.
    have a look here:
    http://msdn.microsoft.com/en-us/library/gg264421.aspx
    Maurice

  • Error trying to open an Excel worksheet...getting Visual Basic MS Forms error

    Hi
    We have just upgraded a user from Office 2007 to 2013. However he is now unable to open an Excel spreadsheet and keeps getting Visual Basic errors
    MS Forms error. “Could not load an object because it is not available on this machine.”
    Acknowledge the error then..
    MS VBA error “Compile error Can’t find project or library”.
    On acknowledging and closing VB window the spreadsheet is available although VB is not running.
    VBA Project (Microsoft Forms 2.0 Object Library). However we still received the same errors.
    So we reinstalled Office 2013 to see if this would update the dll files. Alas the same error. Another user who works with VB said the FM20.dll files should be deleted and replaced with new ones. We acquired another FM20.dll file deleted the older one and
    replaced it in the folder. Rebooted but still the same error.
    He is using a 64bit Windows machine with Office 2013 click2run installed.
    We have spent 6 hours today trying to fix it with no luck.....Please can you help??
    Br
    Dan

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Excel, this issue is more related to the Office develop, please post your question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • OLE Container linked documents conversion to Web Forms

    We have developed a form within our Oracle 6i application which allows users to navigate directly from the Forms application to relevant documents. We use an OLE container and the documents (Word, Excel, PDF etc) are linked rather than embedded in the database. I understand that OLE containers are not supported within Web Forms. I'd like to maintain the functionality within the application and welcome any suggestions. I was hoping that Web_Util would provide this but it doesn't appear so. We have over 12000 embedded references to documents which we'd like to extract or retain. A possible solution would be to extract the filenames and paths/locations and have them available as a hyperlink.
    I have no idea how to extract the file from the database blob column. There are many samples of code on Metalink to extract the document and store it locally but that's not what we want.
    We use an OLE container (now Obsolete) with the OLE Tenant Type set to Linked, and OLE Tenant Aspect set to Icon. So the actual document is not embedded in the database but somehow the Application (Word Excel etc) knows the filename and path when you double click on the Icon.
    I would like to extract the filename/path from the blob column and transfer it to another column which will be used as a hyperlink.

    The documents are NOT stored in the database, they are linked. We have the documents on the network but have no idea which documents match to which unique record id on the database. Hence the need to extract the name and location of the files. Some ids can have up to 10 different documents attached to them
    The use of OLE Tenant type "Linked" was really a Forms 6 version of a hyperlink.
    I've got a hyperlink working for future use in attaching new documents to a record id. I am worried that we've lost the record of old links. I don't understand how Oracle can make something obsolete without at least providing an upgrade method.
    Hope this makes it clearer.
    Lesley

  • OLE Objects - How to open them in Java?

    Hello ppl,
    An OLE Object contains a header set by the Access Database and the file itself.
    I just quit trying to find a way to remove the OLE header and get only the file, once the file inside the OLE Object might be from a lot of types, like docs, or pdfs...
    Now, I just want to take this OLE Object and open it from Java.
    Does anybody know any way for me to do this?
    http://edndoc.esri.com/arcobjects/9.2/java/api/arcobjects/com/esri/arcgis/carto/IOleFrameProxy.html#open()
    In this link, this method describes exactly what I want. But I don�t think I�m allowed to use it.
    Isn�t there any free library that helps inthis subject?
    Thanks in advice.

    I don't see that this is a JDBC topic.
    Presumably you googled for this.
    You can of course write JNI code to access OLE.

  • Linked object for Form calculating FrieghtCharges

    Hai Friends,
               Currently i am working on A/R Invoice form.For the form showing the freightcharge details i need to know the object type of the linked object.Is there any other means to activate the form?Otherwise could anyone tell me the object type? Please help me to tackle the affore mentioned problem

    Hi Chinnu
    As far as I know the Freight Charges does not have a obejct type since it is a subobject of it invoice..
    If you are on the Invoice form and need to programatically need to open the freight charges window, the easiest way is to simply simulate a click on the Linked button on the invoice form
    oForm.Items.Item("91").Click(BoCellClickType.ct_Regular); //91 being UID of the LinkedButton

  • Ole objects,background and open dataset

    Hi,
    I want to read ms access files on background using ole objects. Is it possible to apply open dataset operation for mdb files? As known, text files can be get into application server using open dataset. But I need to get mdb file to application server.
    On the other way I can simulate my problem as, is it possible to read excel files(for example) using <b>ole object</b> in background? If I can get an aswer, maybe I can simulate it as reading mdb files.
    Thanks.

    OPEN DATASET is meant for the flat text files, you won't be able to open an mdb file with it. Once I've tried using OLE objects to obtain the file modification date and, even though it worked great in foreground, it didn't work in the background mode.
    This thread on reading MS Access files in SAP might be helpful:
    Re: download table from ms-access

  • 'Hiding' linked OLE objects

    Post Author: david76r
    CA Forum: General
    Hi There,
    I'm using Crystal 9 to create PeopleSoft checks.  For security purposes, we would like the signature images to appear only when the report has access to the linked image, which is on a floppy disk.  i.e, no disk, no signatures.
    I have inserted the images as linked OLE objects, however, the images are showing up even though the disk/source is not present. Could someone advise as to how to make this images show only when the source is available?
    thanks

    Older versions of Crystal reports would only update the OLE images when the report was opened. Later versions allow you to use a database field with a path to link the objects through.

  • Linked OLE Object on a Web Server

    I searched for the answer to this, and haven't found it.  If it's already been answered, and I missed it, I apologize.
    I have a report (several actually) that has a link to a MS Word document.  It was added to the report as an OLE object, type "Document", update "Automatic".  The location of the document is C:\Program Files\Common Files\AppName\BlahBlah.DOC.
    The report is installed in two places.  In one place, C:\Program Files\AppName\ , I have a winforms app that opens and displays it.  The report links dynamically and works like a champ.  Changes to the document appear in the report.
    The report is also installed to C:\inetpub\wwwroot\AppName\Reports.  There's a web app running there that prints the report.  It looks good, except it only shows the snapshot of the original document as it was when the report was created.  Changes to the .DOC are not appearing.
    I'm sure the problem is that the path to the document is in the C:\Program Files\ ...  directory which isn't in the web path of C:\inetpub\wwwroot\AppName.  Normally, a web server can only see the files in it's own directory tree, as that is it's root directory.
    When the document is originally added to the report, it won't let me set the link as "./Reports/BlahBlah.DOC".  That would solve the problem.  But it stores the full path, which isn't available to the web app.
    I'm sure theres something simple that I must do to make this work, but I haven't found a solution yet (perhaps because the answer is too simple).  Thanks in advance.
    Glenn

    Hi Glenn
    Please provide following information:
    1.Version of crystal reports(HELP>>About Crystal reports)
    2.Is crystal reports embedded in any other application
    3.What is your runtime environment(.NET,Java)
    4.Are you programatically modifying report(s).
    FYI -
    1.In crystal reports stand-alone application(XI Release 1,XI Release 2,CR 2008),user is able to insert a .doc and when the 'Link' checkbox is checked (while inserting the doc into the report),the changes are automatically reflected.
    2.As a test,you can create a new report (in any of the versions mentioned above)on Xtreme sample database(using odbc connection and the "Xtreme sample database 11.5" dsn),and insert an OLE object in the report.
    Thanks

  • PB Syntax for Programmable OLE Objects (Excel)

    If I want to manipulate Excel (open Excel file, set value to cell, etc.), I need to write syntax like these (example):
      lole_excel = create oleobject
      lole_excel.ConnectToNewObject("excel.application")
      lole_excel.WorkBooks.Open("C:\some_path_to\sample.xls")
      lole_workbook = lole_excel.application.workbooks(1)
      lole_worksheet = lole_workbook.worksheets(1)
      // Set the cell value
      lole_worksheet.cells(1,11).value = "Some value" //it is cells(line, column)
      // Save
      lole_workbook.save()
      // Quit
      lole_excel.application.quit()
      lole_excel.DisconnectObject()
      destroy lole_Excel
    The question is, where should I look for complete reference of properties and function to be used?
    I mean, if I want to add/embed PDF file into Excel, what function should I use? What value to pass as parameter?
    What PB syntax should I code to accomplish this? Where can I find complete document for these functions/properties?
    Many thanks for your attention.

    How can I know that I must use worksheets property of workbooks property of application property of oleobject?
    That's dependant on understanding the object model for the application that you're trying to work with.  There's nothing PB documentation can really help with there.
    There are a couple of sections of the Application Techniques manual that cover OLE Automation in depth:
    Programmable OLE Objects
    OLE Objects in Scripts
    What you might find more useful in this regard though is an article I did for PBDJ, which was an excerpt from the PowerBuilder 9: Advanced Client/Server book.
    What I discuss in there is how to use the object browser built into Microsoft Office products to understand the object model and how to use the functions and properties of the target application.

Maybe you are looking for