pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)
[personal profile] pne

Warning: Geekery ahead.

So I decided to make new home teaching lists. The previous ones were in Excel, so it's probably a nice idea to make the new ones in Excel, too. But I have the data in a database on a Linux machine now.

Not a big problem, thanks to John McNamara and his Spreadsheet::WriteExcel module. I studied the docs for a while and tinkered with the script a bit. I used a script that already makes home teaching lists in HTML format as a base.

It actually worked all right, except for the birthdates: my (German) version of Excel 97 always showed them as numbers. I tried playing around with the num_format option but nothing appeared to happen (though at some settings, I got a warning from Excel when it loaded the file). Grr.

After several tries, I gave up and decided to write the birthdates as strings rather than Excel dates (which are numbers internally: fractional days since 0 January 1900 = 31 December 1899). *sigh*

But the rest works, and the file looks rather similar to the original! Whee.

(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)
Philip Newton

June 2015

S M T W T F S
 12 3456
78910111213
14151617181920
2122232425 2627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Thursday, 1 January 2026 14:14
Powered by Dreamwidth Studios