Ask Your Question
0

[solved] Unable to call a Python extension routine from Basic [closed]

asked 2018-10-25 09:44:39 +0200

updated 2018-10-26 15:59:03 +0200

Hi,

As per OpenOffice specs, calling a Python extension macro is possible. I able to do so when the Python macro is stored in a document or in the user/Scripts/python directory but unable to get it functioning when the Python macro resides within an extension. I may surely be doing something wrong.

I am attaching a Writer doc with functioning & failing example codes and instructions for anyone to review: docConsole macro is functioning while oxtConsole macro fails to locate/load the Python script resulting in "Object variable not set" error message.

Tested with LibreOficePortable 6.0.4.2, LibreOffice 5.4.7.2 and OpenOfficePortable 4.1.5

Thanks in advance for your assistance in that matter. C:\fakepath\Console.odt

link: Scripting Framework URI Specification

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by LibreOfficiant
close date 2018-10-26 16:02:10.401114

Comments

1

I have been unable to do so and may surely be doing something wrong

What does "unable" mean? Please never omit what you get (e.g., error messages - they might be different on your system).

And also please never omit important information about your setup (like OS details).

Mike Kaganski gravatar imageMike Kaganski ( 2018-10-25 13:17:42 +0200 )edit

Thanks Mike, I amended this post as you suggest

LibreOfficiant gravatar imageLibreOfficiant ( 2018-10-25 13:46:58 +0200 )edit

Hi Mike

Thanks for your interest as well as your prompt answer. However the docConsole macro is actually functioning fine, it’s the ‘oxtConsole’ that fails. Should I assume you made a typo in the last sentence of your mail?

Cordially

LibreOfficiant gravatar imageLibreOfficiant ( 2018-10-25 17:35:02 +0200 )edit
1

@LibreOfficiant When posting a question on multiple forums, please note this to eliminate duplicate effort.

Cross-posted here -> Unable to call a Python extension macro from Basic

Ratslinger gravatar imageRatslinger ( 2018-10-25 18:05:31 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-10-26 15:56:53 +0200

Fix and detailed solution can be found in OpenOffice.org english forum.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-10-25 09:44:39 +0200

Seen: 55 times

Last updated: Oct 26 '18