Hi All,
The following code (to start Adobe Reader) works fine but, I'm having a problem with RUNCODE.
clear(loc:filename)
set(master)
Access:Master.Next
set(pdffiles)
loop until eof(pdffiles)
access:pdffiles.Next
if PDF:sel=1
loc:filename=clip(Mas:PDFFolder)&'\'&format(PDF:PDFNo,@n08)&'.PDF'
display !so I can see what is going on..
run(loc:filename,true) !works fine..
if RUNCODE() = 0
PDF:sel=0
PDF:Must=0
PDF:Printed=1
PDF:NoOfTimes+=1
access:pdffiles.update
END
END
END
ThisWindow.Reset(1)
Note that I am NOT calling the EXE but, instead I am using the system File Associations to start reader.
A few tips, or a little help would be appreciated.
TIA
Hi Sean,
The problem is that I have users who abort printing from Adobe Reader for documents that MUST be printed for audit purposes.
I am attempting to read an exit code, from Adobe Reader, that will tell me if the document was actually printed or did the user simply preview it and press the close [X] button.
The document names are stored in a file (PDFFILES) and have a flag attached indicating whether the must be printed, or not.
A succesful print (RUNCODE = 0, perhaps?) should clear the MUST flag, therefore allowing other operations (eg;delete) to proceed.
I guess that the biggest problem I have is that I have been unable to find a list of Adobe Reader exit codes. Plenty for the install routines etc., but none for normal operations.
Hi All,
The following code (to start Adobe Reader) works fine but, I'm having a problem with RUNCODE.
clear(loc:filename)
set(master)
Access:Master.Next
set(pdffiles)
loop until eof(pdffiles)
access:pdffiles.Next
if PDF:sel=1
loc:filename=clip(Mas:PDFFolder)&'\'&format(PDF:PDFNo,@n08)&'.PDF'
display !so I can see what is going on..
run(loc:filename,true) !works fine..
if RUNCODE() = 0
PDF:sel=0
PDF:Must=0
PDF:Printed=1
PDF:NoOfTimes+=1
access:pdffiles.update
END
END
END
ThisWindow.Reset(1)
Note that I am NOT calling the EXE but, instead I am using the system File Associations to start reader.
A few tips, or a little help would be appreciated.
TIA
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 307 |
Nodes: | 16 (2 / 14) |
Uptime: | 69:37:23 |
Calls: | 6,915 |
Files: | 12,380 |
Messages: | 5,431,960 |