Search found 24 matches
- Sun Apr 07, 2024 3:26 pm
- Forum: Macros and UNO API
- Topic: [Solved] Automate Mail Merge and PDF creation
- Replies: 11
- Views: 1338
Re: OpenOffice Automation for MailMerge and PDF Creation
Hello, you can try this : 1 - put your csv files in a folder ( ex : csv) 2 - create a new base database (.odb) (ex CsvFiles.odb) connect to an existing database (select Text/Csv) and choose the folder where the csv files are (Path to text files) and select the options for the csv. In the tables wind...
- Sat Mar 09, 2024 8:40 am
- Forum: Macros and UNO API
- Topic: Get all Annotations/Comments/Notes
- Replies: 17
- Views: 2219
Re: Get all Annotations/Comments/Notes
Hello, you can try something like this : Sub EnumAnnotations Dim oTextFields as Object, oTextField As Object CreateDbgDlg oTextFields = ThisComponent.getTextFields() for each oTextField in oTextFields if oTextField.supportsService("com.sun.star.text.textfield.Annotation") then DebugPrint &...
- Wed Mar 06, 2024 5:37 am
- Forum: Macros and UNO API
- Topic: [Solved] APSO: No module named numpy.core._multiarray_umath
- Replies: 8
- Views: 4989
- Wed Mar 06, 2024 4:14 am
- Forum: Macros and UNO API
- Topic: [Solved] APSO: No module named numpy.core._multiarray_umath
- Replies: 8
- Views: 4989
Re: No module named 'numpy.core._multiarray_umath
Hello,
your problem seems to be , the one that i have had with the example of the new version of APSO using numpy. See the README.md ( or LISEZMOI.md in french) here.
Friendly, J.P
your problem seems to be , the one that i have had with the example of the new version of APSO using numpy. See the README.md ( or LISEZMOI.md in french) here.
Friendly, J.P
- Wed Mar 06, 2024 3:57 am
- Forum: Extensions
- Topic: APSO : new version with pip package manager
- Replies: 0
- Views: 568
APSO : new version with pip package manager
Hello, a new version of APSO (1.4.0alpha) has just been created. This corresponds to the branch APSO with_pip in the APSO gitlab repository. It is currently in the Alpha phase, which means that it is an experimental phase to see if the features introduced are operational and do not disrupt the rest ...
- Tue Jan 30, 2024 3:07 pm
- Forum: Macros and UNO API
- Topic: [Solved] Get number of bytes to read from stream
- Replies: 8
- Views: 1821
Re: How to get number of bytes to read from stream
Hello, sorry but it seems that it is not possible to use Xconnection2 with Basic, see here maybe you can use python macro with socket module to read data from your network device. Example in a user python script file : # coding: utf-8 from __future__ import unicode_literals import uno import unohelp...
- Mon Jan 29, 2024 7:39 pm
- Forum: Macros and UNO API
- Topic: [Solved] Get number of bytes to read from stream
- Replies: 8
- Views: 1821
Re: How to get number of bytes to read from stream
have a look to Interface Xconnection2 with the methods available and readSomeBytes
- Mon Jan 29, 2024 2:49 pm
- Forum: Macros and UNO API
- Topic: [Solved] Get number of bytes to read from stream
- Replies: 8
- Views: 1821
Re: How to get number of bytes to read from stream
Hello VbandOoffice,
what is your code ?
Friendly, J.P
what is your code ?
Friendly, J.P
- Sun Jan 28, 2024 11:12 am
- Forum: Macros and UNO API
- Topic: [Solved] List all keys in a Collection
- Replies: 7
- Views: 1813
Re: List all keys in a Collection
Hello, in LibreOffice since the version 7.2 you have the ScriptForge Library (included in the installation of L.O). In this library you have the Dictionary service . Exemple of use : Sub DicoTest() GlobalScope.BasicLibraries.loadLibrary("ScriptForge") Dim myDict As Variant, keys as Variant...
- Wed Jan 03, 2024 12:27 pm
- Forum: Macros and UNO API
- Topic: Add Button in row of gridcontrol in a dialog
- Replies: 10
- Views: 3080
Re: Add Button in row of gridcontrol in a dialog
Hello, Maybe instead of a button, I can use a bitmap (an image of a button), but I have the same problem : I don't know how to display a bitmap in a cell of a GridControl. Here is a code derivated from a Bernard Marcelly code, to display bitmap on the first column of a grid control. Sub Main() xgrap...
- Mon Jan 01, 2024 6:13 pm
- Forum: Calc
- Topic: [Solved] Import CSV into existing Calc sheet
- Replies: 23
- Views: 21195
Re: Import CSV into existing Calc sheet
ok, it seems to be good now, thanks
- Mon Jan 01, 2024 4:18 pm
- Forum: Calc
- Topic: [Solved] Import CSV into existing Calc sheet
- Replies: 23
- Views: 21195
Re: Import CSV into existing Calc sheet
Villeroy in your file in the library Csv_Dump i only see the function getActiveCell (_helpers module) ???
- Mon Jan 01, 2024 1:46 pm
- Forum: Calc
- Topic: [Solved] Import CSV into existing Calc sheet
- Replies: 23
- Views: 21195
- Mon Jan 01, 2024 11:24 am
- Forum: Calc
- Topic: [Solved] Import CSV into existing Calc sheet
- Replies: 23
- Views: 21195
Re: Importing CSV into existing calc sheet
Hello, And all those values are text. Just try to sum them up. If your csv files have quoted string and if the numbers are not quoted your can use the option quoting = CSV.QUOTED_NONNUMERIC (2) to import CSV. Number data will be Number in calc. You can also convert the data of the columns with strin...
- Sun Dec 31, 2023 12:39 pm
- Forum: Calc
- Topic: [Solved] Import CSV into existing Calc sheet
- Replies: 23
- Views: 21195
Re: Importing CSV into existing calc sheet
Hello, Got "easydev" installed and created this Basic snippet: Sub Main util = createUnoService("org.universolibre.EasyDev") Dim Options(0) as new com.sun.star.beans.PropertyValue options(0).Name = "delimiter" options(0).Value = ";" path = "/tmp/test/0702...
- Fri Mar 31, 2023 5:41 am
- Forum: Macros and UNO API
- Topic: Script provider loads document python macros too late?
- Replies: 9
- Views: 3553
Re: Script provider loads document python macros too late?
Hello, I have found a workaround : call the python script only if thiscomponent is loaded and recalculate all when thisComponent is loaded : function getWorkingDirectory() getWorkingDirectory = "" if thisComponent.isLoaded then oScriptProvider = ThisComponent.getScriptProvider() oScript = ...
- Mon May 24, 2021 5:09 am
- Forum: Macros and UNO API
- Topic: Open Impress doc, add slide, add text, import picture
- Replies: 2
- Views: 3036
Re: impress basic
hello, Hello, I am trying to implement in BASIC : 1. open an impress document 2. add a slide 3. add a text on the slide 4. import a picture to the same slide Thank you hello, here is an example to do what you want to do : Sub TestPierre() Dim oPresDoc,oSlideList,oSlide,TxtShp,oImagen_obj,oPos,oSize ...
- Thu Oct 08, 2020 2:46 am
- Forum: Macros and UNO API
- Topic: Is debugging python with pydev possible?
- Replies: 3
- Views: 3570
Re: Is debugging python with pydev possible?
hello, i can debug a python script of libreoffice with pydev : Windows 10 - pydev 8.0 - LibreOffice 6.3 (python 3.5) - pydevd 2.0 - APSO 1.2.6.2 pydevd installed with pip install in pydev. i can't use breakpoints in events handler. To Debug in the event handler i use mri to see variables. Not workin...
- Fri Oct 02, 2020 8:23 am
- Forum: Macros and UNO API
- Topic: Is debugging python with pydev possible?
- Replies: 3
- Views: 3570
Re: Is debugging python with pydev possible?
hello,
Friendly, J.P
internal python debugging in LibreOffice/OpenOffice is possible with the APSO extensionbrauart wrote:there is an old thread saying external ( i would also accept internal ) python debugging is possible
Friendly, J.P
- Sat Nov 04, 2017 2:03 am
- Forum: External Programs
- Topic: How to launch an external program
- Replies: 9
- Views: 17479
Re: how to launch an external program
certainly but it will be more complicated or use a python macro
- Sat Nov 04, 2017 1:54 am
- Forum: External Programs
- Topic: How to launch an external program
- Replies: 9
- Views: 17479
Re: how to launch an external program
hello, with the extension EasyDev (see here ) it's easy :) : to compress some files and see the crc : REM ***** BASIC ***** Sub Tst_7za() util = createUnoService("org.universolibre.EasyDev") res = util.execute(Array("cmd.exe","/c","F:\7zip\7za.exe",_ "a&q...
- Wed Nov 01, 2017 2:03 am
- Forum: Macros and UNO API
- Topic: [Solved] Database Range Source
- Replies: 5
- Views: 3192
Re: Database Range Source
hello, you can use the descriptor object to get the infos. Example : Sub RefreshDBRanges Dim oDBRangesEnum as Object Dim oNext as Object Dim Descriptor as Object oDBRangesEnum = thisComponent.DatabaseRanges.createEnumeration() While oDBRangesEnum.hasMoreElements() oNext = oDBRangesEnum.nextElement()...
- Thu Oct 26, 2017 11:13 pm
- Forum: Extensions
- Topic: EasyDev - risky to install?
- Replies: 14
- Views: 9926
Re: EasyDev - risky to install?
hello,
Friendly, J.P
OFF for Zizi64 : with LiceCap a free software easy to use (windows & OSX).Zizi64 wrote:OFF:
Jurassic Pork,
How you created that small sized animated gif picture above? It is very useful tool to demonstrate the implemented ACTIONS for the Forum users...
Friendly, J.P
- Thu Oct 26, 2017 1:48 am
- Forum: Extensions
- Topic: EasyDev - risky to install?
- Replies: 14
- Views: 9926
Re: EasyDev - risky to install?
hello, It is important to note that it is written for Python 3 and therefore cannot be relied on to work with OpenOffice's Python 2.7. the last version of Easydev ( here ) can be installed with A.O.O 4.1.3. May be there are few functions not working because Python 2 in A.O.O . I have made a demo cal...