Abaksoft Posted July 1, 2018 Share Posted July 1, 2018 Hello Friends, Sorry for this recurrent question. After many posts, from 2011 to 2018, i did'nt find THE SOLUTION to Print directly on a selected local printer. Classical Scenario : - Local network - Each PC has it default printer. - when a user click to print button, from his PC, the involve, Ticket, BarCode or simply A4 sheet must be printed on his local default printer directly without our classical UniHtml preview. Nobody has solution ? Thx. Link to comment Share on other sites More sharing options...
shawdown Posted July 1, 2018 Share Posted July 1, 2018 Hello me and herculanojs we are working on a project that runs in systray. https://github.com/fgaldino/uniHardware Where in the "client" station has an executable that runs in the tray and receives command by http. I believe this will wipe out these recurring printing and hardware access issues. 1 Link to comment Share on other sites More sharing options...
herculanojs Posted July 1, 2018 Share Posted July 1, 2018 We have now implemented support for fastreport, reportbuilder, and acbrbalanca My quarrel with the peripherals gave a truce Ideas and implementations are welcome. As suggestions for adapting to meet the mobile platform 1 Link to comment Share on other sites More sharing options...
adragan Posted July 1, 2018 Share Posted July 1, 2018 Solution for Lan Solution 1 Share the local workstation printer. Declare the printer as a "local" printer to the server. Create a table like IP, Server_Printer_Name ( actually the local printer) When you push the "Print" button swich to the local printer based on IP ( IP evidently must be fixed ) Generate and print the report, bar code etc. Solution 2 System service on server polling a table for "to be printed" reports, bar codes etc. In the table you specify which report, parameters, to what printer etc. WebApp inserts the respective information in the table. System service generates and prints it . After print, service deletes or marks as done the respective record from table. I saw this solution work 24/7 for 5 bar code label printing applicators in a factory. Maybe you can replicate it. 1 Link to comment Share on other sites More sharing options...
Abaksoft Posted July 1, 2018 Author Share Posted July 1, 2018 Hey guys, very interesting. Investigation... Link to comment Share on other sites More sharing options...
mierlp Posted July 1, 2018 Share Posted July 1, 2018 Hi, On our the dutch Delphi forum i got this a possible solutions.Didn't had time to look at it. www.neodynamic.com/products/printing/raw-data Link to comment Share on other sites More sharing options...
herculanojs Posted July 1, 2018 Share Posted July 1, 2018 Solution for Lan Solution 1 Share the local workstation printer. Declare the printer as a "local" printer to the server. Create a table like IP, Server_Printer_Name ( actually the local printer) When you push the "Print" button swich to the local printer based on IP ( IP evidently must be fixed ) Generate and print the report, bar code etc. Solution 2 System service on server polling a table for "to be printed" reports, bar codes etc. In the table you specify which report, parameters, to what printer etc. WebApp inserts the respective information in the table. System service generates and prints it . After print, service deletes or marks as done the respective record from table. I saw this solution work 24/7 for 5 bar code label printing applicators in a factory. Maybe you can replicate it. Only work on internal network Link to comment Share on other sites More sharing options...
Bresler Posted July 2, 2018 Share Posted July 2, 2018 Hi guys I had been developing something like this but based on QZ Tray for a private requested job , unfortunately unfinished yet. It allows chained print (impression queue). Regards Link to comment Share on other sites More sharing options...
Ron Posted July 3, 2018 Share Posted July 3, 2018 QZ write about their Client-side Technology WCPP Utility (a native app for Windows, Linux, Raspberry Pi & Mac without any dependencies!) Simple, small and easy one-time install! So there is a native app, and I am thinking that then you can just as well set up your own service app, running an indy http server and trigger it by jquery cross-origin http calls running in the browser. Maybe you need more than just printing? In a local service app you can arrange that and either reply directly to the CORS call or, if delayed, save the state to the db and do a server-side polling. Link to comment Share on other sites More sharing options...
TI.ME Posted October 18, 2018 Share Posted October 18, 2018 On 7/3/2018 at 7:39 AM, Ron said: QZ write about their Client-side Technology WCPP Utility (a native app for Windows, Linux, Raspberry Pi & Mac without any dependencies!) Simple, small and easy one-time install! So there is a native app, and I am thinking that then you can just as well set up your own service app, running an indy http server and trigger it by jquery cross-origin http calls running in the browser. Maybe you need more than just printing? In a local service app you can arrange that and either reply directly to the CORS call or, if delayed, save the state to the db and do a server-side polling. Would you have any examples of how to use QZ ??? Link to comment Share on other sites More sharing options...
Wilton Ergon Posted October 18, 2018 Share Posted October 18, 2018 for some specific reports, the report and generated on the server, I do not create a pdf, and in this case I send the report directly to the printer previously registered in a table, until the client side I can not get this list of printers, configured on the server, this printer will already be configured on the server, mapped to the terminal. This works perfectly in a LAN environment, but in a web environment, there would have to be a vpn, so that the server can see the client's printer. Link to comment Share on other sites More sharing options...
TI.ME Posted October 18, 2018 Share Posted October 18, 2018 16 minutes ago, wilton_rad said: for some specific reports, the report and generated on the server, I do not create a pdf, and in this case I send the report directly to the printer previously registered in a table, until the client side I can not get this list of printers, configured on the server, this printer will already be configured on the server, mapped to the terminal. This works perfectly in a LAN environment, but in a web environment, there would have to be a vpn, so that the server can see the client's printer. Thanks... However I am looking for a solution for Internet users. Link to comment Share on other sites More sharing options...
rencarnacion Posted October 18, 2018 Share Posted October 18, 2018 28 minutes ago, wilton_rad said: for some specific reports, the report and generated on the server, I do not create a pdf, and in this case I send the report directly to the printer previously registered in a table, until the client side I can not get this list of printers, configured on the server, this printer will already be configured on the server, mapped to the terminal. This works perfectly in a LAN environment, but in a web environment, there would have to be a vpn, so that the server can see the client's printer. Try to use QZ tray you can send report direct to the local Printer Link to comment Share on other sites More sharing options...
ajp68 Posted July 8, 2020 Share Posted July 8, 2020 On 10/18/2018 at 7:48 PM, rencarnacion said: Try to use QZ tray you can send report direct to the local Printer QZ looks promising. Can share sample integration code with me. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now