TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:
I'm writting a web based application which lets the user query various parts of out database and output the data to your browser. Such data is outputted in a table format to make for easy readability. Some of the attributes that you may see are: UserID, TestResult, Create_Date, Create_Time, Release, UserComments, etc (there are many, many others).
Anyway, I also output this data to a XLS file so the user can save and manipulate this data outside of the application. Currently, I just open a file handle (call it XLS) and so something like print XLS "$UserID\t$TestResult\t$Create_Date\t$Create_Time\t$Release\t$UserComment\n" Which is most cases works fine, but sometimes, some of the data is a list of multiple thing but in the xls cell, it comes out as one long string.
Question 1: Is there a way to add in a "newline" in a XLS cell via using print statement above? I'm obviously not using any Excel modules, so I'm guessing I'll have to do that or are they any quick workarounds ?
Question 2: Are there any recommended modules that I can output this some data to either a .txt format or .doc format ?
Thank in advance all !!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Formatting text when outputting to a XLS file
by dragonchild (Archbishop) on Feb 14, 2005 at 15:21 UTC | |
|
Re: Formatting text when outputting to a XLS file
by RazorbladeBidet (Friar) on Feb 14, 2005 at 15:23 UTC | |
|
Re: Formatting text when outputting to a XLS file
by jmcnamara (Monsignor) on Feb 15, 2005 at 00:08 UTC |