** Problem in opening a word document using DDE.App_Begin *

Hi All,
I used this code in a when-button-pressed trigger in a button to open a word documnet:
declare
AppID PLS_INTEGER;
filename varchar2(100);
begin
     FILENAME := :FILE_PATH; -- :file_path has the full path to the word document foe ex. : D:\Copyf.doc
     AppID := DDE.App_Begin('C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE filename',DDE.APP_MODE_NORMAL);
end;
But when I press the button it gives me this error in Microsoft Word:
Word experienced an error trying to open the file.
Try these suggestions.
* <some suggestion>
* <some suggestion>
* <some suggestion>
How to solve this problem?

Thanx Magoo
Dear Andreas
I've creatred a table to store the word files paths that the user wants to attach to a parfent record!
and then created a form to query all word-documents that is attached to that parent record to let the user open it
Is your code benefit to me in that case?
I tried to do it but the other one (Magoo's code) only open the CMD Prompt!
Iam using:
Form 6i: Version 6.0.8.11.3
OS: Windows XP SP2

Similar Messages

  • HI I'm having real trouble opening my word documents (using Office:Mac 2008)  Have tried repair disk options as I saw this advice on another blog, seemed to work for a while now its stared happening again.  Any help MUCH appreciated

    HI I'm having real trouble opening my word documents (using Office:Mac 2008)  Have tried repair disk options as I saw this advice on another blog, seemed to work for a while now its stared happening again.  Any help MUCH appreciated

    http://answers.microsoft.com/en-us/mac

  • How to Open  a Word document using Developer Forms

    Hi Buddies,
    Can anybody help me out in this regard.
    My requirement is like this.
    In my developer Forms Screen i have one button named resume.
    if i click that button then that particular persons resume has to be opened which is MsWord file(.DOC)located in server(Which is the database server).
    So we have to launch the word with the required document using the Forms built-ins. The document path will be stored in my database.
    Quick response will be appreciated.
    Thanks in Anticipation
    Regards
    Kiran Kumar Jasti

    This is a confused and confusing issue. There are no quick fixes. Bear in mind the following points:
    Word is a client program. It can only open documents that can be seen from a client PC. If you cannot see your database server's directories from a client PC (and I would hope you can't) you cannot open that document.
    what you are left with is creating a copy of that document, transporting it to the client realm, and then overwriting it back on the server after your user has finished with it (if they're editing).
    there are many different ways of doing this, but they will probably involve writing an API in VisualBasic or Java. Alternatively you might look at Oracle's IFS.
    This is not the right forum for a detailed solution - try the Developer forum (or IFS if that floats your boat).
    Good luck, APC

  • HT202879 how can I open a Word document in Pages 09?

    How can I open a Word document using Pages 09 please? I am trying to open Word documents from a CD using both trying to open in Pages, nd dragging and dropping into the Pages icon in the dock. It tells me, every time, thast the document cannot be opened.

    What happens if you open it in TextEdit or LibreOffice [free]?
    Does it open where you got it from?
    Peter

  • How can I open a word document in C++ with a CNiWordApplication object?

    Hello,
    For an application, i need to open a word document using VisualC++ and CNiWord classes (CNiWordApplication, CNiWordDocument...). I successed to create a new CNiWordDocument with the CNiWordApplication CreateDocument() function. But when using the OpenDocument() I have error message about violation error. Must I create another objet before calling the OpenDocument() function? Is it possible to have an example of code to open a word document?
    Thank you for your help.

    I tried the following code to open a doc file in an MFC application.
    CNiWordApplication word;
    CNiWordDocument doc = word.OpenDocument("c:\\books.doc");
    This worked fine for me. I tried this with Word 2003 and Measurement Studio 7.1
    Try running one of the shipping examples. You can find examples for this under ..\MeasurementStudio\VCNET\Examples\Office\
    Hope this helps.
    Bilal Durrani
    NI

  • I'm having trouble opening a word document on my new Macbook Pro. I opened it with no problems on my iPhone5. I tried using TextEdit and OpenOffice. Thanks!

    I'm having trouble opening a word document on my new Macbook Pro. I opened it with no problems on my iPhone5. I tried using TextEdit and OpenOffice. Thanks!

    I open Word documents on my Mac using Pages and textedit without any problems.
    I also have a copy of OpenOffice and it can also open Word documents without any problems.
    Could you please provide more details on exactly what you mean when you say you having troubles opening Word documents? What kind of troubles?
    Allan

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • When opening a word document, I get this:The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document. Is there a way to solve this?

    The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document.
    The above is what I get when I open a word document. Is there a way to solve this?

    Hmmm. Apply the styles?
    Peter

  • Why does apple not allow iphone to open .rtf word documents

    Before you get lost in my post, please remember this.  I simply want to know how to view .rtf word document files from my mac products.  It's vital.  So there you go, please don't get upset at me because of my love/hate relationship with mac products.....
    I like my apple products in general, but sometimes it seems as if the apple programmers are so stubborn and are not sympathetic to the actual end user.  There seems to be an unnecessary PC vs Mac mindset.  There needs to be a customer mindset.
    People like me have problems seeing certain .rtf word documents that are created at work with a PC, emailed out to the emplyees, and then only those that use non-apple smartphones and computers are able to actually see the original / very important word document.  I (a mac user) am one of those people who gets ostracized because I use an iPhone and Macbook Pro.  Case in point:
    My work prints out the next days schedule in a .rtf word document format.  It's usually an attachment. 
    When I try to view it with the iPhone (the worlds most popular "smart" phone), it can't see this common and very popular file type used by businesses and government employees.  It says "An error occured while reading the document".  Wonderful...I guess I have to call my buddy with a blackberry.
    When I try to view the common file with my $1,200 MacBook Pro, it doesn't know how to open up this .rtf file by default.  I have to select "Open it with: Preview, or Text Edit".  Then, a useless downloads box remains up after the computer has finished downloading...and then it sends the file to an inconvinient destination...somewhere that I have to then go on a hunt for by using the "today" option in finder.  I use the word "useless" because these download windows are always empty and instead of being useful (by actually containing the file that I just clicked to open), it then requires you to go for a time wasting/frustrating hunt.  How hard would that be?  Actually making the experience user friendly?  You tell the computer to download a file, it downloads it, and then shows the file to you in that window? Preposterous!  (sorry, I'm not trying to sound pompous...I'm just frustrated)
    Anyway, sometimes the computer will attempt to translate it (a schedule with peoples names, times, and it's contained within boxes that resemble an excel spreadsheet), but everything winds up all messed up and jumbled.  Instead of reading the .rtf word file...macs resort to a lackluster attempt to translate it for you.
    Maybe I am not seeing things correctly.  I don't know.  I'm just a common man.  I do know this though.  The programmers need to listen to the people and not be different just for the sake of being different.
    How do I get my iphone and macbook to open up a .rtf file as soon as I select it??? I want it to behave like a PC does with respect to being user friendly and logical.  (I don't want to have to save it on a thumbdrive, go to a second computer while jumping on one leg, upload the file, brew a cup of coffee while I wait, translate it, and then send it back to my iphone so that I can view it....I'm only partly joking here)
    Thanks for the help in advance. 

    My iPhone won't view them at all...yet.  I'm hoping that I can figure it out.
    Well when I use pages to open the file on my macbook, it opens up an incorrect interpretation.  Things are mis-aligned.  Think of columns and rows.  If the original document had A1 defined as John Doe and A2 defined as a time of 10:30, then Pages in my Macbook may translate it as A1 - John Doe, A2 - blank, B1 - blank, B2 - 10:30.  The lines that are used to outline boxes wind up different lengths and thicknesses as well.
    For example:
    PC word doc (original)                                                  Mac (translation)
    John Doe  |  10:30                                              John Doe     |
                                                                                                        _______ 10:30
    Above is a simple interpretation, but I hope that it sort of gives you a visual representation of what I'm seeing (if I see anything at all).  Things appear in the wrong places and a one page document turns into 3-4 pages of incorrect "fluff" if you know what I mean.

  • How do i open a word document as a sub-VI?

    i need  to use/open a word document or a web page as a sub-VI. All im able to do now is upload it as a text format and it dosen't look to presentable.
    i have been trying the Active function and it dosent seem to work as i am not to familiar with it. i need suggestion to  overcome this problem
    thanks

    to: smercurio_fc
    i am not able to view the example you suggested. it sounds interesting pls suggest a different way.
    i want to upload a word document or a repective web page can u pls suggest a solutioj
    thanks
    pravin

  • Can't open a Word document in Pages '09

    Alright...I have tried to search the forum to see if someone is having the same problem but I haven't seen any. I cannot open a word document in pages. at all. Just says "The document “filename.doc” couldn’t be opened."
    Any suggestions?

    This was one of the first symptoms of "un-updated" Pages in Snow Leopard. Once again, here are the two things you may not have done that fix quite a few problems in Snow Leopard.
    First, use the Mac OS 10.6.3 combo updater. This fixes a problem with the Hoefler Text font that is not fixed using the delta update (10.6.1 > 10.6.2).
    Second, make sure your iWork applications are updated. For iWork '08 that is Pages 3.0.3 & Numbers 1.0.3. For iWork '09 it's Pages 4.0.3 & Numbers 2.0.3. If you're not running the latest versions & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. They must be in the iWork '08 or iWork '09 folder in Applications. That iWork folder must be named iWork '08 or iWork '09. If it doesn't have the '08 or '09 Software Update won't find them & the updaters won't work.

  • Opening a Word Document with a Java program in Windows

    When running a Java program in Windows, is it possible to have a button where when it is clicked it will open a Word document?
    If so, is it hard and can someone tell me how to do it??
    Thanks

    try this instead of Excel.exe you have to use Word.exe
    1. Declare your button
                   JButton butexlcom = new JButton("Carnet Offre");
                   butexlcom.addActionListener( new ButExlCommercial(msgout));
                   butexlcom.setBounds(215,510,110,30);
                   c.add( butexlcom );
    2. run your word document.
    class ButExlCommercial implements ActionListener {
         private JTextArea msgout;
         public ButExlCommercial( JTextArea msg) {
         msgout = msg;
         public void actionPerformed( ActionEvent e ) {
              try {
                   Runtime.getRuntime().exec("c:\\Program Files\\Microsoft Office\\Office\\Excel.exe NameWordDocument");
              catch(Exception en) {
                   msgout.append( "\n*** PROBLEME WORD ***\n" );
    }

  • Opening an word document in a servlet

    Hi,
    How can i open a word document in servlets. Is any jar file required for opening this. Can anyone help out me ?
    bye

    I will have the same problem in my project: i think that i will load the word document in a jsp.
    Because with word when you can use "save as" and you can save your document as web format.
    The document will be rephrase with html marker.
    You can try to save your document with this format and load it in your web browser to see if the display is good for you.

  • COM object model not functioning after encrypting the word document using office extention

         After encrypting A word document using office extention, it seems like the COM object model becomes unusable. I cannot not manipulate the encrypt document through COM interface, nor can I write macro VBScript to do some operation on the docuent.
         For example, I create a word Macro with some simple code.
    Sub hi()
        Dim i As Integer
        i = ThisDocument.Fields.Count
        MsgBox i   
    End Sub
         If the document is not encrypt, then we will see a msgbox which tells us the number of bookmarks in the current document.
         Now, encrypt the word document using the office extention, running the macro code will fail with error code " 80004005" and error message:Method 'Fields' of bject 'ThisDocument' failed.
    It is very important for us to manipulate word documents through COM interface in our system, I want to know why the COM interface does not work anymore after the document is encrypted.

    I take macro script as an example to demonstrate that word COM object model cannot be used after encripted. Actually you can reproduce the same problem when you manipulate word document through COM interface using any programming language.
    For example, you can create a text document  with the following VBscript:
    set a = createobject("Word.Application")
    set doc = a.Documents.Open("E:\temp\test.docx")
    msgbox doc.Fields.count
    doc.close
    a.quit
    Save the document with ".vbs" file extention and then run it by double clicking it. it will fail if the document is encrypted using the office extention. 

  • How do I open other word documents? I get this Windows cannot find 'C:Users...etc.

    I cannot open a word document. I get this message everytime "Windows cannot find 'C:\Users\Edwina\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low\Content.IE5\7U9W11DO\Week 5 Assignment Sheet[1].docx'.  Why can I not open any documents that are saved in Word and sent to me?

    Hi,
    Do you have Microsoft Word installed on your machine ? If NO, you can use Word viewer to view (& print) Word documents.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • Using the DVD-Rom drive renders MBP almost useless

    Under Windows XP Pro on my 2.2 MBP, while accessing the DVD-Rom drive for anything (browsing directories, installing something, playing/burning a DVD or ripping a CD) the computer cannot playback audio. It comes out so skippy and jumpy that you canno

  • Retrieve Legend Label Property

    Okay, I'm a flex newbie...this is my 3rd post to this forum for support (regarding other snafus since resolved) with no luck...hopefully I can garner some expertise here. I'm simply trying to retrieve the label property from a chart legend? In this a

  • Building AS3Crypto Question

    I am trying to build Crypto using the instructions in the readme file, but I think I might be missing something. I unzipped the OpenSSL library to my temp drive, opened cygwin and navigated to the directory. The instructions start with: You should co

  • How do I turn off Announcements?

    As things stand now, in every forum community view that has an announcements tab, I continue to see the same two messages cycling over & over in a yellow box near the top of the page. One advises me that all email subscriptions have been removed. The

  • ASA 5520 Software & Firmware Upgrades

    Is there a way to update the firmware / microcode on the ASA or SSM? I am planning on upgrading the ASA version from 7.2(2) to 8.0(4) and was wondering how, if at all, the firmware was ever upgraded too. The output from 'sh module' is below. ASA# sh