RE: OLE
I have trying to integrate MSGraph in Forte for a while with
little success. I agree with you that Forte example is too
basic.
Perhaps your problem is simpler but I found impossible to
send data from Forte to the OLE Object. I've been said
that it's easier through Excel.
When you generate project Graph from Olegen, you start with
a broken hierarchy that needs to be rebuilt.
A posting from Pavel Ryzhkov on 14/10/97 may be helpful for
you. If you cannot access it, I can send you a copy.
Regards,
Jesus Zamarreno
EAM Sistemas Informáticos S.L.
C/ Padre Llanos, 33 47014 Valladolid
Tlf.: (983) 352922 Fax: (983) 352115
e-mail: [email protected]
De: Jean Baptiste BRIAUD <[email protected]>
A: [email protected]
Asunto: OLE
Fecha: viernes 31 de octubre de 1997 17:44
Hi,
I need to use MSGraph with OLE integration.
I saw Forte example, but it seem too basic :
How to know what to do with all this classes in
the imported project Graph ?
How to know which CDispatch's attribute
to call ?
I didn't found any doc on Office, Microsoft Shared, ..
directory.
Thanks in advance,
Jean-Baptiste BRIAUD, [email protected]
SEMA GROUP
16 rue Barbes
92126 Montrouge
France
DDE is an interface much like OLE - e.g. it has calls to invoke methods and set properties - again you need the doc from the vendor to know what properties to set and methods to call. Likewise the C interface can be used to call public apis exposed by the vendor in a DLL or EXE. This uses the ORA_FFI package. Again the interface is simple (fo someone who understands C) but without the vendor doc about any APIs they expose it's of no use.
What interfaces does the software expose?
Similar Messages
-
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
--VijayHello,
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 -
OLE - Creating header and footer in Word document using abap
Hi All,
I'm using OLE to create a WORD document from abap.
I need to insert a logo in the header and a footer text.
Does any one know how to insert a header/footer with abap ole ?
I tried to insert the logo as picture with:
call method of o_inlineshapes 'AddPicture' = o_logo
exporting
#1 = 'C:\logo3.jpg'.
but I can't put it in the place I want..
thanks,
Michalcall method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
call method of lobj_activewindow 'ActivePane' = w_activepane.
call method of lobj_activepane 'View' = w_activeview.
SET PROPERTY OF w_activeview 'SeekView' = '9'. " header view.
" This will set the view to the header view. Whatever you write here
will go to the header.
Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
CALL METHOD OF w_selection 'TypeText'exporting
#1 = 'Rahul Anand'.
"Now set the view again to the main doc view.
SET PROPERTY OF w_activeview 'SeekView' = '0'.
" Now write your main doc code .
" For footer the view is '10'.
call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
call method of lobj_activewindow 'ActivePane' = w_activepane.
call method of lobj_activepane 'View' = w_activeview.
SET PROPERTY OF w_activeview 'SeekView' = '9'. " header view.
" This will set the view to the header view. Whatever you write here
will go to the header.
Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
CALL METHOD OF w_selection 'TypeText'exporting
#1 = 'Rahul Anand'.
"Now set the view again to the main doc view.
SET PROPERTY OF w_activeview 'SeekView' = '0'.
" Now write your main doc code .
" For footer the view is '10'. -
Header and footer in excel sheet (ole object)
How can we generate footer and header in an excel sheet with ole object ?
Thankshi 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 -
The OLE DB provider automatically retrieves information for the
metadata columns. For example whether a column is a key column.
Is there are a way to control whether the provider shoudl
retrieve this information ? The impact on performance is
significant. The Microsoft OLE DB for Oracle dll does not
provide the metadata and the performance is excellent.
nullPlease have a look at this solution:
SSIS package error
or this one:
BIDS 2008 SSIS Package Data Flow Task fails validation and returns “VS_ISBROKEN” Error
Saeid Hasani [sqldevelop] -
How can I create files from Documents stored in a longraw via OLE
Hello,
we use forms 6 in client-server-mode and store documents (pdf, tif, doc ... all is possible) in a longraw using an OLE-container.
Actually I develop a new application which has to exchange document-files with other servers.
Is there a simple way to generate files from this long raw?
What does this OLE do to my file before storing it in the long field.
Is this OLE still a good format?
The migration to webforms could be a good opportunity to change something ...
Maybe we better store the files in the file-system and show them with the show_document procedure.
WolframSet your export type to Hard Disk and export to a folder on your hard-drive, and optionally re-import those exported JPGs using a checkbox on the Export panel.
When I do exports like this I typically put them in a subfolder of the raw files rather than physically mixed into the raw files, themselves. If I want to see the raws and jpgs mixed together I can just enable Show Photos in Subfolders. -
Row Grouping in Excel through ABAP OLE
Hi Experts,
I am downloading some ALV report output using OLE with different formatting. The downloaded file has to show data
in the grouping format.
For example;
Interanl table contains fields : Customer Number and sales Order, Amount,
Customer Number sales Order Amount
1000 120000001 3000.30
1000 120000002 3400.00
1001 122000001 2000.00
1001 122000002 3440.00
After it downloaded the Excel should contains only two line(by dfaultt)
+ 1000 120000001 3000.30
+ 1001 122000001 2000.00
When you click on symbol(+) then hidden rows will shown.
We can do it in Excel by using Group. Just select few rows(row number 1 to 5) and then go to
DATA->GROUP AND OUTLINE->GROUP.
Then u will see one line for the selected rows.
Can anybody tell me how to achieve it through OLE in ABAP. Your inputs are highly needed for me. Thank you so mush!
Regards,
Meera.We can do it, Can anybody tell me OLE Mehod which should I use in the reprot?
-
How to add OLE wordpad objects to a crystal report through VB program
Can we programmatically add OLE wordpad objects to a crystal report XI r 2. through VB.NET or VB6?
And is there a way of treating a database binary/blob field as an ole object in CR?Hi Mohan,
Try it in the Designer first. If it works in the designer then it will work in our SDK's but you'll have to use RAS. So when you post your question to the .NET Development - Crystal Reports Forum be sure to specify what version you are using and anything else as far as versions go.
It may be easier to simply link the OLE Object in the designer, check the help file out on how to.
Thank you
Don -
Interaction between Excel and Word OLE
I am using Office 2007 to write procedures but a problem is apparent only when run on Office 2013.
A procedure in a workbook that records Sales information runs to transfer data to another workbook that stores Invoice information, and then opens Word to generate a mail merge document from a template (dotm) which has an event procedure (on Open) to merge
data from the Invoice spreadsheet into a document to produce an invoice. This procedure works without problem on the Office 2007 (Vista) machine and until recently likewise ran without problem on the Office 2013 (Windows 8.1) machine. However,
apparently following an automatic update to the Office 2013 machine, when the Word document is generated the procedure "hangs" at the point of reading the data from the Invoice workbook, and after a longish delay a message is generated along the
lines of the program awaiting an OLE action. The only way to stop the whole process is via task manager.
After much research I have found that on the Office 2013 machine, the mail merge of data from the Invoice workbook will not now work if the Invoice workbook is open, bot works OK if it is closed.
I have therefore programmatically closed the Invoice workbook, and the procedure now works on the Office 2013 machine (and on the Office 2007 machine). However, I would like the Invoice workbook to be open when the Word document has been generated.
I therefore inserted a few seconds wait into the procedure to allow the mail merge to be completed, then tried to reopen the Invoice workbook. I now get the message that the Invoice workbook is locked for editing, and asking if I want to open a read
only copy (which I don't). The Invoice workbook does not appear on the task bar, nor does it appear in task manager. I have tried code to make it active and I then get "subscript out of range", and I have tried code to make it visible
and I again get "subscript out of range". However, if I close down the word documents generated with the data from the Invoice workbook, I can then open it; presumably the merge process is treated as still being in progress while the
documents are open, and the Invoice workbook is "released" when the documents are closed.
Has anyone any advice to offer on how to deal with this problem of not being able to open the Invoice workbook while the mail merge documents are open. The problem is apparent in both Office 2007 and 2013.Hi Caillen
Thanks for looking at this. I should explain that I do all my work on an Office 2007 machine for a family member who lives elsewhere, so I don't have direct access to the Office 2013 machine. However, they are reasonably computer literate and
report faults accurately. To deal with your queries:
1. Their Office (and Windows) updates are installed automatically. Basically, their systems are kept up to date. It is only a guess that an update may have caused the problem, for the procedure worked as expected for some months and no
other changes have been made. The problem does not occur on my Office 2007 machine.
2. For the initial problem there was no error message initially; the little circle just kept going round for a minute or so, then a message appeared on the Office 2013 machine saying that Excel was waiting for another program to complete an OLE
action. That message no longer appears because I have cured the problem by closing the workbook that is the data source for the mail merge.
3. I do indeed mean VBA code by procedure (Sub xxx()). The code in the Word Template on which the procedure originally hung up was the third line below - i,e, the line starting ActiveDocument.MailMerge.OpenDataSource Name:= _
Sub ctPrintInvoice()
ActiveDocument.MailMerge.MainDocumentType = wdFormLetters
ActiveDocument.MailMerge.OpenDataSource Name:= _
ThisDocument.Path & "\ColTarInvoices.xlsm", _
LinkToSource:=True, _
Revert:=False, _
Format:=wdOpenFormatAuto, Connection:="DETAILS", _
SQLStatement:="SELECT * FROM `'Print Invoice$'`", SQLStatement1:=""
"DETAILS" is a named range within the workbook that is the data source for the mail merge. "Print Invoice" is the name of the worksheet that holds the data. This code runs as an event on opening the document, which is done
automatically within the code in the workbook. The code in the Sales workbook to open the document is:
Set objWord = CreateObject("Word.Application")
If strSourceSheet = "Sales" Then
Set objctMergeDoc = objWord.Documents.Add(ThisWorkbook.Path & "\ctInvoice1.dotm")
ElseIf strSourceSheet = "Euro Sales" Then
Set objctMergeDoc = objWord.Documents.Add(ThisWorkbook.Path & "\ctEuroInvoice1.dotm")
End If
objWord.Visible = True
Set objWord = Nothing
Set objctMergeDoc = Nothing
However, the procedure also hung in the same place on the Office 2013 machine if the document was opened manually.
4. The code in the Sales workbook to close the Invoice workbook is:
Workbooks("ColTarInvoices.xlsm").Close
The code to reopen it is:
Workbooks.Open (ThisWorkbook.Path & "\ColtarInvoices.xlsm")
This generates the message that the workbook is locked for editing. The same message is generated if I try to open the workbook manually while the merged documents are still open.
(The files are all in the same folder)
With thanks
Andy C -
Report with OLE Object Problem (Crystal Report 11)
Post Author: ibertola
CA Forum: General
Hi all,I'm a new user, and I've got a problem with OLE object. I would like to have a report that show me ONLY one of many OLE (word document) in Crystal structure.I've created 3 section detail, and in each one I've insert OLE object (creating from a file, and LINK).So, if I change one document stored locally, and then refresh the report, the content doesn't change like the linked file! Actually I've got all locally Please help me.CR XI r2 is not supported on WIN 2008. See the [supported platforms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7081b21c-911e-2b10-678e-fe062159b453]
documentation and [this|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] wiki.
Ludek -
OLE Automation , date formatting
Hi everybody,
i have a problem with OLE automation for "date" formatting.
The cell value is correct ( DD/MM/YYYY) , but in some cases the cell option is "Date" ( this is the correct option ) and in other cases the cell option is "General". This last option is wrong because the value is left-justified, meanwhile the "Date" option is right-justified.
I wish to have the "Date" cell option always. (right-justified)
Is it possible to set this option with statement "SET PROPERTY OF..." ?
Thanks in advance.
Best regards.
Dario.Hi,
you can use this:
SET PROPERTY OF H_CELL 'NumberFormat' =
'dd\/mm\/yyyy'.
SET PROPERTY OF H_CELL 'Value' = '01/01/2012'.
Regards, Dieter -
Crystal Reports: How to change Oracle OLE DB server at runtime
Post Author: dvlasman
CA Forum: Data Connectivity and SQL
I'm using a rpt made with Crystal Reports 8.0.1 and VB 6. The report was made using the Microsoft OLE DB provider for Oracle. What I want to do is change to Oracle server / database the report is connecting to at run time before the report is displayed. I am using the Crystal Report Engine 8 Object Library (cpeaut32.dll), not the ocx.After creating the report object:Dim CrystalReport As CRPEAuto.ReportI open my report and discard saved data:'Open The ReportSet CrystalReport = CrystalApplication.OpenReport(msReportSource)CrystalReport.DiscardSavedDataConst sDBServer = "ORCL.SERVER" 'My TNS name for the Oracle ServerConst sDatabase = "ORCL.SERVER" 'I'm not sure what this value should beConst sUID = "system"Const sPwd = "manager"I was then going to change the database connection one of two ways:1:Dim objDatabaseTable As CRPEAuto.DatabaseTableFor Each objDatabaseTable In CrystalReport.Database.Tables Call objDatabaseTable.SetLogOnInfo(sDBServer, sDATABASE, sUID, sPWD) If (Not objDatabaseTable.TestConnectivity) Then Debug.Print "Database failed connection: " & objDatabaseTable.Name End IfNextSet objDatabaseTable = Nothing2:call crystalapplication.LogOnServer("pdsoledb.dll","MSDAORA.1",sDATABASE,sUID,sPWD)Neither of these two way gets me a successful connection. What am I doing wrong, and which is the preferred method to use?ThanksDeanDid you get a resolution to your problem? I cannot dynamically change the datasource location in .NET using CR XI via OLE DB for Oracle. I get "This field name is not known." messages and when I try using the set datasource location in the designer tool, the mapping dialog box comes up with no fields in the right box. Thanks, Brian
-
OLE Automation is not working in Portal
Hi Experts,
We have one report where OLE automation technique is used to upload the data from multiple worksheets (single excel).
But when we try to execute it from Portal using IView then it doesn't run and give problem in CREATE OBJECT excel "EXCEL.APPLICATION" statement. But when we run it from SAP GUI, it run successfully.
Please suggest if you have any idea.
Also let me know if some more information required because i am new to this kind of issue.
regards
SubirHi,
Are you using SAP GUI for HTML??? There are several issues and limitations with OLE using HTML.
Look this OSS: 314568
Hope this helps,
Iván. -
Ole object missing on pdf file
i have long raw field in database. i am saving excel workbook in it through ole container. it displays well on report but when i generate pdf from report it miss ole field and show that portion of report blank. It exports ole object in postscript format (.eps) but i dont now any software which can open this file and show result on screen.
i am using developer 6i with oracle 9i database in client-server environment.
thanksHello,
Take a look to the thread :
Re: Image in Reports
eps files are "Encapsulated PostScript", for more details :
http://www.tailrecursive.org/postscript/eps.html
for example
Regards -
OLE automation in Discoverer9i
Is it possible to place OLE objects into Discoverer 9i Plus screen?
I'm working on a report where it gives end user the ability to chose between two days. The user defines these days.
So far I only find a way of creating a parameter and print these two days manually which is not convenient to user.
I want to automate this - create two parameters or LOVs,
name them "Date From", "Date To" and by clicking on it - the calendar shows up. User then picks any necessary dates from there. It is exactly the same when we perform a file search in Windows based on the file creation date.
Any your suggestions will be greatly appreciated.
Thanks,
Oleg ShabanovUnless your application server is on Windows OS, or it is connected to a Windows server by RFC. What is the requirement exactly, I don't understand?
-
Hello to all,
I'm having a problem concerning the use of ole objects.
I'm using Oracle Forms 6.0.8.16.0 with Oracle Reports 6.0.8.1.7.1 on Windows 2000 with Oracle Database Server 9.2.0.4.0.
I have several forms with base tables including blob columns which are used to store ole objects. These could be MS-Word-documents or Bitmaps of signatures. When inserting these objects via "create new" and choose the object type, Word or Paintbrush opens and i can create my objects. After committing these changes to the database, these objects are printed in a report correctly. When inserting these objects via "create from file" or using a push button which is executing "initialize_container" with a file and committing to the database, i get an error while executing the report "REP-0082: Error executing SCA utility".
I want to use a push button to store my ole objects because the "create" dialogue is confusing our users because there is a huge list of all possible ole objects on the client.
Can anybody help with this ?
And to the Oracle Team, please don't suggest simply to upgrade to a higher patch level without looking at the problem. First, I tested all patch levels up to 16, with no change. Second, it's not easy to upgrade for an 24x7 application with hundreds of users in different countries with different ways of deployment.
Regards
KaiPlease re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551
Maybe you are looking for
-
This has happened on multiple occasions. I don't know why Apple can't figure out how to create a reliable program. I have been using iMovie for several months now, updated to '11 in April, on OSX 10.6.8, and usually it works fine, but occasionally, o
-
Inbound idoc MATMAS - find userexit to map extension
Hi ! I have an inbound IDOC MATMAS04 with a specific extension. I need to map the fields of the extension : some of them into an append of MARA, some others into characteristics. <b>I can't find the user exits I need.</b> I guess there are 2 of them.
-
Solaris 10 not 'seeing' all processors on e450
When I do a psrinfo I only see 0 1 3 During boot the system says 4 x 296 mhz ultrasparc... I only see 3 processors when looking into the CDE sun console app. as well. Is this normal? I did a boot -r but nothing changed. Thanks
-
How to change Macbook pro MD101Hn/a from 32 bit to 64 bit?
How to change Macbook pro MD101Hn/a from 32 bit to 64 bit? Adobe softwares needs 64bit softwares to install and access........
-
Hi, I am using the following code to get the Weblogic domain path one of my managed beans. InitialContext ctx = new InitialContext(); MBeanServer server = (MBeanServer)ctx.lookup("java:comp/env/jmx/runtime"); ObjectName service = new ObjectName("com.