OLE2 with MS Word - Table manipulation

Dear all,

IM using forms 6i.

IM generate a document word forms.

This word document is a template.

This model im placing the data when running...

My MS Word template has a table with 6 columns and 15 rows...

But when running I can get data more than 15 lines...

Then when starts printing 16th im make exception non-oracle.

How to solve this problem...

Writes data into cells in a table like the following im
procedure SetCellText (DocumentHandle in OLE2.OBJ_TYPE, 
                         ThisTable      in PLS_INTEGER,
                         CellColumn     in PLS_INTEGER,
                         CellRow        in PLS_INTEGER,
                         Text           in VARCHAR2) is                    
                         
    hCell  OLE2.OBJ_TYPE;    
    hRange OLE2.OBJ_TYPE;  
    
    begin 
        hCell := GotoCell(DocumentHandle,ThisTable,CellColumn,CellRow);
        hRange := OLE2.GET_OBJ_PROPERTY(hCell,'Range');
        OLE2.SET_PROPERTY(hRange,'Text',Text);
        OLE2.RELEASE_OBJ(hRange);
        OLE2.RELEASE_OBJ(hCell);
    end;    SetCellText(hRange,1,1,v_row,runtimevalue); 
Is it possible to insert a new line at the end of the table?

It is more a question for Microsoft than for Oracle Forms: how to add a row of table using OLE.
As a general suspicion about how to do this, you can first do this by recording a macro in Word. Open the record for editing and macro look at the generated code. This shows you the methods and properties.

I know about Excel, it works like this:

args:=ole2.create_arglist;
ole2.add_arg(args, v_row);
ole2.add_arg(args, v_col);
cell:=ole2.get_obj_property(worksheet, 'Cells', args);
ole2.destroy_arglist(args);

It's probably something similar in Word.

Tags: Oracle Development

