Search found 1144 matches

by B Marcelly
Fri May 27, 2016 9:10 am
Forum: Calc
Topic: Maximum Number Of Rows Exceeded - Different Countries?
Replies: 17
Views: 4046

Re: Maximum Number Of Rows Exceeded - Different Countries?

There are two consecutive errors in the original csv, line 133 and line 134. Line 133 \" Line 134 \" Ecran001.png In each case the person filling data wanted to indicate a length in inches . Probably from the same person, other errors like &xxx; appear in lines 167, 174, 631, 654, 908,...
by B Marcelly
Tue May 24, 2016 6:18 pm
Forum: Macros and UNO API
Topic: [Solved] Pass a variable to a sub or function correctly
Replies: 6
Views: 2126

Re: pass a variable to a sub or function correctly

Learn how to program in Basic...
Basic Guide : Procedures and Functions
by B Marcelly
Tue May 24, 2016 11:53 am
Forum: Writer
Topic: Automating with Delphi : disable the "close" button
Replies: 5
Views: 2136

Re: Automating with Delphi : disable the "close" button

I want to prevent the user to close the Writer pushing the button "close" because, the next time i open it, i receive the error "RPC not available". Perhaps because you have not disconnected your link to OpenOffice between two uses of the document. Repeat ConnectOpenOffice; do y...
by B Marcelly
Tue May 24, 2016 10:20 am
Forum: Writer
Topic: Automating with Delphi : disable the "close" button
Replies: 5
Views: 2136

Re: Automating with Delphi : disable the "close" button

Read Developer's Guide Closing Documents. :roll:

Now you should understand that "Reacting Upon Closing" is not simple. You have to use listeners. And handling listeners through COM-Automation is not easy.
by B Marcelly
Tue May 24, 2016 8:56 am
Forum: Writer
Topic: Stop add extra space between 2 language words
Replies: 7
Views: 1668

Re: Stop add extra space between 2 language words

I can reproduce on my Windows 7 computer. I first typed mmmm then I inserted some characters just in the middle. I repeated this with different national characters in font Tahoma. TahomaFont.png The extra "spaces" at left and right sides of the Thai text are not added characters. In Arabic...
by B Marcelly
Sun May 22, 2016 9:52 am
Forum: Calc
Topic: Dynamic Drop Down Validation vs. Windows 10 Laptop
Replies: 17
Views: 3768

Re: Dynamic Drop Down Validation vs. Windows 10 Laptop

For other readers, calc-learner created Issue 126981.
My comment :
The problem is not due to a dynamic contents, it appears on a fixed list of a cell range.
Bug : if option Allow empty cells is NOT checked, there is no reason to display an empty item.
by B Marcelly
Tue May 17, 2016 8:07 am
Forum: Writer
Topic: [Solved] Wrong password after Firefox master password set up
Replies: 13
Views: 5387

Re: incorrect password after firefox master password set up

It is astonishing, but there is a connection between Mozilla Firefox/Thunderbird and Apache OpenOffice ! Bug report 125431 concerns Linux and MacOSX only . It is a very long and complex report. Comment 52 starts the suspicion of Firefox / Apache OpenOffice interference. Comment 76 explains that Wind...
by B Marcelly
Sun May 15, 2016 4:35 pm
Forum: Writer
Topic: I think this is probably impossible, but I have to ask
Replies: 7
Views: 2180

Re: I think this is probably impossible, but I have to ask

What I understand :
- you have html documents.
- you want a PDF of these documents.
Answer:
Install a PDF printer (example: free FoxIt PDF Reader).
Display the documents in a web browser. Print the web page using the PDF printer.
by B Marcelly
Sun May 15, 2016 10:01 am
Forum: Macros and UNO API
Topic: [Solved] Control Calc list of sheet tabs in Basic
Replies: 9
Views: 4688

Re: Control Calc list of sheet tabs in Basic

Even if you could change the width of the sheet tabs space it would not solve the problem if your spreadsheet has numerous sheets and/or long names: Apache OpenOffice spreadsheet may contain 256 sheets. LibreOffice spreadsheet may contain 10 000 sheets. In Apache OpenOffice the same line is shared b...
by B Marcelly
Fri May 13, 2016 6:32 pm
Forum: Macros and UNO API
Topic: Understand - OpenOffice API Docs
Replies: 6
Views: 2585

Re: Understand - OpenOffice API Docs

