bugGNU Octave - Bugs: bug #56656, [octave forge] (windows) error:...

 
 

bug #56656: [octave forge] (windows) error: com_get: property/method invocation on the COM object failed with error `0x800a16e6'

Submitter:  Andrew <ozwest99>
Submitted:  Mon 22 Jul 2019 02:59:13 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  ozwest99 Open/Closed:  * Open
Release:  * 5.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 Jul 2019 01:50:43 PM UTC, comment #4: 

comment #1:

> Please, use the mailing list -email is unavailable- for help requests.
>
> In case this is a bug in Octave core or the windows package, please provide more information where you think the actual bug is.


Hi Markus, as a first time user I made an assumption that this "error: com_get: property/method invocation on the COM object failed with error `0x800a16e6'"is occurring due to bug so I raised it as a bug report rather than mailing help-octave@gnu.org. How should I know if something is a bug in Octave?, the presence of an error code like this 0x800a16e6 is often indicative of a bug in many software platforms, please let me know thanks. Also I'm not familiar enough with Octave to work out how to decide if the bug is in Octave or the windows package at this time.

comment #3:

> Not my post is based on just running the code fromthe reference you provided.
>
> Fixeing the first issue then shows an error with ActXWord.Selection.TypeParagraph, which is is treating as a propery, rather tan calling as a function.
>
> Changing to ActXWord.Selection.TypeParagraph (); fixes that - it will  likely be similar in other places.
>

Hi John, many thanks for your input, I went through the remaining code and inserted the (). The code runs almost all the way to the end now so this is an encouraging start for my first use of Ocatve. I now have an issue trying to use a modified version of Andreas's FigureIntoWord function which results in this error below. But I will see if I could get some further help with this via -email is unavailable- as it doesn't seem like a bug to me but more a lack of understanding of printing in Octave verses Matlab.
thanks Andrew


error: print: format must be a valid Ghostscript format for spooling to a printer
error: called from
    _print_parse_opts_ at line 421 column 7
    print at line 416 column 8



Andrew <ozwest99>
Mon 22 Jul 2019 07:05:20 PM UTC, comment #3: 

Not my post is based on just running the code fromthe reference you provided.

Fixeing the first issue then shows an error with ActXWord.Selection.TypeParagraph, which is is treating as a propery, rather tan calling as a function.

Changing to ActXWord.Selection.TypeParagraph (); fixes that - it will  likely be similar in other places.


John Donoghue <lostbard>
Group Member
Mon 22 Jul 2019 06:52:52 PM UTC, comment #2: 

actx_word_p.Selection.Font.ColorIndex is expecting a index value, not a magic string 'wdAuto'

Acording to MS [1] the wdAuto value is 0



[1] https://docs.microsoft.com/en-us/office/vba/api/word.wdcolorindex

John Donoghue <lostbard>
Group Member
Mon 22 Jul 2019 04:05:26 PM UTC, comment #1: 

Please, use the mailing list -email is unavailable- for help requests.

In case this is a bug in Octave core or the windows package, please provide more information where you think the actual bug is.

Markus Mützel <mmuetzel>
Group administrator
Mon 22 Jul 2019 02:59:13 PM UTC, original submission:  

OS=Windows 10, I am trying to run MATLAB code that uses the write to word submission by Andreas Karlsson that can be found on MATLAB central, it all runs fine up until the point described below.

The forge Windows package that provides the COM interface has been installed(windows *| 1.3.0 \OCTAVE~1.0\mingw64\share\octave\packages\windows-1.3.0)

My code has correctly opened up Microsoft Word and has pasted in a logo however the next line of code which should start a new paragraph fails to run with the error:-

"error: com_get: property/method invocation on the COM object failed with error `0x800a16e6'"

I don't know how to fix this can anyone help or explain the error code so I can try get this working?


ActXWord.selection.InlineShapes.AddPicture([pwd '/Logo.jpg'],0,1);
ActXWord.Selection.TypeParagraph; % start new paragraph


thanks

Andrew <ozwest99>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by ozwest99 (Submitted the item)
  • -email is unavailable- added by ozwest99
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-07-22 mtmiller Summaryerror: com_get: property/method invocation on the COM object failed with error `0x800a16e6' [octave forge] (windows) error: com_get: property/method invocation on the COM object failed with error `0x800a16e6'
    2019-07-22 ozwest99 Carbon-Copy- Added ozwest99

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code