Re: Need to be able to add print option or save as option to the outpout of this script....



First get all the names and shove them in an array. Then sort the names
alphabetically

ASP.NET
Array.Sort(randNumbers)

ASP
Yep, it's a little more complicated so heres a link to a function
that'll do it.

http://www.planet-source-code.com/vb/scripts/ShowZip.asp?lngWId=4&lngCodeId=8064&strZipAccessCode=tp%2FA80645212

I don't paste code I stole :)

I'd get all the variables I could before writing the string variable
building script, then, start building the page, when you get to the section
to list the names and other info accredited to the name use a loop to loop
through the names array one ata atime adding details required and getting
any further info related to them.

Then write the end bit of code into a string.

Angie



"Jasons9745" <jasons9745@xxxxxxxxxxx> wrote in message
news:1158764332.134996.305440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks for the help....Any idea on how to have the names sorted in
alphabetical order?
Sorry, once again, I am new to scripting and trying to get a project
done for my boss in short order!

J
Me here :) wrote:
Hi Jason

If I'm right then this will display the html in a browser. If this is the
case it has both save as and print functions. Is that not good enough?

To save the data you need to create the HTML as a string rather than
write
each line. then once you've got the string you can write it to where ever
you want as a text file as many times as you want.

To print it it needs to be displayed, so back to the write it into the
browser and use a Client side script such as JavaScript to print it
either
automatically or by button press.

If you choose automatically, it will only pop up the client side printer
panel so they can choose which printer (if they've got more than one) and
what preferences (i.e. number of copies, layout, quality).

Angie


"Jasons9745" <jasons9745@xxxxxxxxxxx> wrote in message
news:1158761826.811652.80940@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sorry guys, I am new to scripting and need help. The script below does
generate the info I need into an html file but the only option I can
use is to print and I need to do multiple groups and save the output
somewhere.....Anybody have a good idea I can steal????

Thanks!!!!!!
Jason Shaw


<MEGA SNIP>



.