ASK - How to delete line space in Word document using oracle form

Hi,
I have 1 template word document.
Inside the word document template :
abcdefg
[START_TERMS]
[END_TERMS]
bbbbbbbbbbbbbbbb
currently, my program only can delete the statement [START_TERMS] and [END_TERMS].
so the result
abcdefg
----> space area
----> space area
bbbbbbbbbbbbbbbb
My expected result is
abcdefg
bbbbbbbbbbbbbbbb
How to replace that two space area in oracle form ?
Please advise.
Thanks for your help.
regards,
Iwan

Hi
Here my code :
Function DeleteWord(MyOwnSelection OLE2.OBJ_TYPE, MyWord VARCHAR2) Return Boolean Is
MyArgs OLE2.LIST_TYPE;
vReturn boolean;
Begin
vReturn := FindWord(MyOwnSelection , MyWord);
-- Can't Find The word
if vReturn = False Then
     Return False;
End if;
OLE2.INVOKE(MyOwnSelection, 'Delete');
MyArgs := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(MyArgs, '0');
OLE2.ADD_ARG(MyArgs, '0');
OLE2.INVOKE(MyOwnSelection, 'SetRange', MyARgs);
OLE2.DESTROY_ARGLIST(MyArgs);
Return True;
End;
returnValue := WordFunction.DeleteWord(MySelection, '[START_TERMS]');
Thanks and regards,
Iwan
Edited by: user1888509 on Jun 7, 2011 10:34 PM