Albireo uses the script language of AutoHotKey to manipulate OpenOffice through COM-Automation of MS-Windows. It's the first time I see someone using this language to work on OpenOffice. For Albireo : working on OpenOffice through COM-Automation is described in chapter Automation Bridge of the Deve...
by B Marcelly
Fri May 13, 2016 2:16 pm
Forum: Macros and UNO API
Topic: Understand - OpenOffice API Docs
Replies: 6
Views: 2585

Re: Understand - OpenOffice API Docs

Hi, You cannot understand without reading the Developer's Guide. Some fundamental elements are described in chapter First Steps . You have to understand what is a service, an interface, a structure, etc. The Developer's Guide is lengthy and hard to read, because the OpenOffice API is huge and comple...
by B Marcelly
Thu May 12, 2016 3:23 pm
Forum: User Experience (UX)
Topic: Draw: Quick Layer Visibility Erratic
Replies: 4
Views: 4315

Re: Draw: Quick Layer Visibility Erratic

Hi,
You have to create an Issue describing your request for improvement. And perhaps it will be added in the future (if a developer is interested).
To create an issue : https://bz.apache.org/ooo/
by B Marcelly
Thu May 12, 2016 9:32 am
Forum: Macros and UNO API
Topic: [Solved] SpellNumber in Calc Basic
Replies: 12
Views: 17274

Re: SpellNumber in Calc Basic

Use a typed variable when you only need a specific type of data. Here, an empty variant is not equal to an empty string. Replace the first declaration by: Dim Dollars As String, Cents As String, Temp As String Instead of this naive and inefficient code, use function MONEYTEXT, provided by extension ...
by B Marcelly
Tue May 03, 2016 5:23 pm
Forum: Macros and UNO API
Topic: Call "Cell style" dialogbox
Replies: 4
Views: 2730

Re: Call "Cell style" dialogbox

Hi, You can open the Styles and Formatting dialog with the dispatcher: dim document as object, dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") dispatcher.executeDispatch(document, ".uno:StyleNewBy...
by B Marcelly
Mon May 02, 2016 5:04 pm
Forum: Macros and UNO API
Topic: Can a user instantiate a built-in object? (com.sun.star.*)
Replies: 11
Views: 9512

