0

I want to automate OpenOffice in VB.NET. I have installed "Libre Office". How do I add a reference to com object? I can't find it in com objects list.

I can fill cells with values.

... 
firstSheet.getCellRangeByName("B10").value = 12.36    
firstSheet.getCellRangeByName("C10").string = "aaaaaa"

But I can't make some simple formatting with cells.

I want to change appearance of cells. Change 'BackColor' or 'Forecolor' or 'Font size', 'Font Name', round digits, etc.
How do I format cell as date? How do I make my own format style? How do I format cells?

1 Answer 1

1

Check out Bernard Marcelly's VB.NET OOo guide. An excerpt from the document:

COM interfaces are not visible from the VB programmer. In fact interfaces are seen as objects with methods and properties, and you handle Apache OpenOffice objects as Object.

To set cell attributes, see section 6.3 of Andrew Pitonyak's Macro document.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Jim Second link was very usefull

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.