while converting CSV to XLS in Perl, want to do some formatting
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
while converting CSV to XLS in Perl, want to do some formatting
Been a long time since I did serious Perl programming.
We have successfully converted CSV to xls but have a couple of bugs we want to correct before presenting to the customer.
We want to select column width. As the "dates" in the header column show up as XXXX and the users want to see the date.
Also, we are putting in a variable (date) into a cell. But the value does not look like any date format I know. But when we go into excel and define that cell as a date. The date is correct (looks too few digits to be linux start date).
The documentation I have looked at seems to be very narrow. Is there any documentation on how to do extensive formatting of XLS files from the command line/program which modules or what in the modules can do this formatting from a CSV file to an XLS file.
We would also like to use a broader range of colors and other formatting.
Thanks in advance
Been a long time since I did serious Perl programming. We have successfully converted CSV to xls but have a couple of bugs we want to correct before presenting to the customer.
We want to select column width. As the "dates" in the header column show up as XXXX and the users want to see the date.
Also, we are putting in a variable (date) into a cell. But the value does not look like any date format I know. But when we go into excel and define that cell as a date. The date is correct (looks too few digits to be linux start date).
The documentation I have looked at seems to be very narrow. Is there any documentation on how to do extensive formatting of XLS files from the command line/program which modules or what in the modules can do this formatting from a CSV file to an XLS file. We would also like to use a broader range of colors and other formatting.
Not a lot to go on...you don't provide any samples of the input data, or any samples of your code that tell us what you're currently using or how. The Excel::Writer::XLSX
library, as Guttorm suggested: https://metacpan.org/pod/Excel::Writer::XLSX
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.