Word OLE problems

I've just olegen'd Word, 97 and I have got myself a project that won't
compile
because GetProperty is used with the wrong argument signatures. I used
the
3.0.G.2 olegen, because that is what we are using of the desktop.
However, on the
server we are still 3.0.E.? I think, and I see that a problem with
OleGen & Word 97
was fixed in 3.0.F.2 (Bug 32391). Are we stuck with this until we
upgrade the server?
I also wonder why the Word project that is currently there is
significantly different
from my Word project (oddly enough the things that don't compile aren't
in the old
project, so I'm guessing that someone before me found this problem too).
Is there a solution out there?
Thanks
Jamie Anstice
Programmer / Analyst
University of Canterbury
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Can't you open it using the same mechanism you use for retrieving Word docs ?
If the "OLE Class" item property is blank then you can insert any type of document into your OLE container.
If your OLE container is a base table item then "OLE Activation Style" item property is "Double click" or Focus IN" then you can view the item by navigating or double clicking on the OLE container.
Does your OLE Container show anything, e.g. a PDF icon when you have inserted the PDF file ?
If PDFs are still not loading then check the list of OLE classes that Forms is showing in the drop down list for the OLE CLass property. All the ADOBE ones start with "ADO" or "adobe".

Similar Messages

  • Interaction between Excel and Word OLE

    I am using Office 2007 to write procedures but a problem is apparent only when run on Office 2013.
    A procedure in a workbook that records Sales information runs to transfer data to another workbook that stores Invoice information, and then opens Word to generate a mail merge document from a template (dotm) which has an event procedure (on Open) to merge
    data from the Invoice spreadsheet into a document to produce an invoice.  This procedure works without problem on the Office 2007 (Vista) machine and until recently likewise ran without problem on the Office 2013 (Windows 8.1) machine.  However,
    apparently following an automatic update to the Office 2013 machine, when the Word document is generated the procedure "hangs" at the point of reading the data from the Invoice workbook, and after a longish delay a message is generated along the
    lines of the program awaiting an OLE action.  The only way to stop the whole process is via task manager.
    After much research I have found that on the Office 2013 machine, the mail merge of data from the Invoice workbook will not now work if the Invoice workbook is open, bot works OK if it is closed.
    I have therefore programmatically closed the Invoice workbook, and the procedure now works on the Office 2013 machine (and on the Office 2007 machine).  However, I would like the Invoice workbook to be open when the Word document has been generated. 
    I therefore inserted a few seconds wait into the procedure to allow the mail merge to be completed, then tried to reopen the Invoice workbook.  I now get the message that the Invoice workbook is locked for editing, and asking if I want to open a read
    only copy (which I don't).  The Invoice workbook does not appear on the task bar, nor does it appear in task manager.  I have tried code to make it active and I then get "subscript out of range", and I have tried code to make it visible
    and I again get "subscript out of range".  However, if I close down the word documents generated with the data from the Invoice workbook, I can then open it;  presumably the merge process is treated as still being in progress while the
    documents are open, and the Invoice workbook is "released" when the documents are closed.
    Has anyone any advice to offer on how to deal with this problem of not being able to open the Invoice workbook while the mail merge documents are open.  The problem is apparent in both Office 2007 and 2013.

    Hi Caillen
    Thanks for looking at this.  I should explain that I do all my work on an Office 2007 machine for a family member who lives elsewhere, so I don't have direct access to the Office 2013 machine.  However, they are reasonably computer literate and
    report faults accurately.  To deal with your queries:
    1.  Their Office (and Windows) updates are installed automatically.  Basically, their systems are kept up to date.  It is only a guess that an update may have caused the problem, for the procedure worked as expected for some months and no
    other changes have been made.  The problem does not occur on my Office 2007 machine.
    2.  For the initial problem there was no error message initially;  the little circle just kept going round for a minute or so, then a message appeared on the Office 2013 machine saying that Excel was waiting for another program to complete an OLE
    action.  That message no longer appears because I have cured the problem by closing the workbook that is the data source for the mail merge.
    3.  I do indeed mean VBA code by procedure (Sub xxx()).  The code in the Word Template on which the procedure originally hung up was the third line below - i,e, the line starting ActiveDocument.MailMerge.OpenDataSource Name:= _
    Sub ctPrintInvoice()
        ActiveDocument.MailMerge.MainDocumentType = wdFormLetters
        ActiveDocument.MailMerge.OpenDataSource Name:= _
            ThisDocument.Path & "\ColTarInvoices.xlsm", _
            LinkToSource:=True, _
            Revert:=False, _
            Format:=wdOpenFormatAuto, Connection:="DETAILS", _
            SQLStatement:="SELECT * FROM `'Print Invoice$'`", SQLStatement1:=""
    "DETAILS" is a named range within the workbook that is the data source for the mail merge.  "Print Invoice" is the name of the worksheet that holds the data.  This code runs as an event on opening the document, which is done
    automatically within the code in the workbook.  The code in the Sales workbook to open the document is:
        Set objWord = CreateObject("Word.Application")
        If strSourceSheet = "Sales" Then
            Set objctMergeDoc = objWord.Documents.Add(ThisWorkbook.Path & "\ctInvoice1.dotm")
        ElseIf strSourceSheet = "Euro Sales" Then
            Set objctMergeDoc = objWord.Documents.Add(ThisWorkbook.Path & "\ctEuroInvoice1.dotm")
        End If
        objWord.Visible = True
        Set objWord = Nothing
        Set objctMergeDoc = Nothing
    However, the procedure also hung in the same place on the Office 2013 machine if the document was opened manually.
    4.  The code in the Sales workbook to close the Invoice workbook is:
       Workbooks("ColTarInvoices.xlsm").Close
    The code to reopen it is:
       Workbooks.Open (ThisWorkbook.Path & "\ColtarInvoices.xlsm")
    This generates the message that the workbook is locked for editing.  The same message is generated if I try to open the workbook manually while the merged documents are still open.
    (The files are all in the same folder)
    With thanks
    Andy C

  • OLE problem during upgrade

    It is still unsolved mystery.
    Why OLE is not working after upgarde??
    Pls check below thread & I have same problem.
    My prog run fine in 46C but in ECC60..it's open MSWORD but did not include table.
    I have done & checked all config settings related to SOLE. I thought it could be issue with SAPGUI since we have 620 but then why is running in 46C?
    OLE: ms word (Textbox)
    Any one has any idea?
    Thanks,
    Arpit

    Pls see below code....
    System is failing at bold statements.
    FORM CALL_MSWORD.
    DATA: WORDOBJ TYPE OLE2_OBJECT,
    I TYPE I.
    DESCRIBE TABLE ADRS_DATA LINES SY-TABIX.
    CHECK SY-TABIX GT 0.
    CREATE OBJECT WORDOBJ 'Word.Basic' .
    CALL METHOD OF WORDOBJ 'FileNew' EXPORTING #1 = 'normal.dot'.
    CALL METHOD OF WORDOBJ 'AppShow'.
    <b>CALL METHOD OF WORDOBJ
    'ToolsCreateLabels'
    EXPORTING #1 = '0'
    #2 = PETTY
    #3 = PETNO
    #4 = '0'
    #5 = '0'
    #6 = '0'.
    </b>IF NOT PETFT IS INITIAL.
    CALL METHOD OF WORDOBJ
    'Font' "WBIK018729
    'Schriftart' "WBIK018729
    EXPORTING #1 = PETFT
    #2 = PETCS.
    ENDIF.
    DO PSKET TIMES.
    CALL METHOD OF WORDOBJ 'NextCell'.
    ENDDO.
    LOOP AT ADRS_DATA.
    IF SY-TABIX NE 1 AND ADRS_DATA-XFELD EQ 'X'.
    CALL METHOD OF WORDOBJ 'NextCell'.
    IF NOT PETFT IS INITIAL.
    CALL METHOD OF WORDOBJ
    'Schriftart' "WBIK018729
    'Font' "WBIK018729
    EXPORTING #1 = PETFT
    #2 = PETCS.
    ENDIF.
    ENDIF.
    <b>
    CALL METHOD OF WORDOBJ 'Insert' EXPORTING #1 = ADRS_DATA-LINE.
    CALL METHOD OF WORDOBJ 'InsertPara'.
    </b>
    ENDLOOP.
    ENDFORM. " CALL_MSWORD
    Any clue??
    I tried all ways..
    Message was edited by:
            Arpit Nigam
    I solved the problem. Hence I am closing it.
    Message was edited by:
            Arpit Nigam

  • JEdtiorPane/HTMLEditorKit word wrapping problems

    Hi,
    I have a JFrame component that has a splitPane, on the left side is a JTree and the right side has a JEditorPane that has it's content updated with HTML using a method to generate the HTML via the setText() method . (no url, and no html file)
    The searching I did indicates that word wrapping is the default behavior, and I saw a lot of posts from people trying to get rid of the word wrapping, but it isn't wrapping at all for me. I get the horizontal scroll bar.
    I had the same problem using a JTextPane...anyone know how to wrap text?
    here's the relevant code:
    descriptionPanel = new JPanel(new BorderLayout());
              descriptionEditorPane = new JEditorPane();
              HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
              descriptionEditorPane.setEditorKit(htmlEditorKit);
              descriptionEditorPane.setSize(new Dimension(610,800));
              descriptionEditorPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              descriptionPanel.add(descriptionEditorPane);

    Did you place the components into scroll panes and then put those into the split pane?
    If so, then I guess that calling setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER) on the editor pane's scroll pane might solve your problem.

  • Word wrap problems in 36.0

    When entering text into a web form the text no longer "wraps" at the end of the box. The first part of the text runs off the left side. It is working fine in THIS text entry box but is now a problem on some other sites.
    See: http://www.thedirectoryclassifieds.com. Start placing a listing and then start entering text into the description box. Once you reach the end of the line the text does not wrap, just runs off the left side as typing continues. After this testing, just exit (back out) without continuing placing the listing.
    When encountering this problem I did a test on another computer that had 35.0.1 and word wrapping worked fine. Then I upgraded to 36.0 on that computer and now the problem is there too.
    So this definitely means a problem with 36.0 as it wasn't there in earlier versions.

    That particular form control has:
    &lt;textarea id="main_description" name="b[description]" '''style="white-space: pre;"''' class="editor field">&lt;/textarea>
    For the first time in Firefox 36, the white-space property is being honored for textarea controls. So there's your trouble: "pre" means Firefox should emulate the preformatted tag, which requires manual line breaks.
    It would be great if you can convince the site to change this to:
    &lt;textarea id="main_description" name="b[description]" '''style="white-space: pre-wrap;"''' class="editor field"></textarea>
    which is supported by all modern browsers (per the compatibility table here: [https://developer.mozilla.org/docs/Web/CSS/white-space#Browser_compatibility]).
    But that likely will take some time, so what is the best short-term workaround? I need to think about that a bit.
    To manually hack this form control, you can right-click it and choose Inspect Element (Q). This should open the web console to the Inspector in the lower part of the tab. Firefox should highlight the HTML tag I listed first above, and on the right, show the style rules for it. Under "This Element" you can uncheck the box for that rule to have the textarea styled using default rules. But you would need to do this after each time you load the page, which is a hassle.

  • I would like to create a custom datagridview column containing text images and MS Word OLE objects

    I am an old time LabView programmer going back to 2.0.  But moved on with my career several years ago.  But here I am back attempting a custom column in dataviewgrid control.  .NET is hard.  My goal is to read in an MS Word document and parse it out to a custom column.  The column will contain regular old text, images and MS Word objects, sometimes called OLE objects.
    There is scant information on creating .NET and labview when it comes to form manipulation.  I have stuggled through the learning curve and now able to insert a text box column into a datagridview and add it to the form container and actually size it to the datagridview control.  I've added a menu, but still figuring out the layout class.  Did I say .NET is hard?
    I know there must be a custom column created and even found a C# example, sorta.  Trouble is the example uses easy stuff like override and private.  It will take me another 3 weeks for that, darnit I'm getting lazy.
    Does anybody out there have some example of a custom column in the datagridview?
    If you ask to post code.  I have nothing I would be proud to show.
    The sorta go by: http://www.codeproject.com/Articles/31823/RichTextBox-Cell-in-a-DataGridView

    This is what the progress looks like so far.  I broke the tasks down in sub VIs.  One to create a custom cell so I can add it to the column CellTemplate.  The other to add the column to the control.  My limited knowledge of .NET and the implementation in LV causes me to question the value of LV .NET.
    The coding to create a TextBoxCell override with ImageCell CellTemplate.  Honestly I'm guessing what to do, because the LV documentation on inheritance and overriding is poor at best.
    The column coding to add the cell to the custom column.
    Probe 19 always comes up with an error.  The error is the standard 1172 with no clue what is causing it.  The "index" will work on 0 or 1, I suspect bc the two cell types are 0 and 1 but nothing tells me that, just guessing.

  • MS Word 2007 Problem: Could not Change Doc Template

    I started getting an error when I open a rules document through OPM. The document usually opens ok, but OPM gives the error "Oracle Policy Modeling was unable to open the document as an error occurred with MicroSoft Word: Could not change document template.
    Usually, I can work in the document with no problems, but sometimes when I do the compile of the document that got this message, the compile and save works, but then Word crashes. The compiled document is available through OPM, but it thinks the document needs to be compiled on a build. I've learned to continue without compiling, otherwise Word will crash again.
    Other times, the document compiles just fine with no problems with Word.
    Occasionally, Word loses the Add-ins list. I've figured out how to attach it again.
    Everything was fine until about 2 weeks ago. The only difference I can think of is that Word did an automatic update. I uninstalled and reinstalled OPM, but it hasn't made a difference.
    I'm running OPM 10.1.0.27 on XT.
    Any ideas? Thanks,
    Terry

    Hi Terry,
    Try the following workaround:
    1) Rename the word 2003 template (Policy Modeling Word Template) in c:\program files\oracle modeling\templates to another filename
    - This is to force Word 2007 not to load the Word 2003 template
    2) Open the Word document from Policy Modeling
    - To load the Word 2007 template and attached it to the document
    3) Save the document
    (Thanks to Red Canda for this.)
    Davin Fifield

  • Conversion from pdf to Microsoft Word has problems.

    I just purchased adobe pdf conversion tool and when I convert a pdf file to a Microsoft word file there are not capitols, it doesn't match original document margins, some indentions missing, etc.  Has anyone had the same problem and is there a solution?

    I don't know what "capitols" are; can you provide a screenshot of both the original and converted documents?
    [topic moved to ExportPDF forum]

  • Microsoft Word Permissions problem and crashing application

    Hi all,
    I am having a problem with saving/accessing Word documents on my Xserve (running 10.4.7). This server is installed in a small organization with about a dozen users. All workstations are using Word 2004 (v11.3). When users login to the server and access a document, quite often the permissions change to read only. Also, Word crashes quite often on these workstations while connected to the server. I've tried giving them each unique UID's and also sharing the same UID with the same results.
    This problem doesn't happen with other files created from Adobe apps, etc.
    any and all help is greatly appreciated

    Never Mind. I figured it out. Apparently, it was saved and I was looking in the wrong place or something. I'm not exactly sure, but I found the pages!
    Anya

  • Security word entry problem

    Hi, so when I am web browsing with my iPad2 and I have to enter a security word for a website to know I am indeed a human, the website always comes back to me saying i input the information incorrectly. I have checked I am entering the information correctly, I am aware sometimes they are case sensitive and that the ipad will default to the first letter being a capital and have changed that. I still get the problem every time. I have checked the websites on my laptop and they worked first time on both so I know the websites are working ok.
    Is there something I am missing?
    Cheers,
    Greg

    OK. Try the following 'standard' fixes for Safari and see if they have any impact :
    Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Importing word file - problem in style capturing

    Hi All,
    I have a problem in importing the wordfile into Indesign CS3.
    We have created all the Para & character styles in Indesign CS3.
    The same style was created in Word also, we have a set of guys to do the pre-editing the input wordfile which we got from client.
    We have applied all the character and para styles in Wordfile, which uses the same names in Indesign CS3.
    When we import the wordfile into the Indesign CS3 all the para & character shows "+" marks and the style was not applied.
    What will be the problem, why it is behaving like this, we have checked the "import options" while importing the word, but it fails.
    Is anyone have these type of problem.
    We need to know that how to solve this, since the reference part has lots of character style applied, we cannot clear the "+" manually in Indesign CS3 to solve.
    Kavya

    > So we like to open a topic reg. this to get solved.
    This is a user-to-user forum. We're all just users like you.
    From what I could tell from your post, Indesign is working as intended.
    There is no solution because there really is no problem.
    > Giving char style for bold and italics and special character will
    > won't solve this, after importing into the template we need to clear
    > the overrides that become manual one and we don't know what else has
    > changed in the content, this will leads to problems.
    Yes. Clearing overrides does clear all non-styled formatting, which is
    why I suggested using Find/Replace to find the good formatting before
    you clear the bad formatting. Specifically, you mentioned wanting to
    keep bold and italic. The other character-level formatting from Word
    that you will probably want to keep is:
    --Strikethrough
    --Underline
    --Superscript
    --Subscript
    --Small Caps
    --All Caps
    --Bold Ital
    --Bold
    --Ital
    There may be other character-level unstyled formatting you want to keep.
    This depends on what the author put into the file.
    If you're getting the same kind of files all the time, you can develop a
    routine for these Find/Replaces. You can save your Find/Replaces, use
    GREP, even string all the Find/Replaces together in a script. What you
    can't do is expect Indesign to know which unstyled formatting is "good"
    and which formatting is "bad". Only you know what you want to keep and
    what you want to throw away.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • RH8 output as Word doc problem

    I generated a project as a Word document to use for review purposes. The text is fine but I have an excel file that I added in as an htm. When it converts back to Word it's awful. Also a visio diagram does not reproduce well, but the problem there is that it's so small. Any suggestions for using Word for review with images, baggage files?

    Could you filter out the baggage file when you generate the Word file and then manually enbed them once it has been created?
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Word completion problem

    Hi folks.
    Not after code, as I am hoping to write this myself. I am after suggestions from anyone that has been there before or has a bit more experience with this problem and ideas for me.
    Many of you guys are probably using an IDE with code completion. I'm not trying to write a code completor just yet, but a simple word completor.
    My current plan is to use an embedded java database (derbyDB) in the application (lets just say a JTextArea in a frame). The database has heaps of words in it. As the person types, it sits there in the background with a thread that listens to the stuff being typed and queries for similar words (SQL) in the database and adds it to the text area in a highlight.
    I'm pretty fine with all the text area stuff, but does the above plan sound fine for what I am trying to do?
    Is there any problems people see with the above design? My biggest concern was using the key listener to figure out what they typed into the box... I am worried that if you have a fast typer, it will freeze the characters from coming on screen while the database is looking them up...
    I have looked all over google and through these forums, but cannot find anything (hell- im not even sure if word completion is the correct term for what I'm trying to do...). I just know that many programs do it, and wanted to know how.
    Interested to hear any suggestions about this problem.
    Jason.

    Aha... Queues... That would be a better approach. Thanks. I had no idea about using these!
    i noticed you also made reference to a database. So I'm guessing the database is the way to go.
    I wasn't particularly worried about the grammar side of things, but now that you mentioned it, it does seem like a big problem, ie which word to complete in which situation in a sentence. It almost sounds like a compiler but for english!!! lol Perhaps I should limit the completor to technical words (anatomical words is what I am mainly interested in),
    ie user types "stern"
    possible completions are sternum, sternomastoid, sternocleidomastoid
    when user types ctrl-space (as you say) these words appear in a drop down box.
    Thank you for your suggestion about queues. I will learn about these now.
    Jason.

  • WORD MACRO PROBLEM

    So I have a Macro that looks like this:
    Sub LabelCamp4X4()
    Set labelCamp = CreateObject("Word.Application") labelCamp.Visible = True
    labelCamp.Documents.Add Template:="C:/templates/4x4Label.dotx"
    End Sub
    It all works fine the new document gets generated and it opens up based on my template file. But the problem now is that it opens on the back of the window so users feel that it has not been open and they end up clicking the button several times. So my question
    is how do I get them to load as an active window?

    Hi Rafaelhc,
    If you have only one document opened, you can try to  minimize the active document.
    Use the VBA code below:
    Set labelCamp = CreateObject("Word.Application") labelCamp.Visible = True
    labelCamp.Documents.Add Template:="C:/templates/4x4Label.dotx"
    ActiveWindow.WindowState = wdWindowStateMinimize
    Wind Zhang
    TechNet Community Support

  • WORD - OLE - VERY URGENT

    Hello
    (sorry for my english)
    My question is :
    I use Ole with Forms 6 and Word 2000
    But sometimes when I open a document, it happen that this document has already openend by another user
    and so Word make appear a popup window (Read Only, Notified or Cancel)
    I would like that Word doesn't display this popup window.
    How to do ?
    please, contact me if you know at [email protected]
    Thanks

    Hi,
    Please Help. This is very urgent.
    I modified the above program in this manner:
    loop at IOBJ. (selection-screen variable)
    loop at it_RSZSELECT.
    it_result-iobj = iobj.
    it_result-iobjnm = it_RSZSELECT-iobjnm.
    select * from rszeltxref
    where teltuid = it_RSZSELECT-eltuid
    and objvers = 'A'.
    IF rszeltxref-laytp = 'FIX'.
    UPDATE rszeltxref SET laytp = 'AGG'.
    ENDIF.
    endselect.
    endloop.
    endloop.
    Rollback Work.
    Inclusion of this statement did not help in any way.
    Regards

Maybe you are looking for