Hi everyone,
I'm a seasoned programmer, but I've yet to touch VBScript. I want to
write a script that will query a database and print contents to a
printer based on entries within the database. So for example I'd have
the following printers setup on the workstation:
\\printsvr\marketingptr
\\printsvr\hrptr
\\printsvr\itptr
And the database might have a table similar to this:
PrinterName ContentBody
marketing THis is a test message for Marketing
hr THis is a test message for Human Resources
it This is a test message for Information
Technology
When the script runs it will parse the database table and print the
content to the specific printer. This is of course a simple example,
I'll probably have a table linking the PrinterName to the Printer UNC,
but you get the idea of what I'm trying to do.
I have no working knowledge of VBScript, so I'm not even sure if this
is possible, or if so what commands I'll need to use. If someone has a
script that does this, I'd love to take a gander, but if someone can
point me in the right direction with commands to research, that'd be
wonderful. The two components I know I need are a component to hit the
database (which is Microsoft SQL 2000) and a component to print to the
specified printer (which will all be setup on the local workstation).
Thanks again for any assistance...
Alex