Forms6i - OLE2 and word (mailmerge)

edit: never mind, my bad.

Have you tried adding a call to the Word Application's "Activate" method?
i.e. client_ole2.INVOKE( V_App, 'Activate');
Also, you might need to call SYNCHRONIZE in your form just BEFORE opening MS-WORD to keep forms from taking the foreground and focus back immediately after the trigger concludes.
Paul Sturgis

Similar Messages

  • OLE2 and Word 97

    I'm trying to manipulate a word document via Forms. I'm using OLE2 and have been successfull in changing fonts sizes and font names.
    The problem I'm having is that I want to set the Orientation to Landscape but just can't seem to do it.
    I am using OLE2.INVOKE(word.hApp,'FilePageSetup,Args);
    I have tried various different permutaions for the argument list but to no avail.
    Please can you help. Thanks in advance.
    Anjay
    e-mail [email protected]

    Hi XML Publisher allows you to call the reports from an URL. So you can use the forms built-in Web.show_document to call your report.
    There is one catch. You will need to run SSO to address the reports defined in the folders different as the guest one. If you do not want or can not run using SSO you will need to post your reports in the guest folder which will make them accessible to everybody able of addressing the URL.
    Marcos

  • How to set Word MailMerge delimiter thru OLE2

    I wrote a program for mail merging data from Oracle with Word letter template, but still have a small problem that the user has to specify the field delimitor and record delimitor in the Mail Merge dialog?
    Does someone know how to specify the delimitors for the MailMerge object in MS Word?

    Codes here:
    PROCEDURE execute_macro(p_template_file_name VARCHAR2, p_data_file_name VARCHAR2) IS
    -- Declare the OLE objects
    MyApplication OLE2.OBJ_TYPE;
    MyDocuments OLE2.OBJ_TYPE;
    MyDocument OLE2.OBJ_TYPE;
    MyMailMerge OLE2.OBJ_TYPE;
    -- Declare handle to the OLE argument list
    args OLE2.LIST_TYPE;
    BEGIN
    -- Create the Word.Application object and make Word visible
    -- by setting the 'Visible' property to true
    MyApplication:=OLE2.CREATE_OBJ('Word.Application');
    OLE2.SET_PROPERTY(MyApplication, 'Visible', 1);
    -- get a handle on Documents collection
    MyDocuments:=OLE2.GET_OBJ_PROPERTY(MyApplication, 'Documents');
    -- Open a new document
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, p_template_file_name);
    Mydocument :=OLE2.INVOKE_OBJ(MyDocuments,'Open',args);
    OLE2.DESTROY_ARGLIST(args);
    args:=OLE2.CREATE_ARGLIST;
    OLE2.INVOKE(Mydocument, 'Activate', args);
    OLE2.DESTROY_ARGLIST(args);
    MyMailMerge :=OLE2.GET_OBJ_PROPERTY(Mydocument, 'MailMerge');
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, p_data_file_name);
    OLE2.INVOKE(MyMailMerge, 'OpenDataSource',args);
    OLE2.DESTROY_ARGLIST(args);
    args:=OLE2.CREATE_ARGLIST;
    OLE2.INVOKE(MyMailMerge, 'Execute',args);
    OLE2.DESTROY_ARGLIST(args);
    null

  • Forms6i OLE2 Word

    An application that I'm supporting uses OLE2 to start MS Word, open a document tempate and add database values to it, before closing it.
    v_1 := OLE2.CREATE_OBJ('Word.Application');
    ole2.set_property(v_1,'Visible',1);
    It it possible to start Word minimized or as a background process? The batch process can create >50 individual letters and it makes the PC unusable.
    I've never used OLE2 before....
    John

    It's already a client/server application - with a unix database.
    I just want to be able to work with the Word process working in the background.
    I think the solution is to comment the following line:
    ole2.set_property(l_app,'Visible',1);

  • OLE2 and DDE package books

    Hi All,
    I need to fully understand OLE2 and DDE package. Pressing F1 provides very limited help for me. Anyone here have or know some links of any reading materials(e-books, documentation)?
    Please share... I'm drowned with my tasks here.
    Thanks!

    DDE is seriously outdated and should only be considered as a last resort. As for OLE2, concern yourself not with learning the OLE2 package, but instead, with understanding OLE automation. The OLE2 package is just a wrapper that makes it possible to manipulate OLE automation servers from PL/SQL. Once you understand OLE, using OLE2 should come easily.
    I learned OLE automation as a Visual Basic developer, before ever working with Oracle, and found it to be fairly straightforward. The easiest and cheapest way to learn OLE automation is by using Microsoft's Visual Basic for Applications IDE -- an Office component. Search this forum using keywords VBA and Tutorial, and you will find information that should hopefully prove helpful.
    As for Mark's assertion that XML provides a simpler solution, there are important differences between the XML and OLE approaches. The XML approach involves simply creating a document, whereas the OLE approach involves instructing the OLE server application to create a document. XML might be perfect, for example, if you wish to create Word documents on a *NIX server.  On the other hand, when your environment permits it, OLE makes it possible to leverage application functionality, like Excel's data analysis functions.
    Eric Adamson
    Lansing, Michigan

  • OLE2 Automation & Word 2000

    I am trying to figure out why the following does not work. The search and replace values are substituted but the replacement does not actually take place - its almost asif another method/event needs to be tirggered, but for the life of me I cannot figure out what it is
    Answers appreciated !!
    Andrew
    =================================
    procedure run_word (document varchar2) is
    lArgs OLE2.LIST_TYPE;
    findrepl OLE2.OBJ_TYPE;
    objword OLE2.OBJ_TYPE;
    BEGIN
    objWord := OLE2.CREATE_OBJ('WORD.Basic');
    lArgs := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(lArgs,document);
    OLE2.INVOKE(objWord, 'fileopen',lArgs);
    OLE2.Invoke(objWord, 'AppActivate');
    OLE2.Invoke(objWord, 'AppShow');
    OLE2.DESTROY_ARGLIST(lArgs);
    /* Original VB Code
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
    .Text = "CNAME"
    .Replacement.Text = "Andrew"
    .Forward = False
    .Wrap = wdFindAsk
    .Format = False
    .MatchCase = False
    .MatchWholeWord = False
    .MatchWildcards = False
    .MatchSoundsLike = False
    .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
    End Sub
    lArgs := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(lArgs, 'CNAME');
    OLE2.ADD_ARG(lArgs, 'Andrew');
    OLE2.ADD_ARG(lArgs, 0);
    OLE2.ADD_ARG(lArgs, 0);
    OLE2.ADD_ARG(lArgs, 0);
    OLE2.ADD_ARG(lArgs, 0);
    OLE2.ADD_ARG(lArgs, 0);
    OLE2.ADD_ARG(lArgs, 0);
    OLE2.ADD_ARG(lArgs, 0);
    OLE2.ADD_ARG(lArgs, 0);
    findrepl := OLE2.INVOKE_OBJ(objWord, 'EditReplace',lArgs);
    OLE2.DESTROY_ARGLIST(lArgs);
    END;
    null

    I'm experiancing the same problem.
    I wonder if you have salved the problem in already
    With kind recards

  • Can I mix Pages page layout and word processing together in one document?

    Hello there ! I am quite new to Pages and I am desperate to learn as i want to get rid of everything being Microsoft
    As you all know when you open Pages you can choose between page layout and word processing !
    the thing is i thought that after using a page layout you could just go with word processing easily... well no, you can't, but i'm sure i'm missing something...
    For exemple i really like the catalogue brochure and it would be perfect for me to start a project... but after a few pages, i can just add blank pages and if i want to type text, i have to add text boxes... i don't want that, I want word processing... and another thing in this brochure i can't add table of content because it is not by default in the template...
    So my question is quite basic here, can we link Page layout and word processing without having to use text boxes and everything ?
    Thanks in advance !
    Have a good day

    Alexander,
    Welcome to Apple discussions.
    The simple answer is no. What differentiates page layout from word processing mode is that the PL mode has no text layer. So everything that goes on the page must be an object of some kind. And any pages you add to a PL document must also be PL. You can't mix the two modes. One way around it is to start with a blank page, insert a text box, then stretch the box so that it covers the entire page. You can the type in it as if it were a text layer in a WP file. You can even capture that page so that you can add it automatically when you need it, or save it as a template.
    As for building a Table of Contents, it appears that Pages only sees text styles that are on the text layer, which means it won't see styles that are in objects -- which means it won't work with a PL document. From being a long-time reader of this discussion group, I've noticed it's rare that someone wants to add a ToC to a PL document.
    If you find that you're going to be mixing text and graphics, start with a word processing template. If you really like the Catalog Brochure, you could always copy some or all of its elements over to a blank WP template.
    Hope this helps.
    -Dennis

  • Can I search for pdf and word documents at the same time in finder?

    I often want to search for more than one file type at a time - for instance pdfs and word docs in a directory, or Jpgs, GIFs, PNGs etc.
    Can I do this in the finder in one go (so I can save it as a folder I can then select when I want to)?
    I tried typing OR between the 'tokens' it creates, but then it just searches for OR - so not as intelligent as one would think?!
    Surely there must be a way to do something as simple as this?
    regards
    Rob

    Forget the whole "tokens" business (I think that is a pretty useless "improvement" to constructing Spotlight searches). Hit command-F to bring up the search window, and set your first criteria, in the example I changed it from the default Kind to Created Date, to keep the number of results manageable. Now hold down the Option key and click on the "+" at the end of the criteria line, it will change to "..." and you get a new criteria line. From the dropdown menu choose "Any" if necessary (this will give you the Boolean OR), then enter what you want in the first sub-head. To get a second sub-head OR criteria click the "+" at the end of the Any line.
    I don't generate many MS Word docs, so I just stopped in the example above after typing Microsoft, since that brought up all the MS anything I have from this year (a couple of Power Point thingies sent to me by friends).
    Francine

  • How can I download excel and word

    I need work in excel and word in my iPed - please guide

    You cannot download or install Word or Excel for the iPad. MS has not released an iOS version.
    There are MS Office compatible apps available in the app store like Quick Office Pro and Documents to Go. Take a look at those and see what you think. Apple also has their iWorks suite of apps, Pages, Numbers and Keynote that are compatible with the MS Office apps.

  • How can I use excel and word on the IPAD2

    How can I use excel and word documents on my Ipad 2

    There are apps such as Documents To Go which support reading/editting/creating those sorts of documents :
    standard version  -  http://itunes.apple.com/us/app/documents-to-go-office-suite/id317117961?mt=8
    premium version  -  http://itunes.apple.com/us/app/documents-to-go-premium-office/id317107309?mt=8

  • Can you have pages and word on the same computer

    can you have pages and word on the same computer

    Sure, I do (my Office is 2008 but I keep it around for some things I get from work).

  • Is there a small and lite portable, around 5 lbs or less, printer for my iPad to take on vacation for photos, more than 1 at a time, and words? I have both HP dj460 and ps 616A but they don't support iPad. Is there a device, work around or ePrinter air pr

    Is there a small and lite (5 lbs or under) portable air printer / ePrinter I can use to print contact sheets of photos and words with my iPads? I already have the HP dj460 and HP ps 616A but they don't support the iPads.

    Helper app -- /print n share
    Print directly to the widest range of network or WiFi printers available in any app. Alternatively print via your computer to ALL printers including USB & Bluetooth printers. View read and display large PDF, Office & iWork files. Easily transfer & store files from the Cloud or your computer.
    https://itunes.apple.com/us/app/print-n-share/id301656026?mt=8
    HP  ePrint Home & Biz
        http://itunes.apple.com/us/app/hp-eprint-home-biz/id299531647?mt=8
    http://h10025.www1.hp.com/ewfrf/wc/searchResults?tmp_product=HP+Photosmart+5515+ e-All-in-One+Printer+-+B111a&product=5063608&tmp_qt=eprint&cc=us&dlc=en&lc=en&su bmit
    Mobile printing.
    This blogger found one solution.
    http://genuinely-original.blogspot.com/search/label/iPad%20Printing
    Make Portable Printing Easier with Print n Share and the Brother RJ-4040
    http://prmac.com/release-id-44494.htm
    Use an airprinter with a power inverter
    http://genuinely-original.blogspot.com/search/label/iPad%20Printing
    see makethisstuffwork post in:
    https://discussions.apple.com/thread/4987217?tstart=0
    Brother PocketJet® 673
    -- Prints on a variety of 8.5" wide thermal media.
    -- Print PDF files from your iPhone and iPad with the PJ-673 Print app
    http://www.brother-usa.com/Mobile/ModelDetail.aspx?ProductID=pj673-k&PG=26#.UeX0 Z18pDDJ
    List of supported AirPrinters.
       http://support.apple.com/kb/HT4356

  • After hours of back-up, downloading and uploading...I am now updated with all the latest Mac software. However, I no longer have access to Excel and Word. Is there a way I can access my documents in either of those? Help, please.

    After hours of back-up, downloading and uploading...I am now updated with all the latest Mac software. However, I no longer have access to Excel and Word. Is there a way I can access my documents in either of those? Help, please.

    If you have older versions of excel and word that previously ran under the Rosetta emulator (allows PowerPC code to run on Intel system), they will no longer work with Lion.
    You can use the Apple programs Pages and Numbers to access the files. They can be bought and downloaded from the App store. NeoOffice is available at http://www.neooffice.org/neojava/en/index.php which has Lion support. OpenOffice doesn't talk to Lion support, it's at http://www.openoffice.org/

  • Hp officejet pro 8610 prints solid black on scanned pdf and word doc pictures

    -HP Officejet Pro 8610
    -problem printing scanned pdf document and word doc. photos
    -My new HP Officejet Pro 8610 printed a newly scanned pdf document as an all black picture. I then printed a saved word documtent from my iMac which included a small picture. The document print was acceptable, but the picture was solid black. There were no error messages. These were, my initial tests, to check this new printer.

    Hey there @TM-10 
    Welcome to the Community
    I read through your post about your new Officejet 8610 scanning a document to your computer and printing out all black. I have a couple ideas for you to try.
    Try the steps in this guide: Unexpected Scan Output Using HP Scan Application for HP Multifunction Printers When Using OS X v10.9...
    Press the Power button to turn on the product.
    With the product turned on, disconnect the power cord from the rear of the product.
    Unplug the power cord from the wall outlet.
    Wait at least 15 seconds.
    Plug the power cord back into the wall outlet.
    Reconnect the power cord to the rear of the product.
    If the product does not turn on by itself, press the Power button to turn it on.
    Ensure the printer is plugged in directly to the wall outlet, avoiding power bars and surge protectors. This ensures the printer is receiving full power and may help.
    Good luck
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

Maybe you are looking for

  • JTree calling setSelectionPath() does not highlight new selection

    I have looked throughout many forum entries and this question has been asked a few times but I have not seen a solution that works at least for me. When I do the following:           TreePath path = new TreePath(...) this.tree.setExpandsSelectedPaths

  • How to call the XML file as PrivateResourcePath in JSP

    Hi All, I want to call the layer-config.xml values in JSP dropdown list. How to call the XML file as PrivateResourcePath in JSP... please advise me if any solution. locaiton: dist/PORTAL-INF/layer-config.xml   <?xml version="1.0" encoding="utf-8" ?>

  • How to make iWeb NOT start up at login?

    I did something, somhow, to make iWeb start up at login. I checked the Preferences to find a place to stop this, but Preferences does not deal with automatic login. QUESTION: Where do I go to get iWeb not to start up automatically at login? Thank you

  • Running apple tv from iPad.

    a picture of the itunes logo and a usb cord is frozen on my TV after I was running apple tv from my iPad.  I restored the seting on my iPad, sunk it with my mac and unplugged all of the cables form the apple tv.  nothing seems to work.  anyone?

  • My IPad is locked with a passcode

    my IPad is locked with a passcode. how should I solve that problem?