OLE MSWord VB Objects

With ActiveDocument.Sections(1)
    .Footers(wdHeaderFooterPrimary).PageNumbers.Add
End With
Does any one know how to call this above MSWord VB object from an ABAP program using OLE Automation?
Thank you guys.

This document posted on SDN by Serdar Şimşekler is a good reference
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/204d1bb8-489d-2910-d0b5-cdddb3227820

Similar Messages

  • Error Cannot join on Memo,OLE,od Hyperlink object

    Hi,
    I made the data migration from access to Oracle. I use access forms and ODBC to connect with Oracle. When I execute queries in access, this error occur: "Cannot join on Memo,OLE,od Hyperlink object table1.column=table2.column". Any ides how to solve this?

    What are your versions of Oracle, MS Access and SQL Developer?
    I don't know the type "note" in MS Access, my version of Access is 2000 and let me create a field of type Memo but not a field of type Note. Is that the same, my Access knowledge is not so deep?
    A text field is converted to varchar2(50 char), and a memo field is converted to CLOB, but that depends on the charset setting of the Oracle database, mine is UTF8, and yours?

  • OLE Objects - Can I open a browser object within my forms

    Hi There! My company use forms on the web. Now i'm trying to open, using OLE, a browser object in the same window of the forms so that users can navigate at the same time that they use the forms without changing the window/application. Has any one tried this ? Any help,ideas,documents,etc would be great ! Thanks in advance!

    Uninstall the '''''Ask Toolbar'''''. It can cause problems opening new tabs.
    *http://support.mozilla.com/en-US/kb/Uninstalling+add-ons
    *http://support.mozilla.com/en-US/kb/Cannot%20uninstall%20an%20add-on
    *http://kb.mozillazine.org/Uninstalling_toolbars
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Download classical report to MS word with OLE

    hi experts,
       I have a Classical HR Report that contains profile information of the employee.Now I have to Download the Report to Ms word through OLE . I tried some threads but they were just displaying the static text.I have to download the data for the following format.could some one help me on this?
    WRITE : 'Salary Information '.
    SKIP 1.
    WRITE : 1 SY-ULINE(83).
    WRITE : /1'|',2 'Period Ending On 31ST',25'|',26'Rating(If Any)',42'|',43'Basic Salary',57'|',58'Gpm',70'|',71'CTC',83'|'.
    WRITE : /1 SY-ULINE(83).
    CLEAR YEARSAL.CLEAR CURRENT.
    CLEAR GROSS.CLEAR GROSS1.CLEAR CTC1.
    LOOP AT ISAL INTO WSAL WHERE PERNR = WP01-PERNR AND ENDDA = '99991231' ."AND CURRENT BETWEEN WSAL-BEGDA AND WSAL-ENDDA.
      GROSS = WSAL-BET01 + WSAL-BET02 + WSAL-BET03 + WSAL-BET04.
      GROSS1 = GROSS.CONDENSE GROSS1.
      CTC1 = WSAL-BET10.CONDENSE CTC1.
    WRITE : /1'|',2 'Current' ,25'|',26 WSAL-RTEXT,42'|',43 WSAL-BET01 ,57'|',58 GROSS1,70'|',71 CTC1,83'|'.
    WRITE : /1 SY-ULINE(83).
    ENDLOOP.
    "need to download such information as above to ms word
    "ole format
    CREATE OBJECT gs_word 'WORD.APPLICATION' .
    IF sy-subrc NE 0 .
    MESSAGE s000(su) WITH 'Error while creating OLE object!'.
    LEAVE PROGRAM .
    ENDIF .
    *--Setting object's visibility property
    SET PROPERTY OF gs_word 'Visible' = '1' .
    *--Opening a new document
    GET PROPERTY OF gs_word 'Documents' = gs_documents .
    CALL METHOD OF GS_DOCUMENTS 'ADD' = V_DOCUMENTS.
      CALL METHOD OF gs_selection 'TypeText'
    EXPORTING
    #1 = 'Overview Of The Employee'.
    "the output format would be like this .
    pernr    |   year   |    salary | .......
    Edited by: SYED_ibbu on Feb 23, 2011 11:07 AM
    Edited by: SYED_ibbu on Feb 24, 2011 5:57 AM

    hi experts,
    i Have to display multiple tables in the word document . i am displaying the first table but when i try to display the second table it is getting displayed inside the first table. When i debugged , i found that that the cursor is still in the first row of the first table even after the first table is displayed and the second table is displayed from that cursor position. How to get the cursor position after the end of the table ie outside the table to the main document.could some one help me on this. Below is the code i have used.
    GET PROPERTY OF GS_WORD 'ActiveDocument' = gs_actdoc.
    GET PROPERTY OF gs_actdoc 'Tables' = gs_tables .
    GET PROPERTY OF gs_selection 'Range' = gs_range .
    CALL METHOD OF gs_tables 'Add' = gs_table
    EXPORTING
    #1 = gs_range
    #2 = LINES
    #3 = '7'.
    GET PROPERTY OF gs_table 'Borders' = gs_table_border .
    SET PROPERTY OF gs_table_border 'Enable' = '1' .
    GET PROPERTY OF gs_cell 'Range' = gs_range .
    SET PROPERTY OF gs_range 'Text' = value .
    CALL METHOD OF gs_table 'Cell' = gs_cell
    EXPORTING
    #1 = P_TABIX1
    #2 = CNT.
    GET PROPERTY OF GS_WORD 'ActiveDocument' = gs_actdoc1.
    GET PROPERTY OF gs_actdoc1 'Tables' = gs_tables1 .
    GET PROPERTY OF gs_selection 'Range' = gs_range1 .
    CALL METHOD OF gs_tables1 'Add' = gs_table1
    EXPORTING
    #1 = gs_range1
    #2 = '2'
    #3 = '4'.
    with thanks in advance,
    syed
    Edited by: SYED_ibbu on Feb 25, 2011 5:39 AM

  • Re: OLE Field

    Gunjan,
    When you Forte OLE Field, the Forte GUI environment is known as a
    'Container Application'. Using the 'InsertObject' command, it can host
    different 'Insertable OLE 2.0 Objects'.
    When clicking on the Insert Object button, you will be presented with a
    list of OLE objects that have identified themselves as 'Insertable OLE 2.0
    object'.
    One problem with hosting these OLE objects is that you cannot keep state.
    For example, you run an Excel object and modified a spreadsheet -- when you
    exit the container, the state information goes away. Forte solves this by
    giving you a cache file, which is essentially a persistance image of the
    OLE object. You can later use the LoadCacheFile method to retrieve the data.
    By the way, using the ActiveXField, Forte can also host OLE Custom Controls
    (OCX).
    Lee Wei
    At 01:41 PM 7/6/98 -0400, Gunjan Vijayvergia wrote:
    >
    This is what I got from the Forte OLE field documentation. I did not
    understand teh part about the cache file and Insert Object . have
    been using Visual C++ mostly before this and we all know how easy
    this is there !!!
    Could somebody explain ?
    Documentation from Forte Help File Forte Ver 2.0
    OLE Field Properties dialog
    This dialog allows you to set the properties of OLE fields.
    The Fort
    &eacute; properties dialog for the OLE field allows you to set only the
    attribute name, help text, and size policy for the OLE field. To set the
    cache file name, and the default linked or embedded object for the OLE
    field, you must use the Insert Object button on the OLE Field properties
    dialog to open the Windows? Cache File and Insert Object dialogs. Because
    these dialogs are provided by Windows, you need to use Windows to access
    them. See your Windows documentation for information about the Insert
    Object dialog.
    The OLE field properties that can be set in this dialog are as follows:
    Property Setting
    Attribute Name The attribute name for the outline field.
    Cache File Name This is a read-only property that shows the cache file
    name specified in the Windows Cache File dialog for the OLE field.
    Insert Object Opens the Windows Cache File and Insert Object dialogs,
    where you can specify the cache file name and default linked or embedded
    object for the OLE field respectively.
    Help Text Opens the Help Text dialog for the field. See Help Text...
    command for
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Nextver field was locked because it was from 2004 and some very new forum user resurrected it to ask a new question. They should have been polite and posted their inquiry freshly new. Then they would have availed themselves of actually getting assistance directed to them.
    Thus some moderator froze it to prevent the thread being hijacked away from the original poster. By the way, that O.P. hasn't posted anything to the forums since that 2004 date.

  • JCOM manpulation error:  weblogic Error BEA-210000  Export of object barred

    Hi everyone,
    I'm trying to access a COM (MSWORD.OLB ) object from weblogic .
    I've writing a sample Java proggram to access some methods of my COM Object.
    But during the runtime, i got the following BEA weblogic error :
    *<Error> <COM> <BEA-210000> <Export of object: com.linar.jintegra.Variant@b96c73 barred>*
    com.linar.jintegra.a
         at com.linar.jintegra.ba.c(Unknown Source)
         at com.linar.jintegra.ba.a(Unknown Source)
         at com.linar.jintegra.Variant.<init>(Unknown Source)
         at com.linar.jintegra.Marshaller.a(Unknown Source)
         at com.linar.jintegra.Marshaller.a(Unknown Source)
         at com.linar.jintegra.Marshaller.b(Unknown Source)
         at com.linar.jintegra.Dispatch.vtblInvoke(Unknown Source)
         at word.DocumentsProxy.open(Unknown Source)
    Any ideas to solve this problem ?
    Thanks
    Sergio
    Edited by: user11108138 on 10 févr. 2012 02:24

    Sorry for delay!!
    I tried W2KSP1, W2KSP2 and XPpro on several P3 / P4 with 256 / 521 RAM.
    Uli
    "dan seeman" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]..
    Hi,
    One last question. Can you tell me more about what OS you have theWLServer
    installed on (machine type, OS and version)?
    Thanks in advance.
    dan
    Uli Schulze-Eyssing wrote:
    Hi Dan,
    wl70 release
    Uli
    "dan seeman" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]..
    What version of WLS you are using?
    dan
    Uli Schulze-Eyssing wrote:
    We are trying to use jCOM to connect to our WL-App. (We had been
    using
    JIntegra before)
    I made a simple JCom-Helper identical to the one, delivered in the
    earlybound-sample.
    Trying to create an object in VB couses the server to say:
    <03.05.2002 15:11:58 CEST> <Error> <COM> <210000> <IOXIDResolveropNum 5
    invoked. This method is not implemented.>
    <03.05.2002 15:11:58 CEST> <Error> <socket> <000413> <Failure in
    processSockets() - GetData: weblogic.socket.NTSocketMuxer$GetData -fd:
    '2324', numBytes: '654'
    java.lang.NullPointerException
    java.lang.NullPointerException
    atweblogic.com.MuxableSocketDCOM.isMessageComplete(MuxableSocketDCOM.ja
    >>>>
    va:182)
    atweblogic.com.MuxableSocketDCOM.dispatch(MuxableSocketDCOM.java:203)
    >>>>
    atweblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:667)
    >>>>
    atweblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
    >>>>
    23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    >
    and no object is created (VB hangs in waiting for the object)
    In the FAQ I can read:
    065070
    There is a known issue with the logging of WebLogic Server jCOMerror
    messages. COM warnings are incorrectly logged as errors, as in thisexample:
    <Error> <COM> <210000> <IOXIDResolveropNum 5 invoked. This method is
    not
    implemented.>
    So: I know, this is only a warning, but where is my object? ;-)
    Can s/o tell me?
    Many thanks,
    Uli

  • OLE Integration with Excel --- Urgent

    Hello,
    i want to draw two charts on Excel sheet based on some data in SAP. in the excel sheet first i have to display the data and then draw the chart for that. now i am able to draw first chart but not able to draw the second chart because i think the area where i have drawn my first chart is active and not able to print the data related to second chart. can any one tell me, how to activate the sheet after drawing first graph.
    Thanks a lot in advance...
    Mohan

    Mohan,
    Try this....
    You can activate using ...CALL METHOD OF gs_activesheet 'Activate' .
    Report ZTEST.
    INCLUDE ole2incl .
    DATA: gs_excel TYPE ole2_object ,
    gs_wbooklist TYPE ole2_object ,
    gs_application TYPE ole2_object ,
    gs_wbook TYPE ole2_object ,
    gs_activesheet TYPE ole2_object ,
    gs_sheets TYPE ole2_object ,
    gs_newsheet TYPE ole2_object ,
    gs_cell1 TYPE ole2_object ,
    gs_cell2 TYPE ole2_object ,
    gs_cells TYPE ole2_object ,
    gs_range TYPE ole2_object ,
    gs_font TYPE ole2_object ,
    gs_interior TYPE ole2_object ,
    gs_columns TYPE ole2_object ,
    gs_charts TYPE ole2_object ,
    gs_chart TYPE ole2_object ,
    gs_charttitle TYPE ole2_object ,
    gs_charttitlechar TYPE ole2_object ,
    gs_chartobjects TYPE ole2_object .
    DATA gv_sheet_name(20) TYPE c .
    DATA gv_outer_index LIKE sy-index .
    DATA gv_intex(2) TYPE c .
    DATA gv_line_cntr TYPE i . "line counter
    DATA gv_linno TYPE i . "line number
    DATA gv_colno TYPE i . "column number
    DATA gv_value TYPE i . "data
    PARAMETERS: p_sheets TYPE i .
    *Step 2 Initiate the do-loop and OLE automation base objects.
    *Code Part C.2 Looping and initializing, adding new worksheets
    START-OF-SELECTION .
    DO p_sheets TIMES .
    *--Forming sheet name
    gv_intex = sy-index .
    gv_outer_index = sy-index .
    CONCATENATE 'Excel Sheet #' gv_intex INTO gv_sheet_name .
    *--For the first loop, Excel is initiated and one new sheet is added
    IF sy-index = 1 .
    CREATE OBJECT gs_excel 'EXCEL.APPLICATION' .
    SET PROPERTY OF gs_excel 'Visible' = 1 .
    GET PROPERTY OF gs_excel 'Workbooks' = gs_wbooklist .
    GET PROPERTY OF gs_wbooklist 'Application' = gs_application .
    SET PROPERTY OF gs_application 'SheetsInNewWorkbook' = 1 .
    CALL METHOD OF gs_wbooklist 'Add' = gs_wbook .
    GET PROPERTY OF gs_application 'ActiveSheet' = gs_activesheet .
    SET PROPERTY OF gs_activesheet 'Name' = gv_sheet_name .
    *--For the rest of loops, other sheets are added
    ELSE .
    GET PROPERTY OF gs_wbook 'Sheets' = gs_sheets .
    CALL METHOD OF gs_sheets 'Add' = gs_newsheet .
    SET PROPERTY OF gs_newsheet 'Name' = gv_sheet_name .
    ENDIF .
    gv_line_cntr = 1 . "line counter
    *Step3 Write the title and format it.
    *--Title
    *--Selecting cell area to be merged.
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = 1
    #2 = 1.
    CALL METHOD OF gs_excel 'Cells' = gs_cell2
    EXPORTING
    #1 = 1
    #2 = 4.
    CALL METHOD OF gs_excel 'Range' = gs_cells
    EXPORTING
    #1 = gs_cell1
    #2 = gs_cell2.
    CALL METHOD OF gs_cells 'Select' .
    *--Merging
    CALL METHOD OF gs_cells 'Merge' .
    *--Setting title data
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = gv_line_cntr
    #2 = 1.
    SET PROPERTY OF gs_cell1 'Value' = 'TITLE' .
    *Code Part C.3 Writing and formatting the title
    *--Formatting the title
    GET PROPERTY OF gs_cell1 'Font' = gs_font .
    SET PROPERTY OF gs_font 'Underline' = 2 .
    SET PROPERTY OF gs_font 'Bold' = 1 .
    SET PROPERTY OF gs_cell1 'HorizontalAlignment' = -4108 .
    GET PROPERTY OF gs_cell1 'Interior' = gs_interior .
    SET PROPERTY OF gs_interior 'ColorIndex' = 15 .
    SET PROPERTY OF gs_interior 'Pattern' = -4124 .
    SET PROPERTY OF gs_interior 'PatternColorIndex' = -4105 .
    *Step 4 Write some additional data for the title area and format them.
    gv_line_cntr = gv_line_cntr + 1 .
    *--Writing some additional data for the title
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = gv_line_cntr
    #2 = 1.
    SET PROPERTY OF gs_cell1 'Value' = 'Sheet No' .
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = gv_line_cntr
    #2 = 5.
    SET PROPERTY OF gs_cell1 'Value' = ':' .
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = gv_line_cntr
    #2 = 6.
    SET PROPERTY OF gs_cell1 'Value' = gv_intex .
    *--Formatting the area of additional data 1
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = 1
    #2 = 1.
    CALL METHOD OF gs_excel 'Cells' = gs_cell2
    EXPORTING
    #1 = gv_line_cntr
    #2 = 5.
    CALL METHOD OF gs_excel 'Range' = gs_cells
    EXPORTING
    #1 = gs_cell1
    #2 = gs_cell2.
    CALL METHOD OF gs_cells 'Select' .
    GET PROPERTY OF gs_cells 'Font' = gs_font .
    SET PROPERTY OF gs_font 'Bold' = 1 .
    *--Formatting the area of additional data 2
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = 1
    #2 = 5.
    CALL METHOD OF gs_excel 'Cells' = gs_cell2
    EXPORTING
    #1 = gv_line_cntr
    #2 = 5.
    CALL METHOD OF gs_excel 'Range' = gs_cells
    EXPORTING
    #1 = gs_cell1
    #2 = gs_cell2.
    CALL METHOD OF gs_cells 'Select' .
    GET PROPERTY OF gs_cells 'Columns' = gs_columns .
    CALL METHOD OF gs_columns 'AutoFit' .
    *--Bordering title data area
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = 1
    #2 = 1.
    CALL METHOD OF gs_excel 'Cells' = gs_cell2
    EXPORTING
    #1 = gv_line_cntr
    #2 = 6.
    CALL METHOD OF gs_excel 'Range' = gs_cells
    EXPORTING
    #1 = gs_cell1
    #2 = gs_cell2.
    CALL METHOD OF gs_cells 'Select' .
    CALL METHOD OF gs_cells 'BorderAround'
    EXPORTING
    #1 = 1 "continuous line
    #2 = 4. "thick
    *Code Part C.4 Some additional writing to the title area, formatting
    *and bordering around the title area
    *Step 5 Put axis labels to the data area.
    *Code Part C.5 Axis Labels
    *--Putting axis labels
    gv_colno = 2 .
    gv_line_cntr = gv_line_cntr + 5 .
    gv_linno = gv_line_cntr - 1 .
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = gv_linno
    #2 = 1.
    SET PROPERTY OF gs_cell1 'Value' = 'X' .
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = gv_line_cntr
    #2 = 1.
    SET PROPERTY OF gs_cell1 'Value' = 'Y' .
    *Step 6 Generate some data.
    *Code Part C.6 Generating Data
    *--Generating some data
    DO 3 TIMES .
    gv_value = gv_outer_index * sy-index * 10 .
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = gv_linno
    #2 = gv_colno.
    SET PROPERTY OF gs_cell1 'Value' = sy-index .
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = gv_line_cntr
    #2 = gv_colno.
    SET PROPERTY OF gs_cell1 'Value' = gv_value .
    gv_colno = gv_colno + 1 .
    ENDDO .
    *Step 7 Set source data area for the chart.
    *Code Part C.7 Setting source data area for the chart
    *--Source data area
    gv_colno = gv_colno - 1 .
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = gv_linno
    #2 = 1.
    CALL METHOD OF gs_excel 'Cells' = gs_cell2
    EXPORTING
    #1 = gv_line_cntr
    #2 = gv_colno.
    CALL METHOD OF gs_excel 'Range' = gs_cells
    EXPORTING
    #1 = gs_cell1
    #2 = gs_cell2.
    CALL METHOD OF gs_cells 'Select' .
    *Step8 Draw the chart
    *Code Part C.8 Draw the chart
    GET PROPERTY OF gs_application 'Charts' = gs_charts .
    CALL METHOD OF gs_charts 'Add' = gs_chart .
    CALL METHOD OF gs_chart 'Activate' .
    SET PROPERTY OF gs_chart 'ChartType' = '51' . "Vertical bar graph
    CALL METHOD OF gs_chart 'SetSourceData'
    EXPORTING
    #1 = gs_cells
    #2 = 1.
    SET PROPERTY OF gs_chart 'HasTitle' = 1 .
    GET PROPERTY OF gs_chart 'ChartTitle' = gs_charttitle .
    GET PROPERTY OF gs_charttitle 'Characters' = gs_charttitlechar .
    SET PROPERTY OF gs_charttitlechar 'Text' = 'Sample Graph' .
    *Step 9 Locate the chart onto the current worksheet.
    *Code Part C.9 Locating the chart onto the current worksheet
    *--Locate the chart onto the current worksheet
    *--Activate current sheet
    CALL METHOD OF gs_excel 'WorkSheets' = gs_activesheet
    EXPORTING
    #1 = gv_sheet_name.
    CALL METHOD OF gs_activesheet 'Activate' .
    CALL METHOD OF gs_chart 'Location'
    EXPORTING
    #1 = 2
    #2 = gv_sheet_name.
    *Step 10 Reposition the chart to a proper place and finish the do-loop.
    *Code Part C.10 Repositioning the chart to a proper place and end of
    *the do-loop counting sheet number
    *--Reposition the chart on the worksheet (cut&paste)
    CALL METHOD OF gs_activesheet 'ChartObjects' = gs_chartobjects .
    CALL METHOD OF gs_chartobjects 'Select' .
    CALL METHOD OF gs_chartobjects 'Cut' .
    *--Select new area
    gv_line_cntr = gv_line_cntr + 2 .
    CALL METHOD OF gs_excel 'Cells' = gs_cell1
    EXPORTING
    #1 = gv_line_cntr
    #2 = 1.
    CALL METHOD OF gs_excel 'Cells' = gs_cell2
    EXPORTING
    #1 = gv_line_cntr
    #2 = 1.
    CALL METHOD OF gs_excel 'Range' = gs_cells
    EXPORTING
    #1 = gs_cell1
    #2 = gs_cell2.
    CALL METHOD OF gs_cells 'Select' .
    CALL METHOD OF gs_activesheet 'Paste' .
    ENDDO .
    *Step 11 Free OLE objects to deallocate memory.
    *Code Part C.11 Deallocating the memory
    *--Deallocating memory
    FREE: gs_excel, gs_wbooklist, gs_application, gs_wbook,
    gs_activesheet,gs_sheets, gs_newsheet, gs_cell1,
    gs_cell2, gs_cells, gs_range, gs_font, gs_interior,
    gs_columns, gs_charts, gs_chart, gs_charttitle,
    gs_charttitlechar, gs_chartobjects .

  • OLE question on IWORK 08

    Anybody heard of OLE??(object linking embedding).
    What an oversight on Apple software team???? I take it everybody at Apple must be using excel and Microsoft word, to embed spreadsheets into their word documents?
    Anyone else have the same problem??

    I do not get that.
    The model was to minimize applications by removing redundancy which is the opposite of the model for Object Linking and Embedding. At the same time the model was to maximize the quality of the transforms upon which the graphic user interface is judged, the colour-colourant transforms and the character-glyph transforms, and to make those transforms application-independent in order that small and easy-to-use applications would be able to take advantage of those transforms. Thus, OpenDoc went along with the graphics library of QuickDraw GX, with ColorSync 2, and with TrueType 2.
    The model of small applications for small software developers, of removing redundancy, of application-independent transforms for the small software developer to take advantage of - that is still a useful model and a model that is likely to thrive as the software suite that sits on a standalone computer is replaced with other models for computing and other models for software development. I read the Wikipedia article on OpenDoc. I also read the Wikipedia article on GX. The latter was technically incorrect when I first read it, and a handful of technical corrections were incorporated.
    Best,
    Henrik

  • How can we format the download file as it is as report output.

    hi all,
    I have a issue, when i execute the program the the report output displays on output screen.
    now, in menu when i down load this output data into a word file the format is not correct i.e. it is not as it is in report output screen.
    how we can correct this output format, when we download in word format file through menu.
    pls help me on this .its very urgent.
    thanks!
    vipin

    Vipin,
    U will have to use OLE methods to format your MS-WORD output.
    Check the tcode  DWDM for sample code
    Also check out the threads:
    Get WORD Options with OLE
    Re: OLE and MS Word
    Also search in code samples with OLE-MSWORD
    Reward if helpful,
    Karthik

  • ContactItem.StoreEntryId supported in Office 365?

    I use Exchange Webservices Managed API to connect with Office365.
    Per
    Contact I retrieve the contact.ItemId.UniqueId and contact.StoreEntryId. However contact.StoreEntryId = null?
    Is this supported in Office365?
    My goal is to pop-up/display the contact card in Outlook2013. I try to achieve this via COM/OLE OOM (Outlook Object Model) by calling the GetItemFromId(EntryId, StoreEntryId) function to find the contactitem and then call the ContactItem.Display()
    method. Thus, the GetItemFromId() function also requires the StoreEntryId.
    Perhaps any of you has experience with Office 365 using outlook2013 (Outlook object model) and can tell me if this is the right approach?
    - Is the Item.Id.UniqueId an unique Contact identifier in Office365, which I can refer to when synchronized with Outlook2013?
    - Is EWS Contact.Id.UniqueId
    the same as OOM EntryId (MAPI)?
    - Is there an other or better way to achieve my goal?
    Thank you!

    If you want to access the contact.StoreEntryId you have to specifically request it this, else it won't be returned by default eg
    ItemView ivItemView = new ItemView(1);
    PropertySet itemPropset = new PropertySet(BasePropertySet.FirstClassProperties);
    ExtendedPropertyDefinition PR_EntryId = new ExtendedPropertyDefinition(0x0FFF, MapiPropertyType.Binary);
    itemPropset.Add(ContactSchema.StoreEntryId);
    itemPropset.Add(PR_EntryId);
    ivItemView.PropertySet = itemPropset;
    However unlike 2010 this StoreId isn't returned in a format that you can use in MAPI see
    http://social.msdn.microsoft.com/Forums/exchange/en-US/ed04d0aa-f9ed-4a3a-b9b1-85884c8c9655/ews-extendedproperty-prstoreentryid-0x0ffb-is-different-than-mfcmapioutlookspy
    >>- Is EWS Contact.Id.UniqueId
    the same as OOM EntryId (MAPI)?
    No its not the UniqueId is the EWS identifier which is separate from the MAPI EntryId, if you want the Hex EntryId you can use the ConvertId operation
    http://msdn.microsoft.com/en-us/library/office/bb799665(v=exchg.150).aspx to convert the EWSId to a hexEntryId. Or you can just request the PidTagEntryId ExtendedProperty which is easier. For the StoreId I would suggest you just construct
    it from AutoDiscover eg the following should yield a valid EntryId's to use in the OOM.
    ItemView ivItemView = new ItemView(1);
    PropertySet itemPropset = new PropertySet(BasePropertySet.FirstClassProperties);
    ExtendedPropertyDefinition PR_EntryId = new ExtendedPropertyDefinition(0x0FFF, MapiPropertyType.Binary);
    itemPropset.Add(ContactSchema.StoreEntryId);
    itemPropset.Add(PR_EntryId);
    ivItemView.PropertySet = itemPropset;
    FindItemsResults<Item> fiResults = service.FindItems(WellKnownFolderName.Contacts, ivItemView);
    if (fiResults.Items.Count == 1)
    if (fiResults.Items[0] is Contact) {
    Contact cntContact = (Contact)fiResults.Items[0];
    Byte[] EntryVal = null;
    String HexEntryId = "";
    String StoredHexEntryid = GetStoreId("[email protected]", service);
    if(cntContact.TryGetProperty(PR_EntryId,out EntryVal)){
    HexEntryId = BitConverter.ToString(EntryVal).Replace("-","");
    static String GetStoreId(String emEmailAddress, ExchangeService service)
    String rtReturnString = "";
    AutodiscoverService adAutoDiscoverService1 = new AutodiscoverService(ExchangeVersion.Exchange2013);
    adAutoDiscoverService1.Credentials = service.Credentials;
    adAutoDiscoverService1.EnableScpLookup = false;
    adAutoDiscoverService1.RedirectionUrlValidationCallback = adAutoDiscoCallBack;
    adAutoDiscoverService1.PreAuthenticate = true;
    adAutoDiscoverService1.KeepAlive = false;
    GetUserSettingsResponse adResponse = adAutoDiscoverService1.GetUserSettings(emEmailAddress, (new UserSettingName[2] { UserSettingName.UserDN, UserSettingName.InternalRpcClientServer }));
    if (adResponse.Settings.Count >= 2)
    String UserDN = (String)adResponse.Settings[UserSettingName.UserDN];
    String ServerName = (String)adResponse.Settings[UserSettingName.InternalRpcClientServer];
    String flags = "00000000";
    String ProviderUID = "38A1BB1005E5101AA1BB08002B2A56C2";
    String versionFlag = "0000";
    String DLLFileName = "454D534D44422E444C4C00000000";
    String WrappedFlags = "00000000";
    String WrappedProviderUID = "1B55FA20AA6611CD9BC800AA002FC45A";
    String WrappedType = "0C000000";
    String StoredIdStringHex = flags + ProviderUID + versionFlag + DLLFileName + WrappedFlags + WrappedProviderUID + WrappedType + StringToHex(ServerName) + "00" + StringToHex(UserDN) + "00";
    rtReturnString = StoredIdStringHex;
    return rtReturnString;
    static string StringToHex(string asciiString)
    string hex = "";
    foreach (char c in asciiString)
    int tmp = c;
    hex += String.Format("{0:x2}", (uint)System.Convert.ToUInt32(tmp.ToString()));
    return hex;

  • What is the best protocol to import data into sqlserver using an SSIS Package?

    Im trying to import data into SQL Server from EXCEL with an SSIS package. In my data flow I am using "Excel Source" object and an "OLE DB Command" object.  Im getting the following error message, "...Excel Connection Manager"
    is an incorrect type....."  May someone explain why I get this and point me in the right direction in choosing the proper source for my package so I can complete my task.  Thanks.

    Hi jsorrisone,
    The data type mismatch issue is a common issue when using Excel Source in SSIS. The Excel driver recognizes only a limited set of data types. The following section of the document
    Excel Source should point you in the right direction:
    The Excel driver recognizes only a limited set of data types. For example, all numeric columns are interpreted as doubles (DT_R8), and all string columns (other than memo columns) are interpreted as 255-character Unicode strings (DT_WSTR). Integration
    Services maps the Excel data types as follows:
    Numeric – double-precision float (DT_R8)
    Currency – currency (DT_CY)
    Boolean – Boolean (DT_BOOL)
    Date/time – datetime (DT_DATE)
    String – Unicode string, length 255 (DT_WSTR)
    Memo – Unicode text stream (DT_NTEXT)
    Integration Services does not implicitly convert data types. As a result, you may need to use Derived Column or Data Conversion transformations to convert Excel data explicitly before loading it into a non-Excel destination, or to convert non-Excel data
    before loading it into an Excel destination. In this case, it may be useful to create the initial package by using the Import and Export Wizard, which configures the necessary conversions for you. Some examples of the conversions that may be required include
    the following:
    Conversion between Unicode Excel string columns and non-Unicode string columns with specific codepages
    Conversion between 255-character Excel string columns and string columns of different lengths
    Conversion between double-precision Excel numeric columns and numeric columns of other types
    If you need further help, post the complete error message as well as the data nature in your Excel source file for further analysis.
    Regards,
    Mike Yin
    TechNet Community Support

  • Unable to enlist in a distributed transaction (Windows7, Oracle 11G R1)

    Hi,
    I have a .Net application running on Windows 7 x64 using VisualStudio2008 and Oracle 11G R1 32bit client
    In it I call a webservice calling another webservice, this requires to use oramts that interfaces with Microsoft DTC. However I'm getting the following error when calling the service method:
    "Unable to enlist in a distributed transaction"
    I have checked the following:
    - Ora MTS is installed
    - DTC is running, the security settings allow AX transactions (in fact I just allowed everything)
    - Network services have the permission to access oracle dlls
    - The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI contains the following: "OracleXaLib"="xa80.dll" "OracleSqlLib"="SQLLib80.dll" "OracleOciLib"="oci.dll" (not sure if this is right)
    What is it I'm doing wrong ? Does this version of Oracle work correctly on W7 ?
    By the way it works fine on Windows XP !
    I've spend quite some time trying to find a resolution..
    Thanks!

    I think I answered my own question
    It seems that MSDTC is not supported by Oracle 11G R1 on Windows x64 !
    All Oracle Database components are supported on Windows x64 with the following exceptions:
    •Oracle Services for Microsoft Transaction Server are not supported on Windows Vista. As a result, all Oracle Windows data access drivers on Windows Vista that use Oracle Services for Microsoft Transaction Server to enlist in Microsoft Distributed Transaction Coordinator (MSDTC) coordinated transactions cannot participate in those coordinated transactions. These data access drivers include Oracle Data Provider for .NET, Oracle Provider for OLE DB, Oracle Objects for OLE, and ODBC. Check OracleMetaLink for up to date information on Oracle Services for Microsoft Transaction Server certification with Windows Vista.
    http://download.oracle.com/docs/cd/B28359_01/install.111/b32006/reqs.htm#CHDCEFIJ
    Edited by: 845528 on 18 mars 2011 05:05

  • Problem with INET function

    Hello,
    i face some problem when i tried to execute the cltpull_panel.exe. it show some error line as below. This problem only happen after i formatted my PC 2 days ago.Before that the program run smoothly without any error.
    i have install back the labwindow and the internet toolkit function and also include the cviinet.dll file into window system folder.
    i hope you guys can help me out with it. is some files missing or what?
    thanks alot =)
    NON-FATAL RUN-TIME ERROR: "cltpull_panel.c", line 21, col 23, thread id 0x00000E98: Function INET_StartWebServer: (return value == -5 [0xfffffffb]). System socket error
    NON-FATAL RUN-TIME ERROR: "cltpull_panel.c", line 22, col 5, thread id 0x00000E98: Function INET_RegisterPanelAutoUpdate: (return value == -2 [0xfffffffe]). Invalid parameter
    NON-FATAL RUN-TIME ERROR: "cltpull_panel.c", line 25, col 5, thread id 0x00000E98: Function INET_RegisterPanelWebInput: (return value == -2 [0xfffffffe]). Invalid parameter
    NON-FATAL RUN-TIME ERROR: "cltpull_panel.c", line 27, col 4, thread id 0x00000E98: Function INET_UnregisterPanelAutoUpdate: (return value == -2 [0xfffffffe]). Invalid parameter
    NON-FATAL RUN-TIME ERROR: "cltpull_panel.c", line 29, col 5, thread id 0x00000414: Function INET_EndWebServer: (return value == -2 [0xfffffffe]). Invalid parameter

    Hello Kenshi,
    First, you received the DLLRegisterServer error message because the cviinet.dll does not have the DLLRegisterServer function in it. It doesn't need this function because it doesn't need to make changes to the registry for proper operation such as registering OLE or COM objects.
    But, regarding the error you were getting with the INET functions, the last four errors all stem from the first error. If you notice, the last four errors say that there is an invalid parameter. The invalid parameter is "webserverHandle" which is returned by the INET_StartWebServer function.
    Note: The INET_PanelToJPEG function doesn't return an error because the "webserverHandle" is not passed to this function.
    The INET_StartWebServer could be throwing the socket error because you are running another application that is using port 80, such as Microsoft FrontPage which is a web server. Web servers use TCP/IP port 80 by default, and a TCP/IP port can only be used by one application at a time.
    Try using another number (<= 65536) for the port number in the INET_StartWebServer. In order to use a port below 1024 on Unix and Windows NT, you might need to run the server as root or system administrator. Since most web browsers expect to find the web server on port 80, you will have to explicitly specified the new port number in the URL. i.e. http://youripaddressortnumber/index.htm
    Alternatively, you can also disable any other web server applications that are running on the PC.
    Thanks.
    Wendy L
    LabWindows/CVI Developer Newsletter - ni.com/cvinews

  • SSIS connection problem -- inexplicable red box

    I've developed a lengthy SSIS package to migrate data from an old database to a new SQL Server 2008
    database. My workstation is on the same domain as our dev SQL server. The SSIS package has several connection managers. When I'm connecting to the databases in the dev environment, everything works fine.
    As a final stage in testing the package, I'm trying to change the connection managers of the source databases to our production environment. Production is in a different, untrusted domain. I'm using SQL Server authentication. When I change a connection manager
    from the dev server to the production server, I click the Test Connection button and see "Test connection succeeded." I go to an OLE DB source object that uses this connection manager. I click the "Preview..." button and it successfully
    displays sample data. But when I try to execute the step that contains this OLE DB source object, I get these error messages and the box turns red:
    Error: There were errors during task validation.
    [SSIS.Pipeline] Error: One or more component failed validation.
    [SSIS.Pipeline] Error: component [OLE DB source object name] (329) failed validation and returned error code 0xC020801C.
    [PRIMS Commands [329]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager [Connection Manager name] failed with error code 0xC0202009.  There may be error messages
    posted before this with more information on why the AcquireConnection method call failed.
    For the provider on the connection manager, I've tried SQL Server Native Client 10.0, SQL Server Native Client 11.0, and Microsoft OLE DB Provider for SQL Server. All of them give me the same failure.
    I'd really appreciate any suggestions. Thanks.
    Addendum.  In my troubleshooting, I've turned off Run64BitRuntime, and the connections work.  Why would 64-bit runtime work when connecting to the dev server but not the production server?
    This isn't really a good workaround for my problem because the package uses a fuzzy lookup transformation, which only runs in 64 bit mode.  I might be able to separate that out into another package, but that would be inconvenient at best.

    Hi AlanYoung001,
    The issue is rather odd. Could you try the ADO NET Source and use the .Net Providers\SqlClient Data Provider and check the issue again? In addition, if it is possible, run this package on your Dev server to see if the package works. Besides, the error message
    should not be complete, could you post the complete error message to see if we can find more clues? 
    Regards,
    Mike Yin
    If you have any feedback on our support, please click here
    Mike Yin
    TechNet Community Support

  • Write Operation to Oracle DB fails

    Hi,
    One of my provisioning jobs should write user data (name, telephone, mail etc.) in an oracle database (Oracle Database 10g Express). This operation works a few days ago(!).
    But now I get an error, if i submit this provisioning job:
    Requested operation requires an OLE DB Session object, which is not supported by the current provider.
    Have you any ideas...?!

    I'll give you good advice ... Never use Oracle and IDM.
    But when it has to be, you must use an additional oracle ODAC installation for using OLE DB.

Maybe you are looking for