Similar Messages

  • 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

  • How to save Charts to a word document using LabVIEW Report Genereration toolkit?

    I just started using the LabVIEW Report Genereration toolkit, but I can't figure out how to save Waveform Charts (one dimensional data versus time, instead of Graphs) to a Word document. Can somebody give a suggestion? Thanks!

    Nina,
    In MS Word, you have 2 options when you select Insert Object:
    Microsoft Excel Chart
    Microsoft Graph 2000 Graph
    If you select Insert Picture, you can choose Chart. This is the same chart as when you select Microsoft Excel Chart.
    To insert this chart, you will use Word Insert Graph.vi. This VI calls Word_Insert_Chart.vi, that uses ADO object Graph.Chart and its properties and methods.
    From the Microsoft Help:
    Create a chart by using Microsoft Graph
    When you create a chart by using Microsoft Graph, a chart and its associated data are displayed in a table called a "datasheet."
    Zvezdana S.
    National Instruments

  • How do I Launch a Microsoft WORD Document using AciveX from testStand

    Hello All:
    I would like to launch a Word document from within Teststand. I would also like to have the ability to search the document for particular sections of the document. I can not find any sequence file examples that even comes close to demonstrating any of this.
    Thanks...

    Hello Craig,
    I have attached an example that will demonstrate this for you. You may need to change the Word Server to match the version of Word that you have installed. This can be done by right clicking on each ActiveX step and select Specify Module. Under Automation Server, scroll down the list to Microsoft Word... and select it.
    This is primarily an example to demostrate calling Microsoft Word from TestStand. If you require additional functionality from the Microsoft Word ActiveX server then you should refer to the API reference help for Microsoft Word.
    Hope this helps!
    Bob
    Attachments:
    TSWord.zip ‏7 KB

  • Open word document from oracle forms 10g

    Hi,
    Could any one please guide me how to open a word document from forms 10g on client machine (windows). My word document resides on application server (unix).
    Thanks for the help in advance.

    I tried that, but it doesn't work.
    What I have done is, I have written a java code that has a function ope_word that opens up a word document. I have created jar out of it called wordbean.jar.
    Add this wordbean.jar in $ORACLE_HOME/forms/java directory and also added in the formsweb.cfg file (archive_jini=wordbean.jar)
    Then I created a form and usinf fbean.register and fbean.invoke functions of forms, I am trying to call wordbean.jar.
    F.bean.register is registering all the components of wordbean.jar but it is not opening the word document.
    Could you please help ??

  • Calling Word document from Oracle Forms 10g

    Hi all,
    I would like to call a Microsoft Word document from my Oracle Forms 10g.
    What would be the best way to do this?
    Thank you in advance.

    Have you tried something like
    WEB.SHOW_DOCUMENT('file:///<documentpath>','_blank');

  • How do I save multiple files from database using oracle forms?

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    Hello,
    I have a form containing a block of records with files set up in a tabular layout. Each row has a checkbox to indicate if that row is selected. What I want to do is allow the user to save each file from checked rows to a directory of their choice on their machine when a button is pressed. Is it possible to do this in one command at the same time using WEBUTIL_FILE to save all the selected files to the same directory, or would I need to loop through each row and call the save dialog each time?
    Thanks.

    I'm not sure I follow. The SAVE_DIALOG is building the path including the filename where the files will be saved. If I have 5 different files I want to save at the same time and only show the dialog once, I will only have a path for one of the files. How could I loop through the rest afterwards?

  • Storing PDF and Word document in oracle database

    any idea, how to store PDF and word document using oracle database.
    thanks

    The common approach is store as BLOB in database, use DBMS_LOB package to handle the loading and reading, sample script source asktom
    Also check this thread in Asktom
    SQL> create table demo
      2  ( id        INT PRIMARY KEY,
      3    theBlob   blob,
      4    dummy_col VARCHAR2(1)
      5  )
      6  /
    Table created.
    SQL> -- --------------------------------------------------------------
    SQL> -- Load a PDF file into a BLOB field and compress the BLOB.
    SQL> -- --------------------------------------------------------------
    SQL> declare
      2      l_blob    blob;
      3      l_bfile   bfile;
      4 
      5  begin
      6      insert into demo (id, theBLOB) values ( 1, empty_blob() )
      7      returning theBlob into l_blob;
      8 
      9      l_bfile := bfilename( 'BLOB_DIR', 'Test.PDF' );
    10      dbms_lob.fileopen( l_bfile );
    11 
    12      dbms_lob.loadfromfile( l_blob,
    13                             l_bfile,
    14                             dbms_lob.getlength( l_bfile ) );
    15 
    16      UPDATE demo
    17      SET    theBlob = utl_compress.lz_compress(l_blob, 6)
    18      WHERE  id = 1;
    19  -- If you don't want compress the LOB just update directly
    20      dbms_lob.fileclose( l_bfile );
    21      COMMIT;
    22  end;
    23  /
    PL/SQL procedure successfully completed

  • Writing to word document using java

    hi,
    i want to retrieve the values from database and then write to .doc file. how can i write to a word document using java?
    thanks in advance

    Google for "java write to word file"
    and behold the magic results

  • How to delete line/address in PDF file?

    How to delete line/address in PDF file?
    Joan Willets

    You delete it with teh touchup text/ touchup object tools in Acrobat or mark it for redaction, so it gets blackened.
    Mylenium

  • Just asking how to type Arabic letters in word, in more specific how to type letter or pargraph in Arabic language in word

    Just asking how to type Arabic letters in word, in more specific how to type letter or pargraph in Arabic language in microsoft winword.
    Thanks

    Regarding your screenshot of Word, I cannot duplicate it, I only get the expected disconnected Arabic.  I am sure that nobody will be able to duplicate it unless perhaps they have the font Arial Body CS, which is not part of MS Office for Mac or OS X.  So for your contribution here to be helpful to anyone, you will have to provide a link for downloading that font.

  • How to replace a word or line in a word document in CVI

    I am trying to edit a word document using activeX in CVI. I want to search for a word and replace it with another. I couldn't find any functions which does the replace in wordreport.c. Could you please help me out?

    Hi Isn,
    You
    will want to use the Microsoft Word 9.0 Object Library to interface
    with Microsoft Word.  You could then potentially be able to use the ActiveX calls
    provided to accomplish your goal.  The specifics on how to do this
    should be found in Microsoft's Documentation.
    Refer to the Microsoft document entitled How to find and use Office object model documentation. In your case, you will be looking at the Vbawrd9.chm help file which I believe will be located in the C:\Program Files\Microsoft Office\OFFICE\1033\ directory.
    Also refer to the Unable to Load Microsoft Excel/Word Help in LabWindows/CVI KnowledgeBase.
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Delete a Page in Word Document

    I want to run a macro to delete the 3rd (and it is also the last) page of a document.  I've found the following code in the forum:
    Selection.HomeKey wdStory
    Selection.Goto What:=wdGoToPage, Count:=3
    Selection.Bookmarks("\Page").Select
    Selection.Delete
    However, when the macro hits the first line, it gets a run-time error 438 Object doesn't support this property or method.
    Interestingly, others responded that this code worked fine. 
    What am I missing?
    Thanks,
    AGI_MEG

    Where is the cursor when you run the macro?
    The problem when attempting to delete 'pages' in a Word document is that Word is not a page layout application. There are no 'pages' in a Word document, only text flowed into a document container which comprises a variety of story ranges. When attempting
    to delete a 'page' it helps to know what is on that 'page'.
    However if you want to delete the last 'page' of a document, then the following may work for you. Ensure the cursor is in the body text of the document.
    Sub Delete LastPage()
    Dim PageCount As Long
    Dim orng As Range
        Selection.EndKey wdStory
        PageCount = Selection.Information(wdActiveEndPageNumber)
        Selection.GoTo What:=wdGoToPage, Count:=PageCount
        Set orng = Selection.Bookmarks("\Page").Range
        orng.End = orng.End + 1 'ensures no empty page at the end after removal.
        orng.Delete
    End Sub
    Graham Mayor - Word MVP
    www.gmayor.com

  • How to read line number text from PDF using plugin?

    Hi, I would like to know how to read line number text from PDF using plugin?
    Thanks in advance.

    Ok, some background reading of the PDF Reference will help you understand why this is so difficult. PDF files are not organised into lines. It is best to think of each word or character on the page as being a graphic with its own position. The human eye sees lines where a series of graphics (words) are roughly in the same horizontal region.
    In the general case it is difficult or even impossible to answer this. You may have columns with different spacing (but the PDF stores no information on what is a column). You may have subscripts and superscripts. You may have text in graphics coinciding with other text. Commonly, there may be titles, headings or page numbers which are just ordinary text and might count as lines.
    That said, what you need to do is extract the text on the page and its positions. The WordFinder APIs are the way to do that. Now, sort all the words out, using the Y coordinates and size to try and guess what makes a "line". Now you are in a position to find the text (divided into words, not strings) and report the "line number" you have estimated.

  • How to delete multiple songs from iPhone 5S without losing form iTunes? The unchek function has not worked. Why?

    How to delete multiple songs from iPhone 5S without losing form iTunes? The unchek function has not worked. Why?

    Sorry I had to reply through your profile Gail from Maine, my PC has java issues. In any event, when I delete them directly from my device everything is perfect and cool. However, in the rare instance I want to add new music that I actually buy in stores (I know, quite the unique and old-fashioned idea...but hey Im an audiophile) once I upload the tunes, everytime I sync my library it re-adds everything that I spent hours deleting. In a perfect world, I thought I could maintain a massive iTunes Library, and add or delete (remove) songs from my iPhone to save both memory or keep my iPhone selections more current/apt to my musical "tastes" at that time. I know about the whole playlist thing, but thought there might be an easier way. ie - checking/un-checking the little box next to the song name, and then doing a sync. Again, everytime I do this however, whether everything is checked or un-checked it adds the entire library! So frustrating. Any suggestions. Thank you graiously in advance for your help.

