Will ole2.create_object work with Open Office Document?

Dear All,
Using ole2 package, we have already did a small application which will interact to Microsoft Excel. Now there is a business need to work with Sun's Open office document.
We used to create a excel object like OLE2.CREATE_OBJ ('Excel.Application');
Is there any other way of invoking/creating a open office spread sheet using ole2 package. Or any other way ?
Regards,
Balaji

Dear Developer;
Try this peace of code
PROCEDURE exec_macro
IS
myapplication ole2.obj_type;
mydocuments ole2.obj_type;
mydocument ole2.obj_type;
args ole2.list_type;
Begin
myapplication := ole2.create_obj ('Word.Application');
ole2.set_property (myapplication, 'Visible', 0);
mydocuments := ole2.get_obj_property (myapplication, 'Documents');
args := ole2.create_arglist;
ole2.add_arg (args, PC$FileName);
mydocument := ole2.invoke_obj (mydocuments, 'Open', args);
oe2.destroy_arglist (args);
args := ole2.create_arglist;
-- invoke the PrintPdf MSWorld macro
ole2.add_arg (args, 'PrintPdf');
ole2.invoke (myapplication, 'Run', args);
ole2.destroy_arglist (args);
ole2.invoke(myapplication,'Quit');
ole2.Release_obj (mydocument);
ole2.Release_obj (mydocuments);
ole2.Release_obj (myapplication);
End;
Hope it works coz i did not try it but i try excel.application.
Regards
Reda El Mitwally

