Webutil - Word Document

I am having a template with Book Marks and Word tables that I have to filll using web util.
We have managed to fill out the data pertaining to the Book Marks but are stuck to push data in the the
word tables.
Currently the Word table doesnt have any bookmarks.
My question is how do we access the Word table and the cells in the table.
We are in a process o converting VB scripts which were carrying out this task.
Here is a snippet of theVB code which I am trying to convert.
How can I achieve this in Webutil?
l_counter = l_counter - 1
arrstrSplit = Split(l_s, ", ")
arrProdSplit = Split(l_p, "$")
For stnIndex = 0 to l_counter
rownum = sIndex + 1 'Index starts at 0, but table rows start at 1
set rngRange = oDocument.Tables(1).Rows(rownum).Cells(1).Range
rngRange.text = "BL " & arrstrSplit(stnIndex)
set rngRange = Nothing
set rngRange = oDocument.Tables(1).Rows(rownum).Cells(2).Range
rngRange.text = arrP(stnIndex)
set rngRange = Nothing
'Keep adding rows until there is no more data
if stnIndex <> l_counter then
oDocument.Tables(1).Rows.Add
end if
Next
Thanks..
Dhiren
Edited by: dkirtikar on Mar 22, 2010 2:15 PM

Ok... I went back and tested your code and by adding a "0" for the Range param, all pages of my 3 page doc printed.
-- create a new document
app := client_ole2.create_obj('word.application');
client_ole2.set_property(app, 'visible', 0);
docs := client_ole2.get_obj_property(app, 'documents');
args := client_ole2.create_arglist;
client_ole2.add_arg(args, p_filename);
client_ole2.add_arg(args, 0); -- confirm converion (false)
client_ole2.add_arg(args, 1); -- readonly (true)
client_ole2.invoke(docs, 'open', args);
client_ole2.destroy_arglist(args);
-- CHANGES BEGIN HERE
args := client_ole2.create_arglist;
client_ole2.add_arg(args, 0); -- 0 means background printing
client_ole2.add_arg(args, 0); -- 0 means no append
client_ole2.add_arg(args, 0); -- 0 means print all pages
client_ole2.invoke(app,'printout',args);
client_ole2.release_obj(docs);
client_ole2.destroy_arglist(args);
-- CHANGES END HERE
args := client_ole2.create_arglist;
client_ole2.add_arg(args, 0);
client_ole2.invoke(app,'quit', args);
client_ole2.destroy_arglist(args);
client_ole2.release_obj(app);This appears to be the syntax according to the MS docs:
PrintOut([Background], [Append], [Range], [OutputFileName], [From], [To], [Item], [Copies], [Pages], [PageType], [PrintToFile], [Collate], [FileName], [ActivePrinterMacGX], [ManualDuplexPrint], [PrintZoomColumn], [PrintZoomRow], [PrintZoomPaperWidth], [PrintZoomPaperHeight])
Edited by: Michael Ferrante on Oct 12, 2011 3:48 PM

