I saw a post on here a few weeks ago describing how to setup a button with some mel code or something that would print a PDF...
Thanks in advance!
This thread has code on how to open a PDF from a button. Don't know if there are command line switches to print a PDF but could be.
DavidShower said:
This thread has code on how to open a PDF from a button. Don't know if there are command line switches to print a PDF but could be.
Yes, that was the thread I was reading, but apparently can only open them and not straight up print them...bummer. Guess i've gotta create 80 hand outs, was hoping to avoid that.
OK, been a while since I have done DOS (before Windows, for all you youngsters!) scripting, but perhaps something like the following:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
H:\>"C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" /t "G:\Reports\Appointments\a110 daily appt screening.pdf"
Note, the command was all on one line, and beware that there are space characters in there (hence the double-quotes). And, of course be aware of the folders/directories and where they may be mapped for all users.
Oh, and should have said, two approaches:
1) to execute that complete command from MEL, as David showed
or
2) Create a batch file for each pdf handout, and thus the MEL would only need to run the .bat file and the batch files (which could all be in a simple/central location) would do the full path definitions.
So the only difference is you have a /t in yours, is that the printing trigger or something?
The following switches are available:
/n - Launch a new instance of Reader even if one is already open
/s - Don't show the splash screen
/o - Don't show the open file dialog
/h - Open as a minimized window
/p <filename> - Open and go straight to the print dialog
/t <filename> <printername> <drivername> <portname> - Print the file to the specified printer.
None of those work through runprocess.
I am guessing perhaps something to do with passing the /t switch, or the spaces in filenames.
Create the command in a PC batch file. Then have the MEL RUNPROCESS call the batch file.
probably have to check 'Store in EFM'.
You can convert PDF into Word and then place in EMR. Then the MEL runprocess to print will work. I do that alot with PDF handouts that come my way.
eglopez said:
You can convert PDF into Word and then place in EMR. Then the MEL runprocess to print will work. I do that alot with PDF handouts that come my way.
What program do you use? The PDF converters I've tried don't work, I just get a blank document. On some I do a screen grab, paste it into Word Pad then copy / paste it into CPS but I can only do that with one pagers since I get a size error beyond that...
oh that is not good! Adobe is the program.
Ya, I used adobe acrobat pro and it looked the same in word but when i transferred it into word pad, it lost everything and looked like total crap. I've given up on this idea 😛
Could someone please supply the code to print a pdf. The link above no longer works since the CHUG upgrade.
Thank you!
dh