Hi all,

All I want is just this. The user on the client PC will click on a print button and the content of the mysql query will be sent back to his printer.

I know we can't do this with Javascript, or can we?

Really appreciate all the info i can get.
Thanks, Marius

I did a little digging and I haven't tested it so don't blame me if it doesn't work... I'm not an expert on Javascript...

make a function that sets a variable equal to document
document being the full thing page that is shown.
then apparently there is a print() function that takes a variable to send to the printer

so just put that variable in as a passed variable into the print() function.

As I said I haven't tested it so... yeah... just search for To printer with Javascript.

You'll find a few that will show you there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.