I am dying trying to figure this out. Googled my heart off with no luck.
I am making a web application to print labels and it should be done through the browser. My webserver is LAMP so I cannot use the PHP_Printer because that is windows based.
Is there an alternative PHP solution for printing from a LAMP server to the client. (ie: Online server is LAMP and they will run the web app through their browser and will be printed to the clients printer).
Thanks for any help!
EDIT
So this turned out to be harder than expected. My solution is going to be to use http://www.fpdf.org/ to create a PDF using the user submitted variables. And I will add custom js to the pdf to print without dialogue box as soon as it is opened.
Workflow: User submits stock variables (Qty, Product Number) [Submit] -> Stock added to DB and PDF gets generated and auto printed for the label.
So here is my solution to the problem. I found it in another post here Can a PDF file's print dialog be opened with Javascript?
I will generate a PDF for the labels using FPDF and then add a script to auto print the pdf when its opened.
Script: http://www.fpdf.org/en/script/script36.php
Thanks for helping me think this through guys
Related
I'm trying to use a HTML/PHP form on my website. The problem is submit just opens a new page displaying my php as text, this is when I open the html file on my computer using Google Chrome. When I uploaded to my hosting service, TK dot com, I get a 405 error when using the form. I've tested on working/downloadable php forms and the same thing happens.
From my understanding, I can't just use php on my site without setting up an environment. I've read I need to use some sort of program to do this (apache). Which kind of confuses me further, how would I enable this type of service, which installs to my computer, to run on my website when my computer is off?
Any tips or guides on how to do use apache for PHP forms on my website or similar that I can be redirected to would be really helpful. Please let me know if any extra information is needed.
I am currently creating a site where the user would fill out a form and upon clicking submit button.
The data entered by the user will both be sent to a database and used to fill-out the pdf version of the form.
This pdf version of the form will then be downloaded to the user's browser.
I've been searching for 2 days on how to do this, and I've come across PDFTK but the problem is I'll be hosting this site on a webhost and as far as I understand, you cannot install PDFTK on a shared server.
I'm only looking at free webhosts here. I've already written the php for saving to the database, I just can't figure out the pdf part.
Any suggestions on how I can accomplish this? Thanks in advance
Ok, so I'm having this problem with an application I wrote in AS3 and PHP (Linked together using AMFPHP) and What happens is (Using a basic way of saying it) I retrieve data from a database and display it on the screen. I've done this many times before and it works on both the web and in Flash Pro. itself. The problem I'm having this time is that it works perfectly in Flash Pro. but when I upload it to my web host, it doesn't work and it shows a blank screen. Any suggestions? If you require any additional information please ask :)
I am developing an application for internal use in our company. The purpose of this application is for document imaging. What we are wanting to do is print a barcode label to attach to documents so that when they are scanned in a piece of software such as vfiler will be able to read the barcodes and know how to file them.
The main focus is our ERP system which is web based (PHP). We are wanting to modify the code to allow the user to print the barcode label immediately once they enter an order or PO. I have access to the source code for the ERP web pages. I don't know of any way to make a web page print to a printer without displaying the printer select dialog. So, I decided that I wanted to try and create a VB application that would do the printing of the barcodes. This would allow me to bypass the the printer select dialog.
Now for the question. Is there any way to have a web page (PHP) running on the server call a VB app to perform a task? So, if I had a button on the webpage and the user clicked it, that button would somehow send the pertinent information (Order number) to the VB app and the VB app would print the barcode. The VB app will always be running on the machine. The label printers will be Zebra USB label printers on each person's machine.
Any thoughts appreciated.
Thanks,
Keith
The way I implemented something like this was to have an Windows service, running on a different system from the webserver, watching the upload folders on the web server, then moving the files to the appropriate location for further processing. I tracked the movement of files through the system by creating an initial record upon a success upload, then creating a transaction record for each activity afterward (printed, faxed, emailed, sent for manual review, etc). This insured a reportaable audit trail for each document and helped identify 'orphan' files that would happen sometimes.
The important thing with a service like this is making sure that you've configured security properly so that the service has access to resources like printers and network drives.
You could make the VB app a service, then implement a FileSystemWatcher on a specific folder. When the user clicks the Print button, all the webpage does is save a file with the necessary info to the folder that is being watched.
It seems an old question but maybe this answer would help someone else. It would be much easier to implement this with a command line app. Just pass the necessary parameters into the exe file with PHP exec().
exec("barcodePrint.exe -barcodeValue");
I'm using php & MySQL to develop my web based HRM system. Iam genarating leave report then i need to get printout automatically after loading full report (without opening print dialog box .)
this is possible or not?
thanks;
I am sorry to say that this is not possible within the context of a web page. If you design a (browser) plugin, then you can use the plugin to do so, but all users would need to install this plugin for it to work.