R
Rob
Hi,
My final objective is to create a Word doc (formatted the way I want
it) that is a collection of names contained in a MySQL database. My
approach has been to output the information to a web page, then copy &
paste it into my Word doc (basically because all the info is getting
inputted by a web page and web pages are easy to deal with...I'm not
married to this approach).
I have a situation where I want to print:
Lastname Firstname
Firstname2
Where the names are names of people in a family. These names reside in
my database. I want them aligned nicely, as I've shown. I repeat this
process for many families. I'm using a Perl script to go get the info
from the database and send it to a web page. The problem I'm having is
the two firstnames don't align nicely. I can't simply place Firstname2
over a certain number of spaces since Lastname varies in length,
especially since it is in bold (and firstnames are not).
I don't want to use a table since if I paste that into a Word doc the
table shows up in Word, which I don't want.
I tried using:
<SCRIPT LANGUAGE='Javascript'>
document.write("<XMP>")
document.write("100 Meter\t400 Meter\t1500 Meter\r")
document.write("110 Hurdles\tHigh Jump\tlong Jump\r")
document.write("Javelin\t\tPole Vault\tShot Put\r")
document.write("Discus")
document.write("</XMP>")
</SCRIPT>
Which I found on the web. In a "normal" web page it works great. I
added it to my Perl script:
#!C:/Perl/bin/Perl.exe
print qq(
<html>
<SCRIPT LANGUAGE='Javascript'>
document.write("<PRE>")
document.write("100 Meter\t400 Meter\t1500 Meter\r")
document.write("110 Hurdles\tHigh Jump\tlong Jump\r")
document.write("Javelin\t\tPole Vault\tShot Put\r")
document.write("Discus")
document.write("</PRE>")
</SCRIPT>
</html>);
exit;
and it seems like the web page simply ignores it - it doesn't print
*anything*, let alone the tabs.
Any thoughts?
Thanks! Rob.
My final objective is to create a Word doc (formatted the way I want
it) that is a collection of names contained in a MySQL database. My
approach has been to output the information to a web page, then copy &
paste it into my Word doc (basically because all the info is getting
inputted by a web page and web pages are easy to deal with...I'm not
married to this approach).
I have a situation where I want to print:
Lastname Firstname
Firstname2
Where the names are names of people in a family. These names reside in
my database. I want them aligned nicely, as I've shown. I repeat this
process for many families. I'm using a Perl script to go get the info
from the database and send it to a web page. The problem I'm having is
the two firstnames don't align nicely. I can't simply place Firstname2
over a certain number of spaces since Lastname varies in length,
especially since it is in bold (and firstnames are not).
I don't want to use a table since if I paste that into a Word doc the
table shows up in Word, which I don't want.
I tried using:
<SCRIPT LANGUAGE='Javascript'>
document.write("<XMP>")
document.write("100 Meter\t400 Meter\t1500 Meter\r")
document.write("110 Hurdles\tHigh Jump\tlong Jump\r")
document.write("Javelin\t\tPole Vault\tShot Put\r")
document.write("Discus")
document.write("</XMP>")
</SCRIPT>
Which I found on the web. In a "normal" web page it works great. I
added it to my Perl script:
#!C:/Perl/bin/Perl.exe
print qq(
<html>
<SCRIPT LANGUAGE='Javascript'>
document.write("<PRE>")
document.write("100 Meter\t400 Meter\t1500 Meter\r")
document.write("110 Hurdles\tHigh Jump\tlong Jump\r")
document.write("Javelin\t\tPole Vault\tShot Put\r")
document.write("Discus")
document.write("</PRE>")
</SCRIPT>
</html>);
exit;
and it seems like the web page simply ignores it - it doesn't print
*anything*, let alone the tabs.
Any thoughts?
Thanks! Rob.