Update Forms after word document is saved

Hi,
I am opening word doc using Webutil, now I want to update the forms when the user saves that document, and also pass the focus back to the application
How can this be achieved?
Cheers
Prasad.

Ok, I figured out from Webutil doc, how to use NonBlocking_With_Callback..
Now the problem is the call_back trigger works fine when I invoke a txt document via notepad but not fordoc file
This is for Notepad:
V_PROCESS_ID := WebUtil_Host.NonBlocking_With_Callback('NOTEPAD '||C:\Test.txt, 'CALL_BACK');
This works absolutely fine,it opens the txt file and my code in Call_Back trigger gets fired when I close the 'Notepad Application'
But when I want to open word doc I cannot use above code. so I have to use
v_cmd := 'cmd /c C:\Test.doc';
V_PROCESS_ID := WebUtil_Host.NonBlocking_With_Callback(v_cmd , 'CALL_BACK');
This works fine upto opening the document, but also immediately fires the code in Call_Back trigger not waiting for the 'Word Application' to be closed.
Is there a way to get around this???

Similar Messages

  • Download form in word document

    Hi,
    Can i download the smartform in word document. I know it is possible in PDF, but my requirement is they want that form in word document.

    Hi,
    you can find usefull documents from the following link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ed/62073c44564d59e10000000a114084/frameset.htm
    Hope it helps.
    Regards.
    Sukanya

  • Maverick update destroyed my word documents, what to do?

    Hello, after i updated my software to maverick all my word documents have changed the text to weird signs. How to deal with this problem?

    Right click (control key click) on one of the files to pick the "Open with" app.
    If Office Word isn't in the list your can choose it  under "other".

  • Updating form after a button is pressed

    If I have a simple form with a button and a progress bar and then I create an object of this 'GUI' class and instantiate the form, then the user presses the button how can I update the progress bar from 0 to 100%? In other words, in my actionPerformed(ActionEvent e) method how can I then use the previously instantiated object of the 'GUI' class to update the form?

    More information....
    I create an object to instantiate the form. Now if I update the progress bar with this object everything works great.
    I also have an object of the same type that is global that I set equal to this original object that instantiates the form. If I update the progress bar with this object (which should be the same) then the progress bar does not update until after the progress bar is at 100%?!?
    Does any of this make any sense?

  • How to update a template(word document)  dynamically.

    Hi guys,
    I am having an requirement to store details in a template,which is in word document dynamically and save it on the desktop.
    I can able to open a new word document dynamically.
    please give ur suggestions.
    Reagrds,
    Rajesh

    If you can use Word 2003 files, you can create WordML to create documents dynamically.
    Look here for a brief introduction: http://www.xmlw.ie/aboutxml/wordml.htm
    I've used WordML in combination with XMLBeans in one project.
    It's a very nice combination since you don't have to parse the full XML, just the part you are intrested in.
    If you use XMLBeans for instance, you can base your template on an existing word-file, saving some struggle to write all entries inside the template file.
    Combine this with the filedownload uicontroller in webdynpro to let the user download a template on the desktop.

  • Copying and Pasting Form into Word Document

    Hi,
    I am new to formcentral.  I am having a hard time copying and pasting a COMPLETED form into word.  Everytime I try, I can see the form questions but the actual filled out responses to the form are blank in the word document.  I have also tried to "export" from Adobe into a word document and that also is blank. Any suggestions?

    Yes you were right the resolution was different! Thanks for your help

  • Operating smart form with word document

    hi all
    I want to print text of word document in main window of the smart form.
    First tell me can I do this???
    If yes, then how??
    With Regards,
    Jayavant.

    Hello Roseanne,
    As i get you right, the form doesn't display one value (you wrote document, but is dont know excatly what you mean) in the right (or at least expected) way and you can't find the value in the smartform.
    So my next question is, what your meaning of physical and locical records? I can only imagin the there are 2 recordes in the database and only one is printed in the form. If im wrong please correct me.
    First of all you should be able to find the spot where the data is writen to the form. Trie to narow down area where it will be printed by commanting out block by block ( conditions tab 1 = 2).
    If you find the right node do the same thing on the subnode until you get the node where the error appers.
    Everything that is printed in the form have to be anywhere in a node/table/loop and so on.
    You can also tie to set a breakpoint in the globae area, at the beginning and serch the structres for the entry which is wrong. Maybe this will help you to find the right spot.
    Good luck with fixing the form!
    Br,
    Nikolaus

  • Captivate 7 (w/ OS X Mavericks Update) Crashing AFTER opening document.

    System: iMac, 27-inch, mid 2010
    Processor: 3.2 GHz Intel i3
    OS: OS X 10.9 (Mavericks)
    Captivate Version: 7.0.1.237
    I have several Captivates authored entirely in Captivate 7 on this same machine that will silenty crash after opening the document.  The document will remain open for anywhere between 1 - 5 seconds and then Captivate will simply close.  No fanfare.  No notification.  Just gone.
    Observations:
    Launch Captivate alone with no document - this appears to be stable.
    Launch document directly by double-clicking on document - May crash
    Launch Captivate first then double-click on document in finder - May crash
    Launch Captivate then open document from within Captivate "Open" menu - May crash
    Any combination of above with large number of open applications (i.e. Flash, Photoshop, Chrome, iTunes etc...) - May crash
    Any combination of above with no open applications (i.e. Flash, Photoshop, Chrome, iTunes etc...) - May crash
    Launch Captivate file on PC - this appears to be stable.  No issues launching same files on a PC.
    Oddly enough, this issue seems to resolve itself at random.  After making several attempts to open the same document, it will finally remain so.  It can be fully edited, saved and published after that.  However, the next document (even if it is the same one) may start crashing again.
    Has anyone else encountered this problem or know of a fix?

    Hi there
    While I cannot offer a fix, I would strongly encourage you (and others) to report as a bug to Adobe.
    http://www.adobe.com/go/wish
    Cheers... Rick

  • Importing word documents - but losing all images which was in it

    Hi,
    I am fairly new to Robohelp and recently got hold of Robohelp 8.
    I have already written a Help File for my company's recent product, and the help file was in word 2007 with a lot of screenshots of icons, buttons and dialog boxes pasted in it.
    On importing the word document to Robohelp, none of these images are being imported and I cannot see any of them in the project view.
    I wanted to use the link to word document feature so that i do not have to keep re-importing the document for any changes made - however, because the images are not being imported, i now have to add them manually to the project.
    1 - this is tiring and very time consuming
    2 - the project files to which i add the pictures are no longer updated from the word document if any of the text changes as the project is preserving the changes i made to the file (which was only adding the image manually). Kind of defeat the purpose of link to the word document.
    HELP
    I would really appreciate any help in
    1 - How to import a word document containing images (screenshots, icons etc) without losing the images
    2 - Keep the word document to update the project even after i add any images to the project manually.
    Thanks
    Nivekz

    Hi again
    Thanks for the clarification.
    Okay, so really what you are doing is identical to clicking File > Import > Word Document, because all you are doing by choosing PDF is pre-selecting PDF as the listed file types. Once you change it to point to Word documents it's no different.
    Cheers... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • How do i retrieve the word document format

    I write a java program which writes a word document in to a BLOB in oracle database. and i retrieve the word document from the database and flush the output to a word document in local path. i do get the output and the word document is saved to my local path, but when i try to open the document it opens ina junk format which cannot be read.. how to preserve the format of the document??
    here is the sample code..
    I open a connection.......
    File fileIn     =     new File("C://input.doc");
    FileInputStream     finput     =     new FileInputStream(fileIn);
    BufferedReader br     =     new BufferedReader(new InputStreamReader(finput,"Cp1252"));
    String lStrDoc_name     =     "1011";
              Conn.setAutoCommit(false);
              String lStrQuery     =     "insert into TESTPDF (" +"DOC_NAME,"+"DOCUMENT,"+"DOC_URL) "+" values(?,?,?)";
              pStmt = Conn.prepareStatement(lStrQuery);
              pStmt.setString(1,lStrDoc_name);
              pStmt.setBlob(2,newblob);
              pStmt.setString(3,"C://testing.doc");
              pStmt.executeUpdate();
              pStmt.close();
              Conn.commit();
              Statement     st     =     Conn.createStatement();
              ResultSet rs= st.executeQuery("select DOCUMENT from TESTPDF where DOC_NAME = " + lStrDoc_name + " for update");
              if(rs.next())
                   oracle.sql.BLOB blob=((oracle.jdbc.driver.OracleResultSet)rs).getBLOB(1);
                   System.out.println("BLOB-------->"+blob);
                   OutputStream outbb=blob.getBinaryOutputStream();
                   for(int i = 0; i < fileIn.length(); i++) {
                        outbb.write(br.read());
                   outbb.flush();
              rs.close();
              Conn.commit();
    Later i read the blob and store my output...
    the code is as follows....
    String lStrQuery     =     null;
              String lStrDoc_Name     =     "1011";
              String lStrDoc_Url     =     null;
              Blob newBlob     =     null;
              InputStream     fInput     =     null;
              BufferedReader br     =     null;
              FileOutputStream     fOutput     =     null;
              lStrQuery     =     "Select * from TESTPDF where DOC_NAME=" +lStrDoc_Name;
              try {
                   pStmt     =     Conn.prepareStatement(lStrQuery);
              } catch (SQLException e2) {
                   // TODO Auto-generated catch block
                   e2.printStackTrace();
              try {
                   rs = pStmt.executeQuery();
                   if(rs.next())
                        lStrDoc_Name     =     rs.getString(1);
                        newBlob               =     rs.getBlob(2);
                        lStrDoc_Url          =     rs.getString(3);
                        if(newBlob != null)
                             fInput = newBlob.getBinaryStream();
              } catch (SQLException e3) {
                   // TODO Auto-generated catch block
                   e3.printStackTrace();
              String lStrOutputFileName     =     "C://"+lStrDoc_Name+"testing.doc";
              try {
                   fOutput     =     new FileOutputStream(lStrOutputFileName);
              } catch (FileNotFoundException e5) {
                   // TODO Auto-generated catch block
                   e5.printStackTrace();
                   byte b;
                   try {
                        while ((fInput.read()) > -1) {
                             b = (byte) fInput.read();
                             fOutput.write(b);
                   } catch (IOException e4) {
                        // TODO Auto-generated catch block
                        e4.printStackTrace();
    The word document is stored in my local path.. but iwas not able to read the document. it opens in some ascii format..
    Your help is appreciated..

    BufferedReader br = new BufferedReader(new InputStreamReader(finput,"Cp1252"));Preserving the format would include not mangling it by using a Reader to read it. If you want to preserve it byte for byte then only use InputStream and OutputStream.

  • Open word document in jsp

    I have a jsp file and i open a new page(word document) with a link in this jsp page. Text messages are viewed correctly in WS-Word but there is a problem for images...
    1 _ How can i solve this problem?
    2 _ After opening word document, if opened word document is saved to anywhere of computer, how can i know address location of it in jsp?
    First File (a part of code):
    <a style="cursor: hand;"
    onClick="window.open('.../word.jsp','','height=400,width=600,scrollbars=yes,resizable=yes')">
    test link14 - open word file
    </a>
    Second File : (word.jsp) All of the code...
    <%@ page contentType="text/html;charset=windows-1254"%>
    <%
         response.setContentType("application/msword");
         response.setHeader("Content-disposition","attachment;filename=firat_WordDoc.doc");
    %>
    <%@ page language = "java" %>
    <html>
         <head></head>
         <body>
              <img src="car.jpg" width="100" height="100" border="0" alt="car"/>
              <br>
              test text...
         </body>
    </html>
    In second jsp file (word.jsp), "test text..." are written coorectly to word document named firat_WordDoc.doc but car.jpg is not viewed

    You wont be able to see it as becoz all you are doing is asking teh browser to paint a JSP [HTML] Page and asking it to open in the format msword.
    Save the word document and open it in textpad or notepad, you will see that the HTML is embedded within the Word Document rather than binary data. And you can see that the Image will aso be a IMG tag with refeence to the car.jpg.
    In order for you to do this either consider
    1. Using full URL in the Image tag.
    2. Using COM Bridge [JIntegra] License Software to build a new Word Document at runtime and then paint it.
    3. I think POI is free ware to do this.

  • Convert Controlled Word Documents to PDF's over intranet.

    Good morning,
    I have a requirement to take a word document that contains time sensitive information which expires 24 hours after printing (electronically or otherwise).
    I am using VBScript for this and have been successful at doing the following.
    I create the word document [ set wordDoc = createobject("word.application") ]
    I set the Active Printer [wordDoc.ActivePrinter="Adobe PDF"]
    I open the word document  [wordDoc.Documents.open("path&filename.doc")         path can be local or unc
    I print the word document to ps  [wordDoc.ActiveDocument.Printout ,,,"path&filename.ps",,,0
    I close word document without saving and quit word
    I can now create the pdf [set pdfDoc = createobject("pdfdistiller.pdfdistiller")]
    I generate the pdf [pdfDoc.FileToPDF "path&file.ps",path&file.pdf,""
    I now have a pdf document with the date and time reflecting the time the word document was opened for printing (now)  
    This works for Excel also with some slight modifications to code.
    This all works exactly how I want it if I am connected to the IIS Server where the intranet is hosted and Adobe X Pro is installed.  (Couple minor Internet Explorer tweaks to do ActiveX and keep security high)
    My problem is, now I try from the client machine, using the UCN paths to the server, and the shared printer "Adobe PDF" and it is not functioning.
    Any Ideas on what I may be doing wrong or what else I can try? 

    I assume that you mean that you can not install Acrobat on a Server and use it from a remote machine.
    If this is what you meant do you have any ideas or suggestions?
    I know that there must be some way to do this as you can upload a document to Adobe and then get a PDF version of it.
    This is similar to what I want to do with the exception that the file does not need to be uploaded.  All word documents are in a centeral location.
    I click on a link to a page and send in a document file name.  The function does the rest, creates pdf.  The web page then opens the pdf that was generated.
    Any ideas would be greatly appreciated.
    Brent

  • How to display word document as a HTML document in portal

    Hi
    I developed a portal application in that i am displaying word document using IFrames, from my application i am uploading word document and saving those document in KM
    Requirement is that i need to provide an option to show this word document in html.
    Thanks
    Rudradev.

    Hi Glenn Mendonca
    I thing it is possible
    Even in SDN search results page, we have option called "HTML version" link
    to see the search document in HTML
    see the below url
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2fforums%2fsdn_forums%2fthread%7b74687265616449443d39313633%7d.jspa
    i hope passing doucment as a query parameter to com.sap.km.cm.highlightedcontent?DocumentUri=
    might solve this
    pls give your inputs
    Thanks

  • How to display a word document in KM as html format

    Hi
    I developed a portal application in that i am displaying word document using IFrames, from my application i am uploading word document and saving those document in KM
    Requirement is that i need to provide an option called "HTML Version" to show this word document in html.
    Thanks
    Rudradev.

    Hi E. van der Palen ,
    I did it using TREX API
    Thanks & Regards
    Rudra

  • Editing a word document and reading on a Mac

    Using Document to Go, I edited a word document and saved the document.  I then sent this edited document to a friend who has a Mac using the new Snow Leopard operating system - he could not open the edited document, but could open the unedited, original document.  What can be done with this problem?

    dataviz website did not give me any assistance.  File extension is file name plus .doc.  There does not appear to be any way on the Blackberry Word to Go application area to change file extensions.  Could the problem be due to the Snow Leapord OS not understanding Word to Go?

Maybe you are looking for

  • Pros/cons of using iPod as backup HD?

    Ok, I'm the last person on the planet without an iPod, but thinking of getting one. I'm wondering if I can get away with using an iPod for both music and as my backup HD (instead of using an external FW HD) for my primary HD (this would get me halfwa

  • My first bill is not what I was told

    My first bill was not $75 (as I had been led to believe) for monthly service but $77 plus $40 dollars for a variety of other extra charges. The $40 dollar charges were not explained and I could not get a real detail list of them on my first bill.   T

  • The computer has rebooted from a bugcheck. The bugcheck was: 0x0000009e (0xfffffa8036f00980, 0x000000000000003c,

    Hi, I have an issue in my with my one of my Windows 2012 Failover node. One server was rebooted unexpectedly and i found the event id 1001 BugChecks The computer has rebooted from a bugcheck.  The bugcheck was: 0x0000009e (0xfffffa8036f00980, 0x00000

  • Transferring movies from iPod to mac

    how do i transfer movies from my ipod T to my mac.

  • This accessory not made for iphone

    "this accessory not made for iphone would you like to turn on airplane mode" message keeps coming up. I select no, I have to unplug and plug back in the apple earbuds, yes the ones that came with the iphone and it will work for a song or 2. Suspectin