Re: Need help with LEP printing
KirkBrooks wrote > And I also need the solution for doing the same thing on windows. Hi Kirk, This solution here prints all document types on Windows (assuming the file-type is linked to any application that can print it). Pass the following string to LEP: powershell "Start-Process 'full path to file' -Verb print -WindowStyle hidden -PassThru | %{Start-Sleep 10;$_} | Stop-Process" It will print a file with the application that is set in the print associations of its file type (e.g. .XLS -> Excel). So it doesn't rely on Acrobat Reader to print PDFs. Fore some PowerShell in 4D background, see http://kb.4d.com/assetid=76530 Regards, Peter -- View this message in context: http://4d.1045681.n5.nabble.com/Need-help-with-LEP-printing-tp5748583p5748624.html Sent from the 4D Tech mailing list archive at Nabble.com. ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Need help with LEP printing
Hey Tim, On Thu, Nov 10, 2016 at 4:22 PM, Tim Nevelswrote: > Nice that Miyako made a plugin especially for you and your situation to > print a PDF. I’m sure you will get it working. > You flatter me. (I think.) But the timestamp on gitHub suggests the last update on it was over 2 months ago. I think Miyako is very good but not necessarily prescient. There is another option. Use Adobe Acrobat Reader on Windows. It has always > had a “hidden” feature where you can control it from the command line and > have it open and print a PDF. I’ve been using it for years on Windows. > Ah ha! That's the kind of hack I was looking for. Of course it assumes the user has Acrobat on board but that's easy to deal with. Thank you. -- Kirk Brooks San Francisco, CA === ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Need help with LEP printing
Hi Kirk, If you are in Mac Terminal, and issue the same command, does it work from there? Make sure you are testing the same shell as you specified in the command, like this: 1) Open Mac Terminal.app 2) Navigate to the directory containing the pdf 3) Change the shell to /bin/sh by issuing the command: /bin/sh 4) Now in the /bin/sh shell, issue the command you sent to the shell: lpr Test.pdf If it doesn’t work there, then it won't work from 4D either. Make it work from the terminal first, then adapt for 4D's LEP. Sorry if this isn't much help, I just wanted to help rule out the obvious first. -Tim ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **