Attention!!-don't use OLE object in Reports

If you are planning to use or is currently using OLE objects in Reports-please don't use it as the object maynot reload in future and your report may not even open in Report Builder.I got this message when opening the report containing OLE object:
REP-4004: Error occurred while restoring OLE object
and it refused to open up crashing my days of work.
The pity is I can't open my report even to remove the OLE object.

I know that is weird.I placed the object in the same directory-but in vain.Afterall, what's the logic of putting it in the same directory after embedding it?

Similar Messages

  • Help! Print OLE object from report builder.

    Dear OTN Members,
    I would like to know how to print out a OLE object from
    report builder, because currently I face problem to print out
    the whole contain of the winword document file, because when I
    display the OLE on the form it will only display according the
    size I declare for it, it seems that it will not automatic
    extend the size itself. i.e. if I drag the size to one page in
    fact the maximum is one page, then when it display, it will only
    display maximum one page eventhough the document file maybe
    contain 10 page inside it. So when I print out the report it
    will only show me one page, so if you have any solution, pls
    share with me, thank you.
    null

    As far as I know you have to use OLE Item to work with the information. Unfortunately there is not any standart way to extract a source document from OLE. Some applications such as Word, Excel support OLE Automation, so you could use OLE2 package to save the document as a file, that is the easest way. But others don't, so you may have to use an undocumented way to extract a document.
    Take a look at the following thread:
    Subj: 6i to 9i Ole to LOB translations, How do you know the App. server?
    Re: 6i to 9i Ole to LOB translations, How do you know the App. server?
    P.S. If you can't extract some types of your documents, please let me khow.
    P.P.S. To extract a document through OLE2 package you could use something like the following. /I'm not sure the code is correct/:
    DECLARE
    handle ole2.obj_type;
    BEGIN
    ACTIVATE_SERVER('OLE1');
    handle := forms_ole.get_interface_pointer('OLE1');
    BEGIN
    -- Save a document to disk
    Args :=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(Args, 'C:\test.doc'); -- file name
    OLE2.INVOKE(handle, 'SaveAs', Args);
    OLE2.DESTROY_ARGLIST(Args);
    EXCEPTION WHEN OTHERS THEN
    Message('Error');
    END;
    -- OLE2.RELEASE_OBJ(handle);
    END;

  • 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

  • Doubt , how to display ole objects in report builder

    Please tell me, how to display ole objects in report builder.
    I mean i wanted to print ole object in report, so how to do that.

    Just to clarify Lixia's response.
    In Reports 9i we have deprecated our OLE functionality. Reports created in prior versions that contain OLE objects should still run, but you will not be able to create new reports containing OLE objects.

  • Ole Object in Report

    Hi!
    We r trying to embed an OLE Object (gif,bmp) in the report . The report shows the logo (gif) when run thru client server but when run thru Application server no image is shown. Can anyone tell what is the problem.
    Thanks & Regards,

    Srini,
    OLE doesn't work on teh Web. Creating a Report for the Web converts the output to HTML, HTMLCSS or PDF. The OLE container gets excluded which is why the image is not shown. Work around is instead of using OLE to include images, to reference them on the filesystem of the Server (or database).
    Frank

  • Is it a good idea to use ABAP objects for reports?

    Hello Experts,
    Is it a good idea to use ABAP objects instead of the traditional ABAP for coding reports?

    Hi,
    Go throught Document it will Give you eight Reasons why OOABAP Should be used.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/37c5db90-0201-0010-3a9b-d0a5288f3c15
    Must go through
    Regards,
    Gurpreet

  • How to use OLE object in Forms6i on web

    Hi,
    I am migratiing 4.5 forms to 6i on web, in 4.5 there is ole to invoke WINWORD, is it possible in 6i on web to invoke WINWORD form the client machine??
    null

    Hello GopalY,
    In my experience its not possible to call OLE object in Webui. Maybe customer 3 party application will be supply some web service to handle credit card payments. I think this is the simple way to access 3party application.
    Regards,
    Zafer,

  • Can't print OLE objects when 9i report developed in 6i

    Hi,
    I am migrating my reports from 6i to 9i. I just open report in 9i which is already developed in 6i and run the report it don't print OLE objects. It shows when I run report in Designer Preview, but in printing it shows blank
    --Vijay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello,
    The answer is in the Migration FAQ :
    When I open an Oracle6i Reports Developer report in the Oracle Reports Builder 10g and run my Web layout, I get an empty Web page in my browser.
    http://www.oracle.com/technology/products/reports/htdocs/faq/faq_migration.htm#368
    Regards

  • Display byte array image or ole object in Section through dynamic code?

    To Start I am a Complete Newbe to Crystal Reports. I have taken over a project originally written in VS2003 asp.net using SQL Server 2005 and older version of Crytal Reports. I have moved project to VS2010 and Cryatal Reports 10 still using SQL Server 2005. Have multiple reports (14 to be exact) that display data currently being pulled from database suing a dataset, each report has from 4 to 14 Sections. I have modified database table with two new fields. Field1 contains string data with full path to a scanned document (pdf or jpeg). Field2 holds a byte array of the actual image of the scanned document. I have tested the database and it does infact contain the byte array and can display the image via VB.net code. I can make the report display the scanned image using ole object.
    Now my real question: I need to add a new Section and it should display either the byte array of the scanned image or the actual scanned image (pdf or jpeg) . How can I have it do either of these options via code dynamicly while application is running?

    First; only CRVS2010 is supported on VS2010. You can download CRVS2010 from here;
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    Developer Help files are here:
    Report Application Server .NET API Guide http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_api_en.zip
    Report Application Server .NET SDK Developer Guide http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_dg_en.zip
    SAP Crystal Reports .NET API Guide http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip
    SAP Crystal Reports .NET SDK Developer Guide http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip
    To add the images, you have a number of options re. how to. You even have two SDKs that y ou can use (RAS and CR).
    Perhaps the best place to start is with KB [1296803 - How to add an image to a report using the Crystal Reports .NET InProc RAS SDK|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233393336333833303333%7D.do]. The KB describes how to add images to a report using the InProc RAS SDK, but also references other KBs that use CR SDK.
    Also, don't forget to use the search box in the top right corner of this web page.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How can I run graphic object on report. ( I got REP-1246 Chart not found)

    Hi All,
    I made a report that consists a chart object. When I run it on report builder, it works well. But When I call the report from client side, I got "Rep-1246 Char Document not found" . I tried to solve it , I couldn't solve the problem . If I delete chart object from report , then report works well on client side. I didn't use graphics builder to create graphs I used only report builder to do it. I read the threads about it , but I couldn't find the solution. All solutions are about path of graphic file. I don't understand it. Because I only have *.rdf *.rep file. There is no any graph file in my system. I can create it in graphic builder but I don't know how can I deploy the graph object into report layout and run ?
    I need urgent help ..
    Thanks in advice
    Suleyman

    Hi again , I used developer 2000. In order to show graphic object on report firstly
    I created my graphic object on oracle graph builder.After that I save it like mygraph.OGD . Then I added graphic object on report builder by using graphic object on report builder. When you click the graphic object you will see CHART FILENAME part in part of CHART. In this field , you should add graphic file path that you created on graphic builder. I added mygraph.OGD into this filename part. I worked well.
    Good LUck !

  • ABAP OLE Objects

    Hi ,
      I have used OLE Objects to move data from  5 internal tables to 5 sheets in a single XL file , but i am not able to get 4th and 5th sheet newly created , instead they are getting over writed in the third sheet itself.
    so how to resolve this.
    help reg this.

    Hi,
      I think  you have given the third  sheet name  for fourth and fifth.
    call method of application 'Worksheets' = sheet
          exporting
          #1 = 1.
          set property of sheet 'Name' = sheet_name.
          call method of sheet 'Activate'.
    OR
    you might have missed to add sheet.
    CALL METHOD OF application 'Sheets' = sheets.
       CALL METHOD OF sheets 'Add'.
    Run my program:
    REPORT ZP_EXCEL .
    *& Report ZP_EXCEL *
    include ole2incl.
    data: application type ole2_object,
    workbook type ole2_object,
    sheet type ole2_object,
    cells type ole2_object,
    sheets TYPE ole2_object.
    constants: row_max type i value 256.
    data index type i.
    data : det type ref to CL_ABAP_structDESCR,
           wa like line of det->components.
    data: begin of i_finaltab occurs 0,
           Col1 type i,
           col2 type i,
           col3 type i,
           col4 type i,
          end of i_finaltab.
    data : count type i,
            v_excel_count(3), " type i value 1,
            sheet_name(15)  .
    *START-OF-SELECTION
    start-of-selection.
    do 100 times.
      count =  count + 1.
      i_finaltab-col2 = 5 * count.
      i_finaltab-col3 = 10 * count.
      i_finaltab-col4 = 20 * count.
      move : count to i_finaltab-col1.
      append  i_finaltab.
      clear i_finaltab.
    enddo.
    clear count.
    create object application 'excel.application'.
    set property of application 'visible' = 1.
    call method of application 'Workbooks' = workbook.
    call method of workbook 'Add'.
    Create first Excel Sheet
    call method of application 'Worksheets' = sheet
    exporting
    #1 = 1.
      call method of sheet 'Activate'.
      set property of sheet 'Name' = 'EXCEL0'.
         count = 1.
         index = row_max * ( count - 1 ) + 1.
         perform header_details.
    DATA FNAME(60) VALUE '/data/sapdata/mk112.xls'.
    OPEN DATASET FNAME FOR OUTPUT.
    loop at i_finaltab.
       count = count + 1.
      if count LE 6.
        index = row_max * ( count - 1 ) + 1. " 1 - column name
        call method of sheet 'Cells' = cells
        exporting
         #1 = index.
        set property of cells 'Value' = i_finaltab-col1.
         index =  index + 1.
        call method of sheet 'Cells' = cells
        exporting
         #1 = index.
        set property of cells 'Value' = i_finaltab-col2.
        index =  index + 1.
        call method of sheet 'Cells' = cells
        exporting
         #1 = index.
        set property of cells 'Value' = i_finaltab-col3.
        index =  index + 1.
        call method of sheet 'Cells' = cells
        exporting
         #1 = index.
        set property of cells 'Value' = i_finaltab-col4.
      else.
        v_excel_count =  v_excel_count + 1.
       CALL METHOD OF application 'Sheets' = sheets.
       CALL METHOD OF sheets 'Add'.
       concatenate 'EXCEL' v_excel_count into sheet_name.
         clear count.
         count =  count + 1.
         call method of application 'Worksheets' = sheet
          exporting
          #1 = 1.
          set property of sheet 'Name' = sheet_name.
          call method of sheet 'Activate'.
          index = row_max * ( count - 1 ) + 1.
          perform header_details.
          count =  count + 1.
          index = row_max * ( count - 1 ) + 1. " 1 - column name
          call method of sheet 'Cells' = cells
          exporting
           #1 = index.
         set property of cells 'Value' = i_finaltab-col1.
          index =  index + 1.
          call method of sheet 'Cells' = cells
          exporting
           #1 = index.
          set property of cells 'Value' = i_finaltab-col2.
        index =  index + 1.
        call method of sheet 'Cells' = cells
        exporting
         #1 = index.
        set property of cells 'Value' = i_finaltab-col3.
        index =  index + 1.
        call method of sheet 'Cells' = cells
        exporting
         #1 = index.
        set property of cells 'Value' = i_finaltab-col4.
       endif.
    endloop.
    *&      Form  header_details
          text
    -->  p1        text
    <--  p2        text
    form header_details.
    det ?= cl_abap_typedescr=>describe_by_DATA( i_finaltab ).
    loop at det->components into wa.
      call method of sheet 'Cells' = cells
      exporting
      #1 = index.
      set property of cells 'Value' = wa-name.
      index = index + 1.
    endloop.
    endform.                    " header_details

  • Updating or Modifying using OLE

    Hi experts,
            I have a requirement where i need to modify the existing word/excel template with some values. I know this can be done by uploading, modifying and then downloading the document. But i want to know how to achieve this using OLE concepts ?
    Regards,
    Vijayalakshmi

    HI,
    another question,
    will the template be available from SAP DMS, or will it be on presentation/application server?
    If it is in SAP DMS, then using CVAPI_DOC_VIEW you can create a replica of it in the SAP working directory, use OLE objects to read/update values in the cell and SAVE it as a new copy ata given location.
    If the file is on the presentation server then you can make a copy of it in SAp working directory, again make use of SAP OLE objects to read/update values in the cell and SAVE it as a new copy ata given location.
    Sample code
    * START THE EXCEL APPLICATION
      CREATE OBJECT excel 'EXCEL.APPLICATION'.
      CALL METHOD OF excel 'WORKBOOKS' = workbooks.
      SET PROPERTY OF excel  'VISIBLE' = 0.
      CALL METHOD OF workbooks 'OPEN' EXPORTING
                #1 = filep.
      CALL METHOD OF excel 'Worksheets' = sheet
       EXPORTING #1 = 1.
      CALL METHOD OF sheet 'Activate'.
    *  FREE  OBJECT sheet.
    * Fill the requried cells
      CALL METHOD OF excel 'CELLS' = cells EXPORTING #1 = 1 #2 = 31.
      SET PROPERTY OF cells 'VALUE' = l_sign_path.
      FREE OBJECT cells.
      GET PROPERTY OF excel 'ACTIVESHEET' = sheet.
      CALL METHOD OF sheet 'SAVEAS' EXPORTING
           #1 = g_file_dest
           #2 = 1.
      CALL METHOD OF workbooks 'CLOSE'.
      CALL METHOD OF excel 'QUIT'.
      FREE OBJECT excel.
    Hope this helps.

  • OLE Objects - Visio drawings?

    Post Author: sarmour
    CA Forum: Crystal Reports
    I've managed to get a bitmap image in my report by inserting an OLE object, and then in the Format Editor, under the Picture tab, I've entered a formula for the Graphic location.  The formula is simply: + '\' +
    What I really want to do is get a Visio drawing inserted in my report by pointing to the file location in a similar manner -- is this possible?
    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

  • OLE object storage and retrieval FORMS 6.0

    Hello All,
    Iam using forms 6.0 and iam using OLE object to store the data object into the database, using the block wizard i created the object and from the
    action->Save iam saving the ole object to the database....
    Now i want to retrive the ole object from the database....
    my sql is
    declare
    ol long raw;
    begin
    select ole_object into ol from drawing_files where draw_no=1;
    drawing_files.ole_object:=ol;
    end;
    Its showing error in "Bad bind variable"
    How to solve the error
    and if possible i need the sql coding for storage and retreival of OLE object data..
    Thanks......

    I have re-applied the patch and the problem has vanished??
    Everything appears to function properly.

  • How to insert ole object like word doc at runtime

    To insert word doc into crystal report

    Hi Vinod,
    To add an OLE object in reports follow the steps given below-
    1- In CR environment open a Report in which OLE object needs to be added.
    2- Click on insert and click on OLE object.
    3- A wizard pops up - choose appropriate file for e.g- Microsoft World Document.
    4- two buttons will be there-
    a> Create new - creates a new world document.
    b> Create from new - Includes a exsisting file.
    5- one more option is their in wizard -
    Show icon(check box) - shows the OLE object as an icon in report.
    6- Click on ok and place the object at required position in report.
    Hope it works.
    Regards
    Amit

Maybe you are looking for

  • Safari often freezes up my whole computer.

    Safari often freezes up my whole computer. The cursor can move around some on the desktop, but then it quickly jumps back to the last safari page. Nothing seems to help. I have to shut down the computer from the power button. Argh!

  • Table of contents - layout

    Hello! I need to create a table of contents but I do not know how to change the layout. The table of contents has no structure: http://img253.imageshack.us/img253/703/tableofcontentsunstructxh8.jpg I have 3 types of titles. I tried to page it up manu

  • Excel cell formatting

    I have a programme that sorts through test results and picks out the rejects according to its "delta" value. I've noticed now that some rejects weren't picked up for some reason. As a fail safe I want to be able to highlight any cell whose value is a

  • Multiple levels in ALV Hierarchy

    Hi All How to display Multiple levels in ALV Hierarchy. I have header and Item Tables but Under Header Expansions I have to display one more Expansion. Means Multiple levels.

  • How do I back up videos or photos to the time capsule outside of utilizing time machine as well?

    I was told when I purchased the time capsule that I could use it for Time Machine purposes but also use it as personal storage of files.  How do I back up my personal videos and photos to the time capsule outside of using the time machine as well?