|
|
Comments and Discussions
|
|
 |

|
Sorry, I did no investigation how to deal with already opened documents. But if the opporyunity to connect to an open document exists, it should be shomewhere near Application object.
|
|
|
|

|
Hello
How can i set name of the cell? and get cell from the sheet by cell name.
And how i can start calculation of the formula in the cell?
Thank.
|
|
|
|

|
Sorry, no ideas now. I don't even know what a "cell name" is. I couldn't find good documentation on OOo Calc automation. So I can just describe methods of gaining info about OOO Calc automation internals^
1. As in Excel - record a macro taking actions you need to perform programmatically. If you're lucky, the macro code will contain the code you need - just translate it to C#.
2. Use SA.TblProc.OOEP class (in OOEP.cs file) to view the content of XPropertySet in runtime. There's usually a lot of interesting stuff inside. To use the class write something like
OOEP.Obj=(XPropertySet)cell;
in you code, place a breakpoint to the line
val = xps.getPropertyValue(name).Value;//OOEP.cs
and execute your code in DEBUG mode (with debug TblProc.dll version of course).
|
|
|
|

|
Hi Alexandr,
First Thanks for this demanding article.
My Question is- when run this code in debug mode and do export, It exporting file. But when I deployed it and run the application it not exporting OpenOffice file.
I referenced the files in my project given by u.
using ASP.Net 2,0. OO 3.0.
If missing something then please tell the steps of adding files and setting permission.
Thanks & Regds,
Pawan Kumar
|
|
|
|

|
>But when I deployed it and run the application it not exporting OpenOffice file.
1. Any errors, exceptions?
2. You deployed what - I guess you deployed your own project, which uses TblProc.dll. If I'm right, maybe you can show a piece of of code, which exports data? Or you just deploy the sample?
3. You deployed it where? Is it a network share? Default .NET security policy rejects many operations if the binaries reside on a network share - in such a case you need to sign the code and configure .NET permissions.
|
|
|
|

|
(A) When Application run in VS.net (Server) Environment and produce oo report. It producing Open Office Excel file and Charts. Its OK.
(B) In IIS Server it not produce the file and processing goes endless. Not produce any error / exception.
(C) When wait long for localhost it shows
"An un handeled exception(System.CannotUnloadAppDomainException) occured in aspnet_wp.exp"
======================================================================
What I have done. Open Office 3.0.
1. Added the TblProc.dll as reference in my project.
2. five cli_ files are in GAC
Excluding cli_uno.dll file.
give HResult error when add cli_uno.dll as reference so not added in project and it is not
in GAC and in VS Server without it producing file.
----------------------------------------------------------------------
|
|
|
|

|
Sorry, I have no experience in ASP.net
|
|
|
|

|
Thanks dear for reply.
I appritiate u for coordination.
I will do some more search to find out the solution.
Regds
Pawan Kumar
|
|
|
|

|
I plan to publish update when I'll migrate to OO 3.x
The main difference should be the way how app runs OO. + library references should be updated (AFAIK).
|
|
|
|

|
OK, here's an update of the article. Now the code supports OOo 3.0, not 2.x. I made no tests, but doubtfully it is still compatible with 2.x. Anyway, minor changes can bring it back to support OOo 2.x (and discard compatibility with 3.0 for sure): re-reference .DLLs and, optionally, comment out 1 line in OOApp.cs. Anyway, if this version is not compatible with 2.x, I have no ideas how to make it work with both - 2.x and 3.0.
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
OpenOffice Calc and Excel
| Type | Article |
| Licence | CDDL |
| First Posted | 27 Nov 2007 |
| Views | 68,470 |
| Downloads | 2,978 |
| Bookmarked | 51 times |
|
|