Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printing From Firefox
#1
So I've got a little bit that is compiled as exe so I can tell firefox to open document with that exe to print

Function PrintFile
Code:
Copy      Help
ARRAY(str) a
tok _command a -1 " ''" 4

run a[0] "" "print"

However when I use it, the file does print, but at least with a PDF and Adobe Reader, reader will open up an empty instance when complete. How can I avoid this from happening?

-Jim
#2
I think one quick fix is just closing the Adobe Reader program right after printing.

Function PrintFile
Code:
Copy      Help
ARRAY(str) a
int ntok=tok(_command a -1 " ''" 4)

for int'i 0 ntok
,;out F"a[{i}] = {a[i]}"
,run a[0] "" "print"
,
;Close Acrobat Reader program
int w=wait(0 WC win("Adobe Acrobat Pro" "AcrobatSDIWindow"))
act w
key Cq


Forum Jump:


Users browsing this thread: 1 Guest(s)