Re: Can a user instantiate a built-in object? (com.sun.star.

Hello, Here is a Basic example of using EnumerableMap Option Explicit Sub Main1 Dim PostCodeFR As Object Dim k As String Dim enu As Object, elem As Variant PostCodeFR = com.sun.star.container.EnumerableMap.create("string", "long") With PostCodeFR .put("EMBRUN", CreateUn...
by B Marcelly
Mon Apr 18, 2016 9:19 am
Forum: Macros and UNO API
Topic: [Solved] Save a draw shape as DIB bitmap?
Replies: 39
Views: 18610

Re: Save a draw shape as DIB bitmap?

Hi, _savage wants to export a graphic object from a Writer document. Zizi64 code works because it contains shapes, but not a graphic object. If the Writer document contains an image ( = graphic object), the code throws : IllegalArgument Exception. Throws com::sun::star::lang::IllegalArgumentExceptio...
by B Marcelly
Thu Apr 07, 2016 9:55 am
Forum: MS Windows
Topic: [Solved] Detect AOO installation, specifically scalc.exe
Replies: 4
Views: 2451

Re: Detect OpenOffice installation, specifically scalc.exe

Read the Windows register to find out which application is associated to a particular extension. Example in VBScript, searching extension .ods for Calc im Key, wsh, fileExt, appli, cmdAppli fileExt = ".ods" Set wsh = CreateObject("WScript.Shell") Key = "HKCR\" & fil...
by B Marcelly
Thu Apr 07, 2016 9:26 am
Forum: Macros and UNO API
Topic: Trying to understand Anchors (XTextRange)
Replies: 12
Views: 11629

Re: Trying to understand Anchors (XTextRange)

Property Anchor points to the paragraph where the graphic is anchored. From the paragraph, getText() returns the text the paragraph belongs to. In the general case, this text may be the ordinary text you write, or the text inside a text frame, or the text inside a cell of a table, or the text of the...
by B Marcelly
Wed Apr 06, 2016 7:08 pm
Forum: Macros and UNO API
Topic: Call "SUBTOTAL" Calc function from within Macro
Replies: 9
Views: 4030

Re: Call "SUBTOTAL" Calc function from within Macro

You are right : gotoEndOfUsedArea supposes that the columns are "clean". If somewhere down in a column a cell has hard formatting (a cell border, or a background color), or simply a cell value that you forgot to delete at row 12586, the EndOfUsedArea will go there. Typical case : you have ...
by B Marcelly
Wed Apr 06, 2016 8:03 am
Forum: Macros and UNO API
Topic: Call "SUBTOTAL" Calc function from within Macro
Replies: 9
Views: 4030

Re: Call "SUBTOTAL" Calc function from within Macro

When searching the end of used area, skip the column header. Simplified code, using Basic For Each in an enumeration Dim sh As Object, rg As Object Dim visiCells As Object, pack As Object Dim cursor As Object Dim nbRows As Long sh = ThisComponent.Sheets.getByName("yourSheetname") rg = sh.g...
by B Marcelly
Tue Apr 05, 2016 9:37 pm
Forum: Macros and UNO API
Topic: Call "SUBTOTAL" Calc function from within Macro
Replies: 9
Views: 4030

Re: Call "SUBTOTAL" Calc function from within Macro

Your range must be limited to the length of your table. Or you will count empty rows.
by B Marcelly
Tue Apr 05, 2016 10:23 am
Forum: Macros and UNO API
Topic: [Solved] Select Item in a listbox
Replies: 3
Views: 2986

Re: Select Item in a listbox

Hi,
Use Xray or MRI to display properties and methods of your object. And read available docs.
by B Marcelly
Tue Apr 05, 2016 10:17 am
Forum: Macros and UNO API
Topic: Call "SUBTOTAL" Calc function from within Macro
Replies: 9
Views: 4030

Re: Call "SUBTOTAL" Calc function from within Macro

 Edit: (incorrect answer) 
by B Marcelly
Mon Apr 04, 2016 9:23 pm
Forum: Extensions
Topic: [Solved] History Master installed
Replies: 4
Views: 3271

Re: History Master installed

First, close completely your OpenOffice (including the Quick starter if exists in the Mac version). Then start again OpenOffice and check the Tools menu. The new item may appear now. This is what I have on MS-Windows: Ecran004.png Perhaps the Add-Ons submenu is elsewhere in MacOs version ? Hopefully...
by B Marcelly
Mon Apr 04, 2016 3:39 pm
Forum: Extensions
Topic: [Solved] History Master installed
Replies: 4
Views: 3271

Re: History Master installed

Hi, Menu Tools - Add-ons - History Master : List handling... Change the size of each list from 0 to 100. Eliminate the useless names. Change the order of the names. Menu File - Recent of same type... Find recent documents of a same type in one of the lists. Once you have opened List Handling, click ...
by B Marcelly
Wed Mar 23, 2016 3:48 pm
Forum: Macros and UNO API
Topic: [Solved] Merge/allign cells in Columns macro
Replies: 9
Views: 4268

Re: Merge/allign cells in Columns macro

Here is a solution. Align_cells_AtLeft.ods Somewhere in columns D to L, it is expected to find 4 data in succession. Empty lines are skipped. Adapt to your needs. Option Explicit Sub AlignToColumnLeft Dim sh As Object, zone As Object, dataRow As Variant Dim y As Long, x1 As Long, x2 As Long Const mi...
by B Marcelly
Wed Mar 23, 2016 10:54 am
Forum: Macros and UNO API
Topic: [Solved] Merge/allign cells in Columns macro
Replies: 9
Views: 4268

Re: Merge/allign cells in Columns macro

What do you want to achieve ?
As an example, write in sheet2 of the document the result you want.
by B Marcelly
Tue Mar 15, 2016 3:55 pm
Forum: MS Windows
Topic: [Solved] AOO Date Format?
Replies: 7
Views: 5344

Re: OO Date Format?

The format depends on the Locale setting.
Menu Tools > Options > Language Settings > Languages > Locale setting.
by B Marcelly
Mon Mar 14, 2016 12:33 pm
Forum: Macros and UNO API
Topic: [Solved] Getting the a specific Property Value of a Document
Replies: 6
Views: 4367

Re: Getting the a specific Property Value of a Document

But when I try to print out the Value of the documentId i always get an exception. I used system.out.println(propertySet.getPropertyValue("documentId")) If I understand correctly the Java lingo, you tried to get the value from a propertySet obtained from the document, instead of from user...