Similar Messages

  • Inserting a MS Word document into database

    Hello friends at www.oracle.com,
    we need to insert contents from our Microsoft Word documents into an Oracle database. That is, we need to create a Forms program where we can open and select a MS Word file, and insert its contents into a table; for example, MS_DOCUMENTS.
    Thanks, and best regards,
    Franklin Gonçalves Jr.

    Hello Duncan,
    If this is on the web then WebUtil provides
    everything you need. If it's on Client Server you
    can use the OLE Container item type. no, it's not on the Web.
    I want to insert Word documents that are in my directories into database, and I've read that it can be done via BLOB table columns.
    I'd like to insert these documents and retrieve them later. Could you please tell me something about it?
    Sincere thanks for your help.
    Best regards,
    Franklin Goncalves Jr.

  • Store and display word document in database through forms

    how can i store a word document in database through forms 6i or 10g, and display it through forms from database.
    i know how to store a binary file in database through DBMS_LOB package, but i want to do it throug forms. is it possible?
    regards

    Hi Alex
    "Create a datablock and specify the item datatype as blob"
    BUT: How to bring the document to the blob?
    Hi user 611..
    Warning: It is easy if you use an OLE-Object - but OLE is a special format. The result will not be the same as with dbms_LOB.
    We have a application with documents stored via OLE - terrible!
    OLE is no longer supported by forms 10. But webutil would help.
    I asked a similar question and got a good answer:
    OLE-Container and migration to the web
    Wolfram

  • Opening Word document with OLE

    Hello,
    I must have a case of own-code-blindness, could anyone see what the problem is? A blank document is created but I can't get it to load the file...
    <snip>
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    CLIENT_OLE2.SET_PROPERTY(app, 'Visible', 1);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 'd:\foo.doc');
    CLIENT_OLE2.INVOKE(doc, 'FileOpen', args);
    </snip>
    aTdHvAaNnKcSe

    Thanks, I am able to setup webutil.
    Now I have other problem in context of migrating OLE functionality using Webutil. I have an OLE Container item 'OLE_FIELD' in block 'Blk_name' which contains a word document. 'OLE_FIELD' corresponds to a long raw column in the table . I want to put the contents of this into a newly created word document and run a macro on this document. This was done using Forms_Ole.Activiate_Server, Forms_Ole.Execute_verb earlier. Can someone let me know how this is achieved in 9iDS using Webutil since 9iDS does not support the ole container? I am sending the code as it was in earlier version of Forms.
    Declare
    arglist OLE2.LIST_TYPE;
    application OLE2.OBJ_TYPE;
    BEGIN
    FORMS_OLE.ACTIVATE_SERVER('Blk_name.OLE_FIELD');
    application := OLE2.CREATE_OBJ('Word.Application.8');
    -- Open the embedded document for editing
    FORMS_OLE.EXEC_VERB('Blk_name.OLE_FIELD',1);
    -- Run Macro for document
    arglist := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(arglist, 'MACRO_NAME.MAIN');
    OLE2.INVOKE(application, 'Run', arglist);
    OLE2.DESTROY_ARGLIST(arglist);
    OLE2.INVOKE(application, 'Quit');
    -- Close Word
    FORMS_OLE.CLOSE_SERVER('Blk_name.OLE_FIELD');
    -- Release the OLE object
    OLE2.RELEASE_OBJ(application);
    END;
    Thanks in advance,
    Ravi

  • Viewing word documents through forms

    Hi Guys,
    I am using forms 10g and webutil to transfer documents (only word
    documents are working now, pdf isn't. Don't know why
    yet) from the client machine and storing them in the
    database tru forms. How can I view the stored document
    tru forms? The column data type is BLOB.
    Regards,

    Francois,
    I looked at that paper and it helped me greatly in getting my file transfer to work to upload files from the client to the database (BLOB column). I looked over the information on the webutil_docs dialog but I am not sure I understand how to implement the feature to allow users to edit files that have been stored as BLOBs. Can you give a quick and dirty recipe for getting this set up? Is it a standard part of the webutil package?

  • Open & attach word document on clients machine

    I want to open & attach word document on client machine from Oracle Forms, all my trials failed.
    I am using Oracle 10G
    I want detailed steps to do so.
    Best Regards
    Message was edited by:
    user630033

    Hi,
    ... I would ask this question in the Forms-Forum instead of here ...
    Have a look at WebUtil: http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    Regards
    Rainer

  • How load from MS Word document data to Oracle?

    Hello,
    if anybody have any idea of how to load data from microsoft word document data field by field to oracle database, instead of doing through the mailmerge. we have word documents which will have descriptions, titles, financial data for different years say for example from 1 to 10 years data in this case how can i load directly from document to oracle database? I appreciate your inputs.
    Thanks so much....

    Hi,
    Although I use client_ole2 from the webutil package to go the other way i.e load oracle data into a word document, im sure there will be a client_ole2.get_* command to get the value of a field code from a document.

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • Error in converting a pdf document to a Word document

    I have Adobe Acrobat 6 running under Win XP.
    My Panasonic Lumix camera manual is a pdf file that I wish to place on my Kindle 4. I copied the pdf file across but, although Kindle is supposed to be able to handle pdf files, it wouldn't with this one - it simply froze when I opened it in the Kindle. I therefore decided to convert the pdf file to a Word document file and email it to Amazon for a free conversion to a Kindle azw file. I attempted to use Save As in Acrobat to save the pdf file as a doc file but, after a few pages, I got the error message:
    Bad pdf; could not read page structure. <Bad pdf; error in processing fonts: cannot find CMap resource file> [26-27].

    For what it's worth I pulled in some of the product line's user guide PDFs. Those I looked over were authored with FrameMaker or InDesign.
    As these both support solid PDF output and from a quick look-see I'd not attribute the core issue to a poorly created PDF.
    With that said; two things are evident. They are not Tagged and, with the heavy graphics content, of a healthy file size.
    Tagged PDF is more than a little important as this is what provides the essential ingredient for export of PDF content (retaining font info, format, layout, etc.).
    A healthy file size associated with the significant graphics content means that what is "under the hood" of the computer in use is significant as export puts a load on these resources.
    Example: A local machine having  integrated graphics is hard pressed compared to a local machine having a dedicated graphics card with a comfortable amount of onboard RAM.
    Due to "design" improvements over the years Acrobat X does a much better job of "export"/"save as" for untagged PDF.
    But, "export"/"save as" of a well-formed Tagged PDF trumps.
    Be well...

  • Can no longer see my I-photo photos, when trying to insert photo into Word Document.

    I had some computer problems and did upgrade to Snow Leopard from Leopard. Using older MacBook Pro. 
    Now, when I try to insert a picture into a Word Document, I cannot see my photos!
    I am working in a word document, I choose "Insert Photo from my files" and when the window comes up so I can choose the photo to insert... when I select the "photos" choice under the Media section on the Left side of the box that comes up, the box to the right is BLANK, both on the top and bottom!  None of my photos come up for selection. 
    This method to choose photos to insert into documents used to work before... now it is not.  After selecting "photos" all my photos would appear in the right box, and I would move through my I-photo events to choose my saved photo and insert it.  Yes, photos are showing and present in I-photo.  They just won't appear for importing.
    This is so frustrating, not to mention time comsuming trying to figure out what is going on and how to fix it.
    Can anyone help? Please?

    Oroilore-
    I do not see a way to disable the Picture Frame icon.  I looked at Settings-Picture Frame, but none of the options turns it off.  The only way I can thinik of, would be if all of your photos had been deleted.  If there were no photos, you couldn't have a slide show!
    One thing to try is to reset (reboot) your iPad.  Hold both the Home and Sleep buttons for several seconds until the Apple logo appears.  Ignore the "Slide to power off" arrow.  The iPad will restart after a couple of minutes.  Resetting this way will not hurt anything, and sometimes clears up mysterious problems.
    Fred

  • I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically. Can some one out there help me?

    I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.

    Update automatically under which circumstances, exactly?

  • How do I convert a pdf in Adobe Acrobat 9 to Microsoft Word document?

    How do I convert a pdf in Acrobat 9 to a Microsoft Word document?

    Hi fireatty,
    In Acrobat 9, you can use the Export command (File > Export) to export your PDF to Word format.
    Please let us know if you need additional assistance.
    Best,
    Sara

  • OLE - Creating header and footer in Word document using abap

    Hi All,
    I'm using OLE to create a WORD document from abap.
    I need to insert a logo in the header and a footer text.
    Does any one know how to insert a header/footer with abap ole ?
    I tried to insert the logo as picture with:
    call method of o_inlineshapes 'AddPicture' = o_logo
      exporting
      #1 = 'C:\logo3.jpg'.
    but I can't put it in the place I want..
    thanks,
    Michal

    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.
    call method of LOBJ_MS_WORD 'ActiveWindow' = w_activewindow.
    call method of lobj_activewindow 'ActivePane' = w_activepane.
    call method of lobj_activepane 'View' = w_activeview.
    SET PROPERTY OF w_activeview 'SeekView' = '9'.   " header view.
    " This will set the view to the header view. Whatever you write here
    will go to the header.
    Get PROPERTY OF lobj_ms_word 'Selection' = w_selection.
    CALL METHOD OF w_selection 'TypeText'exporting
      #1 = 'Rahul Anand'.
    "Now set the view again to the main doc view.
       SET PROPERTY OF w_activeview 'SeekView' = '0'.
    " Now write your main doc code .
    " For footer the view is '10'.

  • Is there an app to convert written notes on an iPad to a word document format?

    Is there an App that will convert written text on an iPad with a stylus into a word document?

    None that i'm aware of. Use the free Dragon Dictation app. Speak the words and it will convert to text.
    Here's some general info.
    Working with Notes and Documents on the iPad – Alternatives & Suggestions
    http://ipadacademy.com/2012/04/working-with-notes-and-documents-on-the-ipad-alte rnatives-suggestions
     Cheers, Tom

  • Acrobat XI Pro Won't Convert 206 Page Word Document into PDF

    Hi there
    As menetioned above, Acrobat XI Pro Won't Convert my 206 Page Word Document into a PDF.  The Word document was originally a PDF file that I converted to Word and it has split all the text into sections.
    It sounds like converting a PDF into Word isn't the best way to edit, re-format and then save as a PDF again.  I would love to hear your advice on this.
    Thanks very much for your help!
    Fiona

    First before you recreate the PDF from the Word Document.
    In word: Open Document
    Next open a new Blank docment
    switch back to Word click on the ¶ button
    scroll to of go to very end of docment.
    click just to right of the perion in the last sentence.
    now go to very beginning of document
    Hold down the Shift and click to the right of first letter in document.
    Now choose copy.
    Now switch to Blank document
    Choose Paste special.
    Now choose Text only.
    If works all the words will be there spaced correct but with no ¶'s.
    Now insert returns as desired.
    Now save as a docx file under a different name.
    IF you are on a Mac use the following directions:
    go to File menu > Print > PDF Hold down PDF button until Context menu pops up.
    Choose adobe PDF.
    follow steps when the first window opens.
    Save as PDF in desired location.
    Now open the PDF in Acrobat. Document should be properly formatted and ready to go.
    AS you've found The conversion is not seamless. Acrobat doesn't distingish between automatic end of line breaks and Returns and you have to put the pieces back again.  I wish Adobe and MS would get over the jealouscy of each other and share howcode works so Thatapplications could work seamlessly together.  BUt they never will.

Maybe you are looking for

  • Download error message MC5001

    What does the error message mean?  I can't get past in when I'm trying to download  a certain app on my ipod.

  • Simple question(?): How to read parameters in JSP?

    I am trying to get a parameter passed to my JSP script through an URL like this: http://www.somewhere.com/cgi-bin/myscript.jsp?variable=test How can I read the context of the variable "variable" within the JSP code? The content must be placed in a st

  • [solved] NetworkManager as user without password.

    I just installed Arch Linux on my wife's netbook with KDE. Everything went fine. Problem is that when the desktop is up kwallet appears and wants a password for NetworkManager services, in this case the wireless. I added the user to the network group

  • Read multiple tdms files

    Two questions: 1) how can i rename the different signals in the tdms file? Now they are names "untitled x". I am looking for an elegant solution, because i record about 200 different Signals. 2) Is there an "easy way"  to select, read and concatenate

  • Rowsettag and InsertXML with DBMS_XMLSAVE

    I have used the rowsettag with the updateXML in DBMS_XMLSAVE without any problems. However, when I try and set the rowtag for the insertXML command, the insert appears to ignore the setting and tell me it can not find the ROW tags. Should ROWSETTAG w