Hi Richard,
>> I have a report which prints without preview.
>> My problem is that the report prints on the SERVER'S default printer
>> automatically
sure, makes sense - if the report is being generated on the server, and then
printed via the Clarion printing engine, then of course it comes out at the
server.
(the clarion printing engine doesn't know that the program is using an HTML
interface).
Which is why, when making a report in NetTalk, you add the NetTalk extension
to the report, and that then sends the report back to the user as a PDF
file.
Of course if the printer is anywhere on the same LAN as the server then it
could print "from the server" to that printer with no dialogs. But that's a
specific setup.
>> I want the report to print without preview automatically on the client ?
>> PC's default printer that is running the app.
By "app" you mean "browser"?
Browsers do not (typically) allow sites to "auto print" things without any
dialogs, although there are settings on the browser which may help. see
here;
https://stackoverflow.com/questions/4292373/javascript-print-without-print-dialog-boxfor some ideas.
>> I do not want to have to select the printer This report prints a docket
>> each time a barcode is scanned. much like a credit card payment slip
I'm attempting to run from the form and not from a blank page, although I'm
not calling the report from the template but from the code.
>> Is there a p_web that sets the local PC default printer to print to?
nope.
Cheers
Bruce