Maybe you are looking for

  • Flat File loading Initialize with out Data transfer is disabled in BI 7.0

    Hi experts,           When loading through flat file in BI 7.0 for Info Package Level Initialization Delta Process with data Transfer is coming by default,but when i want to select Initialization Delta Process without Data transfer is disabled. (in t

  • Need some help with getting mail folders into Maverick please???

    I have finally gotten my old Snow Leopard files transferred to Maverick partition on my hard drive but my mail did not pull over the old saved mailboxes with saved emails. How can I get those old saved emails into Mavericks so I can quit using Snow L

  • Cannot read any form posted data

    I create a web server : import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.net.ServerSocket; import java.net.Socket; public class TestWeb extends Thread {     Socket soc;     ServerSocket server;

  • 10.6.6 the premature update

    I have been following the OS 10.6.6 problems and usually wait a day or two after the announcement before I upgrade in case there are problems . I always back up and do all disk maintenance as well as start the upgrade in safe mode. My 2008 MBP was th

  • Cisco Prime 1.3 Upgrade Hangs

    I'm trying to upgrade our Cisco Prime 1.2 to 1.3. When I complete the command to upgrade, it then asks if I want to save the current ADE-OS to the running configuration. I say yes and it saves it. Then it begins the upgrade process. I get: Initiating