Search found 32 matches
- Thu May 14, 2020 10:10 pm
- Forum: Macros and UNO API
- Topic: Exporting to PDF failing in Windows 2019 Datacenter
- Replies: 0
- Views: 3927
Exporting to PDF failing in Windows 2019 Datacenter
There is an off-topic question for Tim in Options for "FilterName" and properties for saving PDF My Java app finishes by exporting a Writer document to PDF. This works perfectly when running in Windows 7 or Windows 10, but fails spectacularly when running in Windows 2019 Datacenter if the...
- Mon Jul 29, 2019 7:46 pm
- Forum: Macros and UNO API
- Topic: Pages missing from Developer Guide
- Replies: 4
- Views: 1654
SOLVED: Pages missing from Developer Guide
The pages are still missing, but a search for the page on the WayBackMachine showed it had been captured there in 2017: https://web.archive.org/web/20170319141257/https://wiki.openoffice.org/wiki/API/Tutorials/PDF_export This is essential information, not documented anywhere else, as far as I can de...
- Tue May 07, 2019 7:30 pm
- Forum: Macros and UNO API
- Topic: Pages missing from Developer Guide
- Replies: 4
- Views: 1654
Re: Pages missing from Developer Guide
Thank you!
- Tue May 07, 2019 5:59 pm
- Forum: Macros and UNO API
- Topic: Pages missing from Developer Guide
- Replies: 4
- Views: 1654
Pages missing from Developer Guide
Does anyone know what the heck is going on at the Developer Guide? :shock: Important pages have apparently been deleted, such as https://wiki.openoffice.org/wiki/Documentation/DevGuide/Text/Overall_Document_Features The API/Tutorial on exporting to PDF has been deleted. This was very useful informat...
- Tue Feb 12, 2019 6:34 pm
- Forum: Macros and UNO API
- Topic: Using OpenOffice UNO API on Linux server
- Replies: 2
- Views: 1654
Re: Using OpenOffice UNO API on Linux server
No, unfortunately.
- Tue Nov 27, 2018 6:08 pm
- Forum: Macros and UNO API
- Topic: Using OpenOffice UNO API on Linux server
- Replies: 2
- Views: 1654
Using OpenOffice UNO API on Linux server
I have a UNO API Java application I created that runs great with OpenOffice on every OS except a Linux server. Linux desktop, yes; Linux server, no. The obvious difference between the Linux desktop and the Linux server is the latter has no X windows. But I was able to get my UNO API application to w...
- Wed Nov 09, 2016 7:50 pm
- Forum: Macros and UNO API
- Topic: Digital Signatures API
- Replies: 0
- Views: 2985
Digital Signatures API
Has anyone used the interface XDocumentDigitalSignatures (http://www.openoffice.org/api/docs/comm ... entContent)? Does it work as described ?
Thanks,
Tim.
Thanks,
Tim.
- Wed Mar 23, 2016 6:49 pm
- Forum: Macros and UNO API
- Topic: How do I get OpenOffice to exit?
- Replies: 3
- Views: 4381
Re: How do I get OpenOffice to exit?
Thanks, I'll try it.
- Wed Mar 23, 2016 4:32 pm
- Forum: Macros and UNO API
- Topic: How do I get OpenOffice to exit?
- Replies: 3
- Views: 4381
How do I get OpenOffice to exit?
I'm running a Java UNO API app that launches OpenOffice Writer in headless mode, opens a couple of Writer docs, does some stuff to them, and then closes both docs. Once OO has done what I want, it sometimes exits and sometimes it doesn't. I don't know why, but I want it to exit every time. How do I ...
- Mon Nov 24, 2014 12:00 am
- Forum: Macros and UNO API
- Topic: [Solved] Opening OpenOffice dialogs from Basic
- Replies: 2
- Views: 1630
- Thu Aug 28, 2014 5:22 pm
- Forum: Macros and UNO API
- Topic: [Solved] Opening OpenOffice dialogs from Basic
- Replies: 2
- Views: 1630
[Solved] Opening OpenOffice dialogs from Basic
Is there a way for me to use the OpenOffice Writer dialogs in my Basic macros?
For example, I would like to add a button to one of my Basic dialogs that opens the Page Style dialog for the selected page style.
Thanks for your help,
Tim.
For example, I would like to add a button to one of my Basic dialogs that opens the Page Style dialog for the selected page style.
Thanks for your help,
Tim.
- Thu Aug 21, 2014 6:28 pm
- Forum: Macros and UNO API
- Topic: [Solved] Font selection control?
- Replies: 2
- Views: 1248
Re: Font selection control?
Thanks!
I share your frustration with Basic.
I share your frustration with Basic.
- Wed Aug 20, 2014 4:03 pm
- Forum: Macros and UNO API
- Topic: [Solved] Font selection control?
- Replies: 2
- Views: 1248
[Solved] Font selection control?
Is there a way to get access to the fonts installed on the system? I'm creating a styling wizard and I'd like to provide my users with a way to select a font from the ones available on the system.
Thanks,
Tim.
Thanks,
Tim.
- Tue Jul 23, 2013 11:03 pm
- Forum: Macros and UNO API
- Topic: Getting PropertyValue values from an object
- Replies: 2
- Views: 2759
Getting PropertyValue values from an object
I'm trying to get the LevelFormat properties from an existing DocumentIndex in a Writer document. The Developer Guide says: LevelFormat contains the various levels as a com.sun.star.container.XIndexReplace object. Each level is a sequence of com.sun.star.beans.PropertyValues which are defined in the...
- Mon Jul 09, 2012 2:17 am
- Forum: Macros and UNO API
- Topic: Updating contents index doesn't update page numbers
- Replies: 2
- Views: 6156
Updating contents index doesn't update page numbers
The Developer's Guide says to use the com.sun.star.text.XDocumentIndex update() method to update a contents index. This method will certainly update the contents index for such things as a change in the number of levels that appear in the content index. But it doesn't update the page numbers, even t...
- Thu Nov 24, 2011 5:49 pm
- Forum: Macros and UNO API
- Topic: UNO API client not exiting problem
- Replies: 3
- Views: 5268
Re: UNO API client not exiting problem
Ok, I've narrowed down the problem, and it appears to be nothing to do with closing things. The following code will compile and build no problem. But when I run it, it's behaviour changes depending on whether or not an instance of OpenOffice is already running. If no instance of OpenOffice is runnin...
- Tue Nov 22, 2011 1:55 am
- Forum: Macros and UNO API
- Topic: UNO API client not exiting problem
- Replies: 3
- Views: 5268
UNO API client not exiting problem
I'm developing a UNO API client. The first version loaded a source text document, exported it to PDF, and then closed the document using the dispose() method. It then invoked System.Exit() to exit. Worked fine. The second version opens a source text document, makes some changes to it, stores it back...
- Mon Sep 05, 2011 7:18 pm
- Forum: Macros and UNO API
- Topic: [Solved] Porting to Macintosh
- Replies: 1
- Views: 2334
Re: Solved: Porting to Macintosh
OK, the answer to this one does kind of fall into the :knock: category. As the release notes for the OO SDK 3.3 point out, you have to "use the -d32 switch to ensure that your program using the simple bootstrap mechasnism [sic] use a 32-bit data model", which is their rather ambiguous way ...
- Mon Aug 22, 2011 1:06 am
- Forum: Macros and UNO API
- Topic: [Solved] Porting to Macintosh
- Replies: 1
- Views: 2334
[Solved] Porting to Macintosh
My UNO client app runs fine on Windows. On a Macintosh, however, it starts up OpenOffice and then exits, with no message of any kind. I've tried compiling it in NetBeans on a Macintosh, but there's no improvement. It runs the bootstrap code, starts up OpenOffice, and then immediately jumps to System...
- Tue Jul 26, 2011 7:41 pm
- Forum: Macros and UNO API
- Topic: [Solved] PDFs missing graphics
- Replies: 4
- Views: 3379
Re: PDFs missing graphics
I got the PDF export to work with linked graphics. Instead of exporting the PDF immediately after processing my source file, I changed my app to first save the processed source file, then re-load it, and only then perform the PDF export. It appears OO Writer changed the way I was organizing the refe...
- Tue Jul 26, 2011 5:14 pm
- Forum: Macros and UNO API
- Topic: [Solved] PDFs missing graphics
- Replies: 4
- Views: 3379
Re: PDFs missing graphics
Ok, I have more information. My code hasn't changed, but the way graphics are included in the documents has: they are now linked, rather than embedded. When the graphics are embedded, they appear in the exported PDF; when they are linked, they don't appear. I've tried using the XLinkUpdate interface...
- Mon Jul 25, 2011 8:57 pm
- Forum: Macros and UNO API
- Topic: [Solved] PDFs missing graphics
- Replies: 4
- Views: 3379
[Solved] PDFs missing graphics
All of a sudden, the PDFs that my Java UNO API app exports from OO Writer documents no longer contain graphics -- just empty boxes. In some of them, links no longer work, either. If I manually export to PDF from these documents, the PDFs contain the graphics, exactly as they did before, and all the ...
- Wed Jun 08, 2011 12:09 am
- Forum: Macros and UNO API
- Topic: [Solved] How do I apply autoformats to text tables?
- Replies: 8
- Views: 4759
Re: How do I apply autoformats to text tables?
Thanks to help from Charlie and from my ace brother Simon, I got this working. Here is the Java code I use: // Get the TextTablesSupplier interface of the document XTextTablesSupplier xTableSupplier = (XTextTablesSupplier) UnoRuntime.queryInterface(XTextTablesSupplier.class, xDoc); // Get an XIndexA...
- Tue Jun 07, 2011 7:51 pm
- Forum: Macros and UNO API
- Topic: [Solved] How do I apply autoformats to text tables?
- Replies: 8
- Views: 4759
Re: How do I apply autoformats to text tables?
I assumed that what was available in Basic was also available in Java. Apparently not. Here is my Java code: // Get the TextTablesSupplier interface of the document XTextTablesSupplier xTableSupplier = (XTextTablesSupplier) UnoRuntime.queryInterface(XTextTablesSupplier.class, xDoc); // Get an XIndex...
- Tue Jun 07, 2011 4:04 pm
- Forum: Macros and UNO API
- Topic: [Solved] How do I apply autoformats to text tables?
- Replies: 8
- Views: 4759
Re: How do I apply autoformats to text tables?
Thanks again for your help Charlie.
I don't understand how the second part would work, since autoformat() is not a method that's available on TextTable objects.
Tim.
I don't understand how the second part would work, since autoformat() is not a method that's available on TextTable objects.
Tim.
- Tue Jun 07, 2011 3:59 am
- Forum: Macros and UNO API
- Topic: [Solved] How do I apply autoformats to text tables?
- Replies: 8
- Views: 4759
Re: How do I apply autoformats to text tables?
... the autoformat() method requires a cell range as input... I meant to say that creating an instance of the XAutoformattable interface requires a cell range as a context, not autoformat(). But this doesn't change the problem that there is apparently no method on the XTextTable interface to get a ...
- Tue Jun 07, 2011 3:52 am
- Forum: Macros and UNO API
- Topic: What happend to com.sun.star.sheet.TableAutoFormats
- Replies: 2
- Views: 1059
Re: What happend to com.sun.star.sheet.TableAutoFormats
Thanks, Charlie, I'll check it out.
- Tue Jun 07, 2011 1:15 am
- Forum: Macros and UNO API
- Topic: What happend to com.sun.star.sheet.TableAutoFormats
- Replies: 2
- Views: 1059
What happend to com.sun.star.sheet.TableAutoFormats
This page talks about it: http://wiki.services.openoffice.org/wik ... formatting
But it doesn't exist in com.sun.star.sheet.
Any one know where or whether it exists?
Thanks,
Tim.
But it doesn't exist in com.sun.star.sheet.
Any one know where or whether it exists?
Thanks,
Tim.
- Tue Jun 07, 2011 1:11 am
- Forum: Macros and UNO API
- Topic: [Solved] How do I apply autoformats to text tables?
- Replies: 8
- Views: 4759
[Solved] How do I apply autoformats to text tables?
The developer guide says in two places that you can apply autoformats to text tables. But there is no description how to do this. There is a code sample that shows how to apply autoformats to cells in spreadsheet tables, but this doesn't appear to work for text tables, because the autoformat() metho...
- Fri Jan 07, 2011 2:17 am
- Forum: Macros and UNO API
- Topic: [Solved] Getting started with NetBeans and the OOo SDK
- Replies: 2
- Views: 3779
Re: Getting started with NetBeans and the OOo SDK
Solved ... no thanks to Sun/Oracle, which, due to its lack of specific information, caused me to waste most of two days trying to get it to work. What Sun/Oracle doesn't tell anyone is that even though OpenOffice and the OpenOffice SDK are both available for 64-bit Linux, the Windows versions are 32...