Similar Questions

  • the analysis of a word table of ms with different numbers of columns for each row

    I'm reading in a MS Word table that contains 20 lines, each with a different number of columns.  I have to iterate over each line then I iterate on each column of the row and read his text.  I don't know a way to find out how to stop an iteration on the columns.  Is a property or a method which tells you the number of columns in a specific line for a table in MS Word?

    ID says:

    I'm reading in a MS Word table that contains 20 lines, each with a different number of columns.  I have to iterate over each line then I iterate on each column of the row and read his text.  I don't know a way to find out how to stop an iteration on the columns.  Is a property or a method which tells you the number of columns in a specific line for a table in MS Word?

    For each row, use the count property of cells. Since there a number of subject lines is the number of columns.

    Ben64

  • Insert a picture into a Word table with report generation tool.

    I was wondering if it is possible to use the report generation tool to place an image in the cell of a table in a Word document?

    Hello

    Yes, you can do this by using the Word change cell VI under reporting > specific word > Word tables in your diagram of function pallet blocks.  After you create a table, you can modify specific cells and send the file path of the image saved on your computer to that specific cell.  I have set up an example that I have attached here as well to help you with this.

  • Work with word tables in a game

    In my spelling game, I have pictures of words that is added to a text field, one at a time (in a loop). They are also divided into letters so that the player can click on a corresponding letter plate to copy the word. The current letter would be visible at 100% (alpha setting) and the other letters would be set at 80%.

    Divide each word works well you want just the word worldwide, divided into individual letters, BUT I want my game to be phonetic based - so sometimes the sound in a Word will have more than a letter for example for the word "elephant", the table would be: activeWord:Array = ['e', 'l', 'e', 'ph', 'one ', ' nt'] and there would be case tiles from letter with the ph - sound - and - nt - on click too.

    I guess that's where the work is done by arrays of arrays? I got 10 words per level and 30 levels. I will stop with each word in its sounds and to hardcode each word as I did above elephant.

    How to rewrite the loop below to place the 10 word in a level loop. After each level, I want a score to appear with the option to click Next for the next level.

    public var wordsL1:Array = ['elephant', 'a', 'of', 'off', 'walk', 'no', 'got', 'in', 'East', 'it'];

    private var tf:TextField;

    public var letterArray:LetterArray;

    public var tileTimer = new Timer (500,384);

    the constructor code

    public void WordArray(_tf:TextField)

    {

    TF = _tf;

    nextWordF();

    * Run letter tiles Start *.

    letterArray = new LetterArray();

    addChild (letterArray);

    tileTimer.addEventListener (TimerEvent.TIMER, gameLoop);

    tileTimer.start ();

    }

    public void gameLoop(timerEvent:TimerEvent):void

    {

    trace ("tile timer started");

    letterArray.gameLoop ();

    }

    * end *.

    function nextWordF (): void

    {

    if(wordsL1.Length>0)

    {

    activeWordF();

    populateMyWordBox();

    }

    on the other

    {

    Quiz is over

    }

    }

    private function activeWordF (): void

    {

    activeWordArray = wordsL1.shift ().split("");

    / / This table must be sent to the class that checks which letters are clicked (used in this class, if that's where the letters clicked are handled) so the letters clicked can be compared to the elements of activeWordArray.

    When clicked letters are completed for that Word, call nextWordF().

    }

    I'm not the most expensive of the documentation for neglecting issues of people who know their way around, but that will always go down to the reading of the selection index and what is around him. You already know that. You can split the circumstances of the special match in a table and match against them before providing a solution, but you already know that.

  • close the word table does not work

    I'm having trouble with the active x progrmaming with MS Word.  My VI simply runs through a directory and opens each word document and converts it to text and it accumulates in a table.  My problem is that MS word does not close each file after loading in each iteration.  What I am doing wrong?

    Use the method Close _Document as the last thing in the loop FOR (close the document of reference after). Also, you should get the collection of Documents only once BEFORE the loop FOR and close this thing first reference after the for loop. Before closing the _Application reference, you can use the Quit method to close Word and then close the _Application reference.

    Ben64

  • marking of documents created in the last week with the word 'NEW '.

    Hi all.

    I have a mysql database with a table 'articles' containing the following (and other) fields:

    • category_name
    • Date_Created
    • level_name
    • title
    • Summary

    I have set up a query to extract information on the statutes of the db. The questioning of basic works very well. It looks like this:

    $r = @mysqli_query ($dbc, $q);

    / * display the results * /.

    If ($r) {}

    while ($row = mysqli_fetch_array ($r, MYSQLI_ASSOC)) {}

    echo "< div class ="derniers_articles"> < strong class >: < facilities >". "." $row ["category_name"]. ' < br / > < strong > < em > posted on: < facilities > '. $row ["date_created"]. ' < br / > < level >: < facilities > '. $row ["level_name"]. "< /em > < h3 > '. $row ["title"]. "< / h3 > < class p ="last_ten"> < em >. $row ["Summary"]. ' < /em > < /p > < / div > ';

    }

    mysqli_free_result ($r);

    } else {}

    echo "< p > Prob get the info you need." < /p > ';

    }

    The query gives me result like this:

    Category: News
    Posted the: 2011-02-10 22:58:05
    Level: 5, 6

    Are you interested in politics?

    There are too many young people who don't is interested not in politics. It's a secret United Nations pay no one. However, this isn't the case of Darcy Lonergan who, at 21 years old, the youngest is launching itself candidates who pour win a seat in the next Parliament.

    Now, I want to mark all records created in the last week with the word 'NEW' so I inserted the line in bold in the following code:

    $r = @mysqli_query ($dbc, $q);

    / * display the results * /.

    If ($r) {}

    While ($row = mysqli_fetch_array ($r, MYSQLI_ASSOC)) {}

    echo "< div class ="derniers_articles"> < strong class >: < facilities >". "." $row ["category_name"];

    If (DATE_SUB (CURDATE (), 7 DAYS INTERVAL < = DATE($row['date_created']))) echo "< strong > NEW < facilities > ';"

    echo "< br / > < strong > < em > posted on: < facilities > '." $row ["date_created"]. ' < br / > < level >: < facilities > '. $row ["level_name"]. "< /em > < h3 > '. $row ["title"]. "< / h3 > < class p ="last_ten"> < em >. $row ["Summary"]. ' < /em > < /p > < / div > ';

    }

    mysqli_free_result ($r);

    } else {}

    echo "< p > Prob get the info you need." < /p > ';

    }

    .. but he throws this error:

    Parse error: syntax error, unexpected T_LNUMBER in [file path] on line 31

    31 is the "BOLD" line, I inserted. Can someone tell me what I am doing wrong? ("The date_created field is a timestamp like this ' 2011-01-08 18:06:39 '.)

    I'm new to php so be nice!...

    Thanks in advance.

    Hugh

    I think I'd be inclined to do in the query.

    By example SELECT field1, Field2, field3, etc, IF (DATEDIFF (NOW (), dtCreated)< 7,="" 'new',="" '')="" as="" recordstatus="" from="">

    Then echo just the value of the recordStatus for each record.

  • HP Pavilion HPE h8 - 1260t CTO: stuck at the screen with the words "Press ESC for Boot Menu" on the bottom

    I unplugged the graphics card to clean dust. After that I connected everything again, he stuck to the blue screen with the words "Press ESC for Boot Menu" on the bottom. If I press ESC at the beginning, it will go to a black screen and it will show the basic information of the computer (information about the processor and memory). It also show this black screen, "Press ESC for Boot Menu" on the bottom and it will show "Start menu" in the lower right corner. If I press F8 at the beginning, it's going to be the same black screen, but it does not "Start menu" show in the lower right. If I press F10 at the beginning, it will go to the same black screen, and it will show "setup" in the lower right. Can someone help me solve this problem? And thank you very much!

    So I suggest to look at the following and try to 'Clear the CMOS settings' as described at the bottom of the page: HP and Compaq Desktop PCs - specifications of the motherboard, IPISB-CH2 (Chicago).  Then see if there is no change at all.  If there is no improvement, then use the following http://www.hp.com/contacthp, fill in the form, create a folder for your question and then use the information to contact HP.

  • I want to finish with the words, or if it does not remove all hotmail accounts and start cleaning up

    I'm blind to long to get the words of clutter. can we do without >

    I want to send an e mail and the spam message. I am legally blind and long to get jumbled words. I want to finish with the words, or if it does not remove all hotmail accounts and start cleaning up. ??

    The feedback forum is to post your comments on the web site of Microsoft Answers, only not to ask questions by e-mail.

    Any Hotmail questions belong to http://windowslivehelp.com/product.aspx?productid=1

  • Password - when I turn the computer into a big red box with the words "Enter your password" appears

    When I turn on the computer a big red box with the words "enter your password" arrives, we cannot go into the user explains, I forgot the password. We can't still press Delete to enter in the configuration because it is in the Enter password screen and can't live without her.

    If anyone can help in this matter.

    Kind regards

    Dennis

    Hello

    Contact the manufacturer of the computer to this topic as it seems to be a BIOS password forgotten

    I'm sorry, but the strategy of microsoft in these forums is that without assistance will be given about lost or forgotten passwords

    read the policy at the link below

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-security/keeping-passwords-secure-Microsoft-policy-on/a5839e41-b80e-48c9-9d46-414bc8a8d9d4

  • all my prints are coming out with the word 'project '.

    I use an iMac with Mac OS 10.6 (snow leopard).

    I to printers connected by wi - fi: Office Jet Pro 8500 has more and LaseJet CP1525nw color.

    With the 8500 has more each impression is correct.

    But with the CP1525nw, each print comes out with the word 'PROJECT', no matter the settings (the option "watermark" is already 'OFF' on the print settings, etc.).

    This happens not only with the microsoft office for Mac (Word or Excel), but all prints (for example, work online with my bank account, if I chose to print a statement, he will come out with the word "PROJECT". Even if I save it in PDF format and open the PDF file using the preview or any other PDF reader, it always come out with the word "PROJECT").

    How can I solve this problem?

    Hello again,
    I just ran across this interesting link that another user had the same problem and was able to resolve with an update. The first link below is where you can get updates for your printer. The second is the other thread. Check below and good luck!

    http://goo.GL/rVCXh

    http://goo.GL/0vJxc

  • When I right click to create a shortcut or print, a blue rectangular box remains on my desk with the words it contains what I right clicked to do.

    When I right click to create a shortcut or in block letters or what I do from the dropdown menu, a blue rectangular box with the words it contains, stays on my desk.  The only way I can get rid of it is by restarting the computer.  Anyone know how to fix this; or it could be the cause?

    Hello
    • What were the changes made before the problem occurred?
    • How long you have been facing this problem?

    You can follow the procedure below:

    Stage I.
    Check to see if the problem exists in Safe Mode, if the computer works as expected in mode without failure, then we can solve the problem in the clean boot state.
    a. refer to the article below for the procedure safe mode in Windows XP
    A description of the options to start in Windows XP Mode
    http://support.Microsoft.com/kb/315222

    Stage II.
    You need to perform a clean boot to find the program that is causing and then disable or remove. If the computer starts successfully in safe mode and then set the computer to start with clean boot safe mode.
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353/en-us
    Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.

     
  • The tabs in Word table display problem.

    When I select several lines in my Word table is 'all or nothing' will display the tabs apply to all lines.  Could not locate the problem.

    Thank you for visiting the Microsoft answers community.

    The question you have posted is related to Microsoft Word and would be better suited in the Group Discussion in Microsoft Word. Please visit this link to find a community that will provide the support you want.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I am XP user window (home addition) and have recently experienced a problem open a document created with Microsoft Word.

    I am XP user window (home addition) and have recently experienced a problem open a document created with Microsoft Word. I saved the file, he sent, and trying to open it it does not allow me to do. I get a pop up saying - bar FILE CAN BE USED BY ANOTHER APPLICATION, or FORMAT of FILE CAN NOT NOT BE supported BY any OF THE INSTALLED CONVERTERS OR THE FILE is maybe DAMAGED. After you click ok in the pop-up a white prosser page for Microsoft word opens. I'm trying to accomplish creating a coupon for my wife to be able to post to its customers by e-mail.

    It may be in a format that Word can not handle. They are files DOC, DOCX, XLS or or something else?

    There is an update available for the words to open the DOCX files.

    Or you may need the free viewer for Word or Excel Viewer.

    To download Microsoft Office converters and viewers:

    http://www.Microsoft.com/downloads/en/resultsForProduct.aspx?displaylang=en&ProductID=4289ae77-4cba-4A75-86f3-9ff96f68e491&sType=n_pf

    MD MOEEN AJAZ KHAN - MCP, N +, A +.

  • Black square in the menu with the words 'Command Prompt' next to the place

    Since my 1st question, I have followed your instructions, my computer works so well and it turns faster as it did when I 1st got it.  In any case, it's Saturday & I just got home and turned away and when I went on the start menu, I noticed this small black square in the menu with the words 'Command Prompt' next to the square. I clicked it and it opens as a small black w/white square letters coming from Microsoft Corp. All rights reserved. 2006 and the next line of a c:\Users\user>_ and the cursor blinking. Should I just leave that on the menu in case I have it use?

    It of your choice, will not make a difference anyway.  Windows stores most often/most recently used commands and puts them under the ORB start so that they are just a click away.  It is an element of convenience only, and you can delete items here by right-clicking on them and selecting "remove from this list.  This does not remove the program, just deletes the shortcut to the frequently used list.

    'sweetiep' wrote in the new message: * e-mail address is removed from the privacy... *

    Since my 1st question, I have followed your instructions, my computer works so well and it turns faster as it did when I 1st got it.  In any case, it's Saturday & I just got home and turned away and when I went on the start menu, I noticed this small black square in the menu with the words 'Command Prompt' next to the square. I clicked it and it opens as a small black w/white square letters coming from Microsoft Corp. All rights reserved. 2006 and the next line of a c:\Users\user>_ and the cursor blinking. Should I just leave that on the menu in case I have it use?

    http://answers.Microsoft.com/message/423d2082-1173-4ef0-a841-7586557a0d09
    Tags meta-tags: performance; windows_vista

    Saturday 7 April 2012 21:23:11 + 0000: CreateMessage sweetiep

  • Why all my programs and files open with Microsoft word?

    All my programs and files open with Microsoft Word and I need to know how to change that?

    I've seen that happen before when opening a program via a shortcut (for example. LNK file), you are asked what type of program to open it with. After Word selection using the Select a program from a list of programs installedand check always use the selected program to open this type of file, the Word document referenced by the shortcut of origin opens in Word, as it should.

    The problem is that now all shortcuts (for example. LNK files) on the desktop or in the browser will want to be opened by Word. This is known as a file association. . The same condition can occur if you have performed these actions on one. JPG or even a. EXE, but the. LNK explanation is much more likely.

    This has happened enough that a small utility was written to cancel the. LNK file association was created. There is a registry hack to do this, but I recommend the utility unLNK for its ease of use.

    I used to send people on another site to download this utility, but this site has become confused with all the ads and fake download links. I put a copy on by SkyDrive own here.

    Just download, then use the utility to unassociate the. LNK files for the user or globally delete the file type and let windows rebuild a new default.

    • If this proposal of solution solves your problem, please go back and mark as answer for others to consider.

Maybe you are looking for

  • Installation of recovery image on Satellite L875 - 12 p

    I have a Toshiba Satellite L875 - 12 p less than a year and I have a huge problem with efficient use of this laptop. The system is running very slowly and some files cannot be open to all. I tried to treat it somehow and I tried many programs, but it

  • Pavilion dv6: how to unlock screen after hitting f4

    hP Pavilion, while that in excel tried to use f4, now the screen is locked off the coast. How to unlock it please.

  • Satellite A300 PSAJ4E - BIOS V3.90 - need full file name

    Hello Could you please tell me the original * file name * BIOS * V3.90* for Satellite A300, short model No.: PSAJ4E for Vista * x 64 *. A big thank you to you all,. Best regardsOperating system

  • Configuration of the digital output in the USB-6009

    I have a card for the acquisition of data USB 6009. It seems that him when DAQ card is turned on, it is always default to digital output of 'High' or 'floating '. I want to default to 'low '. Is there some setting I want to 'program' the hardware DAQ

  • Knife will not divide an object

    I have imported a png file and can not divide the different images in the file out of the other.  I tried the knife tool, the pathfinder tool, all without success. I wonder if I first change the file itself.  I like to shoot the green image in a sepa