473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help regarding OpenOffice and VB

Hello All,

I am trying to code using Visual Basic to open OpenOffice calc application and manipulate with the cells. I am successful to a certain extent, however I am facing a problem formatting the cell..... for example, I want to draw borders to a cell. How can this be achieved??

Following is the code that I have written :

Expand|Select|Wrap|Line Numbers
  1. Function MakeCellBorderLine(nColor, nInnerLineWidth, nOuterLineWidth, nLineDistance) As Object
  2.     oBorderLine = createUnoStruct("com.sun.star.table.BorderLine")
  3.     With oBorderLine
  4.         .Color = nColor
  5.         .innerlinewidth = nInnerLineWidth
  6.         .outerlinewidth = nOuterLineWidth
  7.         .linedistance = nLineDistance
  8.     End With
  9.  
  10.     MakeCellBorderLine = oBorderLine
  11. End Function
  12.  
Whenever I compile my code it gives me an error that says : "User-defined type not defined". I have absolutely NO CLUE how to proceed. Can someone be of help???

Thanks a ton in advance..

Rgds,
SAM
Nov 28 '07 #1
6 5947
Dököll
2,364 Expert 2GB
I am trying to code using Visual Basic to open OpenOffice calc application and manipulate with the cells ...
Please forgive me, I do not know how this can be handled. Have you searched here previously?

Good luck!

Dököll
Nov 29 '07 #2
Killer42
8,435 Expert 8TB
Which line throws the error?
Nov 29 '07 #3
VbHulk
3
Hi All,

I am experiencing similar issues as faced by samdotnetprogrammer. Please could anyone tell the .dll that we need to use so that we could work on OpenOffice Excel / Word. Few hours back I saw a website that mentions the following dll:

1. OOWRITVB.DLL - For Text Docs. (OpenOffice)
2. OOCALCVB.DLL - For Excel. (OpenOffice)

I presume that once we add these two files in the references, we will be able to work just as we can work on Microsoft Excel after adding Microsoft Excel 11.0 Object Library.

Am I right? Please let me know.



Hello All,

I am trying to code using Visual Basic to open OpenOffice calc application and manipulate with the cells. I am successful to a certain extent, however I am facing a problem formatting the cell..... for example, I want to draw borders to a cell. How can this be achieved??

Following is the code that I have written :

Expand|Select|Wrap|Line Numbers
  1. Function MakeCellBorderLine(nColor, nInnerLineWidth, nOuterLineWidth, nLineDistance) As Object
  2.     oBorderLine = createUnoStruct("com.sun.star.table.BorderLine")
  3.     With oBorderLine
  4.         .Color = nColor
  5.         .innerlinewidth = nInnerLineWidth
  6.         .outerlinewidth = nOuterLineWidth
  7.         .linedistance = nLineDistance
  8.     End With
  9.  
  10.     MakeCellBorderLine = oBorderLine
  11. End Function
  12.  
Whenever I compile my code it gives me an error that says : "User-defined type not defined". I have absolutely NO CLUE how to proceed. Can someone be of help???

Thanks a ton in advance..

Rgds,
SAM
Dec 18 '07 #4
VbHulk
3
Hi All,

I am experiencing similar issues as faced by samdotnetprogrammer. Please could anyone tell the .dll that we need to use so that we could work on OpenOffice Excel / Word. Few hours back I saw a website that mentions the following dll:

1. OOWRITVB.DLL - For Text Docs. (OpenOffice)
2. OOCALCVB.DLL - For Excel. (OpenOffice)

I presume that once we add these two files in the references, we will be able to work just as we can work on Microsoft Excel after adding Microsoft Excel 11.0 Object Library.

Am I right? Please let me know.

Regards,
VBHulk

Hello All,

I am trying to code using Visual Basic to open OpenOffice calc application and manipulate with the cells. I am successful to a certain extent, however I am facing a problem formatting the cell..... for example, I want to draw borders to a cell. How can this be achieved??

Following is the code that I have written :

Expand|Select|Wrap|Line Numbers
  1. Function MakeCellBorderLine(nColor, nInnerLineWidth, nOuterLineWidth, nLineDistance) As Object
  2.     oBorderLine = createUnoStruct("com.sun.star.table.BorderLine")
  3.     With oBorderLine
  4.         .Color = nColor
  5.         .innerlinewidth = nInnerLineWidth
  6.         .outerlinewidth = nOuterLineWidth
  7.         .linedistance = nLineDistance
  8.     End With
  9.  
  10.     MakeCellBorderLine = oBorderLine
  11. End Function
  12.  
Whenever I compile my code it gives me an error that says : "User-defined type not defined". I have absolutely NO CLUE how to proceed. Can someone be of help???

Thanks a ton in advance..

Rgds,
SAM
Dec 18 '07 #5
VbHulk
3
Hi ALL,

I finally got what I needed. The following DLLs can be downloaded from the URL given below:

a. OOWRITVB.DLL
b. OOCALCVB.DLL

URL: http://pagesperso-orange.fr/hffm/m3.html

You can see version 1.00 written against the DLL names on the website:- OOWRITVB AND OOCALCVB. Download the zips. After extracting the zips, a folder named TEST would also be copied. Open this folder and you can see these DLLs. I would like to thank Amrut Koli, a senior engineer who assisted me in finding the DLLs.

Regards,
Thomas
Dec 18 '07 #6
lotus18
866 512MB
Good job vbhulk

This is gonna be helpful to anyone with same problem like this.
Dec 18 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Allenabethea | last post by:
Is there any advantage to upgrading the python distribution which is part of OpenOffice to 2.3.3? I notice it is version 2.2.2 Are the bug fixes crucial? allen
0
by: Jean-Marie Gouarné | last post by:
The new OpenOffice::OODoc distribution, V 1.203, is available from CPAN today. It's an Expat-based Perl extension allowing direct read/write access to OpenOffice.org (XML) documents. It provides...
5
by: Bob Powell | last post by:
Hello everyone: Can anyone tell me if it is possible to connect excel or openoffice via odbc directly to a postgres backend database. Also, if that is possible does either OpenOffice or Excel...
0
by: dtsearch | last post by:
New release expands-through a .NET Spider API, to Linux, and to OpenOffice-dtSearch's ability to index over a terabyte of text in a single index, with indexed search time typically less than a...
1
by: Sells, Fred | last post by:
I've geen googling for 3 days now, and cannot find out how to do this. I'm trying to use OpenOffice 2.0 and UNO to generate PDF documents. I'm using windows, but will have to make it work under...
7
by: kenneth.m.mcdonald | last post by:
Are then any currently active and reasonably mature Python plugins/ apis/whatever for programming/scripting OpenOffice? The page I've found is http://udk.openoffice.org/python/python-bridge.html,...
4
by: krishnakant Mane | last post by:
hello, right now I am involved on doing a very important accessibility work. as many people may or may not know that I am a visually handicap person and work a lot on accessibility. the main...
7
by: PaoloB | last post by:
Hi everyone, during our development, we need to write some unit tests that interact with OpenOffice through pyUno. Is there anyone who has got any experience on it? As OpenOffice is quite a...
0
by: progvar | last post by:
hi i am getting probleum in converting a spell check progrma made in vb 6.0 and Ms-office Word into OpenOffice Word when i made spell check program in Ms-Word and vb 6.0 it works fine but i use...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.