Hi everybody, is there any way to print directly to a default printer without seeing the dialog box?
Re: Direct printing
No, you can only choose 3 differents way of destination In Settings: Browser,Download and Server.
Re: Direct printing
…and is there a way of direct print a pdf from outside pdf application ? I.E a button on a control application that creates a PDF using an SC pdf_report application and print it directly to the default printer instead of opening PDF file on the browser ?
Regards
Raimondo Zoroddu
Re: Direct printing
I could save PDFs on a server folder but…how could I print a file from that folder to the default printer ?
Ciao
Raimondo
Re: Direct printing
Hi Fiends,
How to include “/h /p” parameters to DIRECT print a PDF Report ?
I Windows Applications, when I don’t want to preview a Pdf Document I add the /h /p parameters to the Acrord32.exe command line. (Acrord32.exe /h /p pdffile) print directly to default printer.
I want to do the same in Scriptcase with a Pdf Report.
Thanks,
Aquiles
I have spent a lot of time on this question, namely, how to programatically use a PHP script to send a PDF document to the printer without launching the Adobe print dialog that results from using arcord32.exe (the adobe reader). PHP has some useful classes for creating PDF’s, i.e., the FPDF library, but printing the created file is a bear. For Windows XP and Windows 7 servers, the one open -source solution which works is to use the PDFBOX java library. Here are the steps.
- Download the latest java pdfbox binary: http://www.apache.org/dyn/closer.cgi/pdfbox/1.7.1/pdfbox-app-1.7.1.jar and put it in a directory. I will call my example c:/java/libs
- Create a PDF file you want to send to the printer. I will call it example.pdf.
- Configure the printer on the server (where PHP is running) you want to use to have a one-word name, like HPOfficeJET. You can’t get away with a name like HP 8600 OfficeJet.
- Create a command string like this:
$printcmd = “java -classpath c:/java/libs/pdfbox-app-1.7.1jar org.apache.pdfbox.PrintPDF -silentPrint -printerName HPOfficeJet example.pdf”;
- Use one of the PHP exec commands to launch this command:
exec($printcmd);
If all goes well, your server’s printer will start, the pdf will print, and you will have created a way to have a client page request the server to print a server PDF you select or create.
OK, some notes: Read the PDFBox documentation. It explains the syntax of the above command. Also, try the commnad out at the command line (on the server)until it works. The java executable must be in a $PATH directory,or explicitly specified. You can, of course, park your pdfbox jar file in your system classpath for easier reference. The name of the java class must be fully qualified:org.apache.pdfbox.PrintPDF And, before beginning to implement this, get your head on straight about which code is executing where. This is server-side PHP, usually running under Apache, although it should work anywhere. I have seen questions about a javascript solution - that is client-side code and doesn’t help you with a PDF that you want to print at the server. Good luck.
Since a few days someone here attended me to https://code.google.com/p/jzebra/
I’ve been looking into this library and with their samples I could download and print a pdf without any interveniance. It requires java which might be an issue to some and it requires integrating the javascript of the sample into scriptcase (the part I haven’t looked at currently) But it might be an alternative too.
A complement more than alternative. Jzebra is to print client side only,ahmeranis talks about server side.printing
I don’t think so in the first threat, they said anything about the server side printing.
Direct Printing
Hi everybody, is there any way to print directly to a default printer without seeing the dialog box?
I don’t think so in the first threat, they said anything about the server side printing.
Direct Printing
Hi everybody, is there any way to print directly to a default printer without seeing the dialog box?
You are true, I writed my asumption based in your previous message talking about "$printcmd = “java -classpath c:/java/libs/…”
Mobile browsing, sometimes is not so good
for mobile solution, I made separate application just for the mobile screen and install on the server with sub-domain like m.domain.com, I designed only necessary screens which is very important for the application users whos on the road.
and everybody love it ;D
I post the threat long time ago, when they will bring bootstrap with sass or less, but still no progression but they did with html3/css3, which was a good step for the chart system you know that…
chao…
regards…
[QUOTE=Giu;23813]You are true, I writed my asumption based in your previous message talking about "$printcmd = “java -classpath c:/java/libs/…”
Mobile browsing, sometimes is not so good :D[/QUOTE]
for mobile solution, I made separate application just for the mobile screen and install on the server with sub-domain like m.domain.com, I designed only necessary screens which is very important for the application users whos on the road.
and everybody love it ;D
I post the threat long time ago, when they will bring bootstrap with sass or less, but still no progression but they did with html3/css3, which was a good step for the chart system you know that…
chao…
regards…