Michael Siebert wrote:
Hello there,
I need to convert MS-Office documents to PDF out of Ruby on Rails. I
do this
with a Macro i found in the OOo forums (a very longish thread). It works
well on my development machine (Suse and Windows), but when i want to
deploy
it to a production Server, nothing happens. In fact, i think there is an
error that OOo displays in the Basic Editor. the bad thing is that i
can't
access the window because its a remote virtual server and i dont have any
X11 screen (all of my tries to get the X onto my computer
(ssh-formwarding
etc) have failed).
so i need to find a way to output the errors to the command line. is
there a
way to get this? official? inofficial? patch? hack? anything? :)
hope you can help me...
cheers
First, create a small routine that accepts a single string and logs the
string to a file. Perhaps you coudl even add a time/date to the output.
Next, go to a few of the routines and have them call the log routine at
the start and end of the subroutine.
Now, you can at least try to see where the log messages stopped appearing.
When you think that you know the routine with the problem, you can add
an "On Error" statement and then write the line number and error number
to the file.
--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info: http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]