Search found 13 matches
- Tue Apr 26, 2022 1:55 pm
- Forum: External Programs
- Topic: [Solved] Use CreateUnoService in C#
- Replies: 2
- Views: 3682
[Solved] Use CreateUnoService in C#
Split from topic 107589 because you have introduced a new subject. Please review our forum policy: One issue, one thread . I have split your posts for you. But you should not put unrelated questions in one topic. Questions are not related simply because they come from you.. Thanks for response. I t...
- Fri Apr 22, 2022 10:59 am
- Forum: External Programs
- Topic: Picture disappears in OpenOffice after deleting linked file
- Replies: 2
- Views: 3975
Picture disappears in OpenOffice after deleting linked file
Hi I using Apache OpenOffice. I have problem with picture inserted programmatically. All is work fine. Picture is pasted into document . But If delete picture file from a disc , picture disappeard from document (it's remain only path to the picture). If using LibreOffice its work fine. What should i...
- Fri Mar 18, 2022 1:25 pm
- Forum: Macros and UNO API
- Topic: Hide XTextRange using setPropertyValue
- Replies: 5
- Views: 1551
- Fri Mar 18, 2022 9:45 am
- Forum: Macros and UNO API
- Topic: Hide XTextRange using setPropertyValue
- Replies: 5
- Views: 1551
Hide XTextRange using setPropertyValue
Hi I want hide XTextRange using setPropertyValue. What propertyName should i use to do it. Above is example. SetPropertyValue set text color to Red xprops.setPropertyValue("CharColor", new uno.Any(0xFF0000)); but i want hide text (no change color to white) XSearchDescriptor xSearchDecripto...
- Fri Mar 05, 2021 2:22 pm
- Forum: Macros and UNO API
- Topic: [Solved] Replace Text in selection
- Replies: 6
- Views: 12525
[Solved] Replace Text in selection
Hi I have found the solution. 1. First I copy selection to another new document using getTransferable() and insertTransferable(...). 2. In this new document replace text to another for all document 3. Next step select and transfer all content from new document to oryginal document. Below is my code....
- Wed Mar 03, 2021 3:14 pm
- Forum: Macros and UNO API
- Topic: [Solved] Replace Text in selection
- Replies: 6
- Views: 12525
Re: Replace Text in selection
It isn't the same.
- Wed Mar 03, 2021 11:45 am
- Forum: Macros and UNO API
- Topic: [Solved] Replace Text in selection
- Replies: 6
- Views: 12525
[Solved] Replace Text in selection
Hi I have small problem. I would like to replace some text to another , but not i whole document , in selected range only . Below is my code: XSearchDescriptor xSearchDecriptor1 = ((unoidl.com.sun.star.util.XSearchable)oDoc).createSearchDescriptor(); xSearchDecriptor1.setSearchString("<el:stron...
- Tue Mar 02, 2021 7:35 am
- Forum: Macros and UNO API
- Topic: [Solved] [C#] Get text between two ranges
- Replies: 12
- Views: 5402
Re: Get text between two ranges
It is possible i want to search and replace text in selected range. Now i use code to replace text in all document in success. This code replace 'text1' to 'text2' but in whole document (oDoc is all document). I want use similar code to replace but in selection. XComponent oDoc = null; oDoc = oDesk....
- Mon Mar 01, 2021 4:09 pm
- Forum: Macros and UNO API
- Topic: [Solved] [C#] Get text between two ranges
- Replies: 12
- Views: 5402
Re: Get text between two ranges
Thanks. Its work. Below is my code : XSearchDescriptor xSearchDecriptor1 = ((unoidl.com.sun.star.util.XSearchable)oDoc).createSearchDescriptor(); xSearchDecriptor1.setSearchString("<el:strony>"); XTextRange objAdresatStr = ((XTextRange)((unoidl.com.sun.star.util.XSearchable)oDoc).findFirst...
- Fri Feb 26, 2021 10:52 am
- Forum: Macros and UNO API
- Topic: [Solved] [C#] Get text between two ranges
- Replies: 12
- Views: 5402
Re: Get text between two ranges
Hi Now i try to use getTransfarable() ( c# ) , no success. I Where is the problem? Cursor is set correct. Value of 'CurString' object is ok. But value is not copy below CurString position. Mayby selection ((unoidl.com.sun.star.view.XSelectionSupplier)xControler).select(anySel); works wrong. I try to...
- Fri Jan 29, 2021 11:54 am
- Forum: Macros and UNO API
- Topic: [Solved] [C#] Get text between two ranges
- Replies: 12
- Views: 5402
Re: Get text between two ranges
Now i try to use get getTransferable(). How can i get CurrentController for XComponent?
- Fri Jan 29, 2021 9:46 am
- Forum: Macros and UNO API
- Topic: [Solved] [C#] Get text between two ranges
- Replies: 12
- Views: 5402
Re: Get text between two ranges
Thanks for replied. Text is copied. Is this any way to copy formated text , for example with bold font.
Now i use insertString , mayby i should use insertTextContent.
Now i use insertString , mayby i should use insertTextContent.
- Thu Jan 28, 2021 4:11 pm
- Forum: Macros and UNO API
- Topic: [Solved] [C#] Get text between two ranges
- Replies: 12
- Views: 5402
[Solved] [C#] Get text between two ranges
Hi I have small problem . I'd like copy (get) text between two strings in document. This text should by insert at the end of second string. This is my code. XSearchDescriptor xSearchDecriptor0 = ((unoidl.com.sun.star.util.XSearchable)oDoc).createSearchDescriptor(); xSearchDecriptor0.setSearchString(...