Hi Harold

You can't just change the suffix of a file to make it readable by an 
application as open office. OO is not a text editor dealing with human 
readable text; OO stores it's .swx files in a binary format (eventually as 
compressed XML, I'm not sure at the moment).

Use a real text editor (e.g. notepad or something similar on Windows, kwrite 
or something similar on Linux) to view your created file.

A text editor shows simple text lines of arbitrary length; 
a word processing software tries to fill the lines within some "paper size", 
and if you want to see long lines with it without line breaks, you have to 
adjust the paper size accordingly... or reduce the font size... or whatever...

As I remember, you can tell windows to open files with .txt suffix with some 
real text editor.

Anyway, the problem is not perl related :-)

hope this helps a bit

greetings joe

Am Mittwoch, 2. M�rz 2005 02.33 schrieb Harold Castro:
> Hi,
>   I wrote a perl script that will parse a log file and
> output it into a text file. I made its filename to end
> in .swx so that it will by default open in
> openoffice.org. My problem is that, when you open the
> file, each line cannot accomodate the default margin
> settings of openoffice.org such that each line always
> wraps below its current line. The solution is to
> change the format of the document such that it's
> layout would be "landscape" or I just have to manually
> adjust the left and right margins so that lines would
> not wrap. But that's fine if I'm the only one reading
> the log file reports, my problem is that those reports
> are really meant for others to read and it's quite
> tedious to tell them that after opening the document,
> they must change its layout to landscape view to be
> able to read the reports clearly.
>
> Is there any way you can suggest to get around this
> scenario, such that those people can read those
> reports without having to tweak the settings of their
> editor?
>
>
> Thank you very much.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to