NetTalk Central

Author Topic: Nettalk Report defaulting to Server PC's Default Printer  (Read 4143 times)

Richard I

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
    • Email
Nettalk Report defaulting to Server PC's Default Printer
« on: January 08, 2018, 06:42:48 PM »
Hi there
I have a report which prints without preview.
My problem is that the report prints on the SERVER'S default printer automatically
I do not want this....
I want the report to print without preview automatically on the client ? PC's default printer that is running the app.
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 
Im attempting to run from the form and not from a blank page, although Im 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?
or how to do please?

Thanks.

Richard
NT 8.71
SV pdf template
« Last Edit: January 08, 2018, 07:27:17 PM by Richard I »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Nettalk Report defaulting to Server PC's Default Printer
« Reply #1 on: January 08, 2018, 10:41:19 PM »
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-box
for 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

Richard I

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
    • Email
Re: Nettalk Report defaulting to Server PC's Default Printer
« Reply #2 on: January 09, 2018, 01:36:21 AM »
thanks for replying, Bruce
regards
Richard