Similar Messages

  • Can Secure Enterprise Search index Open Office documents?

    Hi, I'm wondering if Secure Enterprise Search can index Open Office documents, and if not, is there a planned release where this will be supported?
    Thanks!
    Dan

    The current release - SES 11g (not yet on Windows) - can work with Open Office files.

  • I upgraded to Mountain lion. I could not open any of my word documents so i downloaded Libre Office. It is downloaded but how do I get it to work with my old documents??

    I upgraded to Mountain lion. I could not open any of my word documents so i downloaded Libre Office. It is downloaded but how do I get it to work with my old documents??

    I don't know what file formats LibreOffice supports, but my guess is it can only handle the OpenXML format (new Office docs).
    You could use this online converter: http://www.zamzar.com/convert/doc-to-docx/

  • When I send open office documents to a PC user (even saved and sent in the word format), the document reaches with serious format changes and is rendered unusable to the PC user. How to overcome the problem??

    When I send open office documents to a PC user (even saved and sent in the word format), the document reaches with serious format changes and is rendered unusable to the PC user. How to overcome the problem??

    I don't use OpenOffice (I have it on my internal just to play around with, but seldom even open it). I do use MS Word and have few problems sharing files - it's usually a font issue so I tend to use MS fonts for documents that I know will need to be shared.
    Unless you need to make collaborative changed to the document, you could always save it as a pdf file. With Acrobat Pro you can even save a pdf file to a Word document with very little change in formatting.
    If I were you - and you have a need for .doc or .docx files to travel and play nicely - I'd just invest in MS Office. If you don't have to send a Word file, try pdf.
    Clinton

  • Not able to open office documents from SharePoint site using Forms auth on a Mac with Office 2011

    I posted the same question on the Mac Office forum (http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macstart/not-able-to-open-office-documents-from-sharepoint/7fba517b-ebd1-4e90-a54a-c70c5f035146?tm=1418836613595) but figured it's probably more
    of a SharePoint question so I'm going to try here as well.
    We just discovered an issue where a user logs into a SharePoint site using Forms based authentication.  When clicking on an Office file they get
    'Sorry, this site hasn't been shared with you' message:
    The user can download the file and can also open the file within the browser (Office Web apps).  This SharePoint site is on a Web app that uses mixed authentication (forms for external partners) and Windows/Kerberos for internal employees.
     When logging into this same site as an internal user I am able to open the file just fine.
    I checked the 'Microsoft Document Connection' settings and selected and deselected 'Enable Basic Authentication' and neither helped.  
    I also tried to add the site URL under 'Microsoft Document Connection' -> Add connection -> Connect to a SharePoint site.  When I put the site URL in and click 'Connect', I get an error saying that 'Only connection to SharePoint or OneDrive
    servers are supported' message.  If I try the same thing as an internal user using Windows/Kerberos authentication I am able to connect to the site just fine.
    Any ideas??

    Hi Szamir,
    As you are using Form Based authentication to open the documents from SharePoint site, I recommend to check the things below:
    Make sure that the user has permission to view the documents in the site.
    Please select "Sign me in automatically" when you sign in the login page.
    More references:
    https://social.technet.microsoft.com/Forums/en-US/ae8cc886-c362-4709-8575-07d339144714/not-able-to-open-microsoft-office-documentsdocxxls-etc-from-document-library-in-a-fba-site-in?forum=sharepointgeneralprevious
    http://manojvnair.blogspot.com/2011/06/login-prompt-while-opening-office.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to open .snp files with Microsoft Office 2007 installed? It works with MS Office 2003 but not with MS Office 2007!

    I have MS Office Pro Plus 2007 installed on my computer. I also have MS Office 2003 installed on another computer. Snapshot viewer is installed on both. My work snapshot files works with MS Office Access 2003 but not recognized by MS Office Access 2007. It would not allow me to save them either! Is it a problem with FireFox (3.6.8)? However, I do not have problem opening them up using IE7/8 on both computers. Any ideas? Thanks.

    Are you clicking a download link from an email message on an OWA or webmail site? Do you get the open/save dialog for the .snp files? In that case, you should be able to associate them with the Snapshot viewer. If Firefox does not remember this and you have to do it each time, it usually indicates that the server is not sending a specific content type, just the generic "this is some binary content" content type.

  • Does acrobat pro 9 work with microsoft office 2013? Just upgraded and now Acrobat does not seem to "see" my documents

    does acrobat pro 9 work with microsoft office 2013? Just upgraded and now Acrobat does not seem to "see" my documents

    uninstall.
    run the cleaner, http://labs.adobe.com/downloads/acrobatcleaner.html
    restart your computer.
    right click the setup file and click "run as administrator".

  • Sorry, we couldn't open...Error opening office documents from SharePoint 2013 in the desktop applications

    Sorry, we couldn't open...Error opening office documents from SharePoint 2013 in the desktop applications        
    One of our Managers encounters the error 'A problem occurred while accessing the Office document cache.  Do you want to repair this problem?'
    Then When he says yes it give a warning that the cache will be backed up and replaced
    Then it says 'A new office document Cache has been created...'
    Then it loads this cache with an error
    Then After all that the next time he tries to open the document it says  is encountered "Sorry, we couldn't open 'URL."
    We have Reinstalled office 2013 on the users PC repaired the cache numerous times
    Followed -  http://office.microsoft.com/en-gb/word-help/manually-rename-the-office-document-cache-HA101848838.aspx
    Updated Lync to 2013 leaving Access as the only office 2010 application (required for legacy systems access)
    Repair installed office 2010 and office 2013 again
    The SharePoint site has been added to the trusted sites list and the set up assistant run from office 365
    And the issue remains the Same all other users including some who also have Access 2010 for legacy systems access have no Issues OS is windows 7 32 Bit browser is IE 9
    Office 365 said
    Reply by Rachel Zhang MSFT Support
    Hi Alex,
    From your description, I notice that the issue is related to Office client. We would like to help you, but I’m sorry that our forum does not focus on this scenario and has limited resources regarding it. However, we have a dedicated support forum where
    the support engineers will help you with the issues about Office client:
    Microsoft Office Community:
    http://answers.microsoft.com/en-us/office/forum/office_2013_release?tm=1365567547805
    Feel free to sign in to the Office community and click Participate->Ask a Question to post the question with the relevant information.
    Microsoft Office Community:  
    Feel free to sign in to the Office community and click to post the question with the relevant information.
    Office team said
    Hello Alex,
    Thank you for posting your query in Microsoft Office Community.

    Check if other excel works fine
    Do you have any script\macro in excel file
    Check if all application pool on all servers are running
    both office and IE should be same build (64 or 32 bit)
    what is the error message in ULS log and Event viewer
    If this helped you resolve your issue, please mark it Answered

  • Can't open Office documents from share on Windows 8

    We have a problem with a customer that they can't open Office documents(Word,Excel etc.) on Windows 8.1 image on a network share. The error message is just that the document can't open.
    The documents are on a sharepoint site and we can open the documents within the site and also we can open the Office documents on a Windows 7 image from the networkshares.
    Also can't open the documents if i copy them to the local desktop.
    I think there is a group policy for Windows 8 for this but I don't know for sure?
    Anybody?

    Hi,
    As I understand, the issue is that customers can’t open office documents on windows 8.1 on a network share or copying them to the local desktop.
    Per my test, I can open documents on windows 8.1 on a network share.
    1. By default, Word doesn't trust files in temp directories from your browser. You can add the
    network address and local address to the trusted list. From Word 2010/2013: Click File > Word Options > Trust Center->trust center setting->add new location.
    2. You can create a shortcut on the desktop using the network address and then open the documents by that way.
    3. To narrow down the research scope that you can create a new document library->Download a problematic file (an Excel workbook or a word document) to your local->Upload the local file to the new document library->do the same option to check if
    the same situation will occur.
    There is a similar case:
    http://superuser.com/questions/693871/word-2013-wont-open-files-downloaded-trust-center
    Best regards
    Sara Fan
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].
    Hi Sara Fan,
    Thanks for your reply.
    I have added the profile to the trusted locations but without success. Also a shortcut is not working. I still can't open any Office document on that location(Error message: location ***.xxxx can't be opened). The problem occurs on every client.
    1. Opening Office documents under local administrator account, domain admin account is working fine
    2. Re-image the machine is not a solution
    4. All locations use the same Windows 8.1 image through SCCM
    3. When the user logon to another location(site) it's working fine and they can open Office documents so it seems site-specific
    4. The problem is specific from 2 sharepoint shares. We can open office documents from other shares.
    5. Can't open Office documents from the library on the sharepoint site(browser), but on another location it's working fine.
    Problem only occurs on Windows 8.1 image with domain users. Other locations of this company do not have the problem. Note, every location have their own OU for users/clients.
    Any other suggestions? 

  • Re: auto save not working with microsoft office on OS Lion

    Is there anyone else having issues with the auto-save/versions not working with Microsoft office on the OS Lion Upgrade?

    It seems (from some testing I've just done) that:
    1. It's not an explicit choie or preference - it's just there, in the background, invisible
    2. Your textedit document has to have been saved once (i.e given a name), or you've reopened a previously saved document
    If those conditions are met, Textedit will keep the doc saved.
    My test was:
    Open existing docuement
    Make changes
    Wait a few seconds
    Quit Textedit
    Reopen Textedit - and there's the doc with all the changes.
    I ran the test again, quitting Textedit immeditaley I had made the change - and it saved the change successfully.
    Hope that helps

  • Error while opening office document

    Hello Gurus!
    I try to use word intergation in WebIC (CRM 5.0). In "Create lead" trunsaction (CL_CRM_IC_ABOXSAMPLE_CR_LEAD class) I have Attachment tab. When I click "Create document with template" buton I get "Error while opening office document" error. In IE settings ActiveX is on. What should I do to make it work?
    Best regards,
    Artur.

    Hello Artur,
    Try this Note:
    Note 606745 - CRM Content Management: Document does not open
    It's not exactly for that issue but it may help.
    Good Luck
    Eli Steklov
    Please Reward Points if it Helped

  • Problem to open Office documents from Sharepoint

    Hello All,
    We have published SharePoint 2013 (NTLM authentication) via TMG 2010. However, we are having the following issue:
    When users try to open (https connection) any Office Documents to Office 2013 they get prompted for credentials, then after they provide credentials they get "Sorry, we couldn't open <URL of the document>". The prompt for credentials is ok because
    persistent cookies are not option for us. We don’t have Office Web Apps in use and we want to open documents to client application. Our company users machines are Windows 7, Office 2013 and Internet Explorer 10/11.
    I made some tests and everything work fine with:
    Windows 7, Office 2010 and Internet Explorer 10/11
    Windows 7, Office 2013 and Internet Explorer 8
    Almost fine:
    Windows 7, Office 2013 and Firefox (latest). With Firefox it works if I open any Office document from summary link list but not if I try to open from inside document library. If I open from document library (right click) to new tab or to new window it works
    fine.
    Any ideas what’s going on? It must be something with IE 10/11 and Office 2013. I also tried with TMG persistent cookie and then I can open Office documents with IE 10/11.
    I also checked with fiddler what happens and I can see that everything stops to 401 error.
    Thank you,
    Miikka Lehtonen
    Turku University of Applied Sciences Limited

    Hello Miikkal,
    You need to enable SharePoint class in IE. Please follow this
    blog and follow this
    article.
    Once, this is done you can Enable all the IE settings to load for Intranet and Trusted zone settings
    Put your site in compatibility mode and trusted zone
    Also, make sure that 2 versions of Office suite is not installed on the system.  Eg. Lync 2013 and Office 2010 on one single machine
    What happen when you by pass your TMG server. To do this we need to make host entry for URL directed to APP server IP Address.
    Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered.

  • Open Office Documents? (.dot)

    Anyone know of a viewer for the iPad that recognized Open Office documents? I have GoodReader which is great. Especially since it connects to Clouds. However, it doesn't know what to do with these docs.

    Some .dot documents are Microsoft Word Templates. They may be set up with formatting and things like a company logo , return address and signature line. Can yours be opened by Word?
    You might experiment with one, and see what happens if you change the suffix to .doc.
    I recall from several years ago at work, that .dot documents were sometimes identified by Norton as containing a virus.
    Fred

  • Open Office documents from NSS exported as AFP impossible

    I have my Mac Lion 10.7.4 users accessing user spaces (NW 6.5.8 NSS exported
    as AFP)
    It is imposssible to open Office documents (doc?, ppt? etc)
    Anybody has an idea why that is happening?
    Seb

    It used to work at some stage in the past (early Lion with AFP fix on Mac
    side)
    Then it stopped working. But I could not pinpoint what could cause it.
    I hardly do any updates to Netware box itself these days (none since Jan
    2012)
    Last NSS update I done was the very one N65NSS8c
    AFPTCP.NLM
    Loaded from [SYS:SYSTEM\] on 4 Sep 2012 8:35:26 pm
    (Address Space = OS)
    AFPTCP (Build 212 SP)
    Version 2.09.01 7 June 2010
    Seb
    "ataubman" <[email protected]> wrote in message
    news:[email protected]..
    >
    > Has it always been like this? Or only since what change or update?
    >
    > Do you have the latest NSS/AFP update installed?
    > 'NOVELL: Downloads - NSS Update for NetWare 6.5 Support Pack 8 2.0'
    > (http://download.novell.com/Download?...d=tMWCI1cdI7s~)
    >
    >
    > --
    > Andrew C Taubman
    > (Sorry, support is not provided via e-mail)
    >
    > Opinions expressed above are not
    > necessarily those of Novell Inc.
    > ------------------------------------------------------------------------
    > ataubman's Profile: http://forums.novell.com/member.php?userid=34
    > View this thread: http://forums.novell.com/showthread.php?t=460194
    >

  • Do I need pages work with/save Office docs?

    I'm confused on how iCloud works with saving documents.  It mentions a number of times that you can work with Office documents, but then it says you need Pages on both my iPhone and Computer to be able to work with and save documents in icloud.    How exactly does that work?
    I need it to sync between my MacBook Pro and my iPhone 4.

    I'm with you so far.  Then when I work on them on my iPhone, can I save in Word?  Everyone I know has Word and not Pages, so I'm concerned about send files that they can't open.

Maybe you are looking for

  • Brand new 13" rMBP (mid-2014) doesn't wake from sleep after a few hours

    Hi, I have brand new, mostly untouched, 13" rMBP running Mavericks (10.9.4) that crashes during sleep. If I close the lid and leave it for more than a few hours, I have to do a force shut down by holding the power button for a few seconds and turn it

  • Satellite A300D-15B - Upgrade from Windows 7 32bit to 64bit?

    I've added an extra 4GB of memory to my Satellite A300D-15B (PSAKCE). When I try to run the Windows 7 64bit upgrade it fails with a blue screen. Is it possible to upgrade this model to 64 bit Windows 7?

  • Cd image disappear again!!

    Hi folks, Earlier, cd images disappeared when it tried mounting in finder/itunes, but it got solved when osx 10.6 updated to 10.6.3 or 2, cant remember. But anyway, after itunes came with the new update, Ive got the same problem. Anyone experiencing

  • Tables and Table Relations.

    Hi ALL, I am new to SAP and currently  learning SAP CRM. I would like to know about *Tables and Table Relationships,* its applications in real time and its functionality. Please clarify!. Appreciate your responses. Thanks! Zo.

  • MacBook Pro will not shut down due to iPhoto

    Connected my iPhone to to my MacBook, iPhoto started to sync pictures, then stopped syncing. Can't get it sync anymore or complete sync, can't shut down iPhoto, can't restart my MacBook , can't really do anything on MacBook as iPhoto keeps popping up