PDISK PRN (AREV Specific)
At 14 OCT 2005 07:39:26AM C Mansutti wrote:
Seems to be printing month on the forum.
I was just wondering is I go to the printer definition (third page in) and in the close section of the printer process I put in a code of E (for execute) and command of PDISK PRN, will this automatically generate the pdisk prn command at the end of every print or will it have to still be called like a font type by my printing routine?
Also if I use it from the definition, are there any hidden pitfalls?
Of course the reason I need to use it, is so we don't get the old 45 sec delay using a Windows (Not Novell) environment.
TIA
CLaude
At 14 OCT 2005 10:07AM Dave Harmacek wrote:
Suggest you create a subroutine
subroutine pdiskprn( LPT)
call setptr( LPT: char(0), 1)return
where LPT is given values like "LPT1", "LPT2" and so on.
I hated the automatic routines released in ARev for printer control and just added this routine to the end of any processes where I needed to promptly release the printer. Also added a "Macro" key called "Release Printing" that executed above routine to default printer.
Dave
At 14 OCT 2005 10:12AM Matt Sorrell wrote:
Claude,
I don't know the answer to your specific question, but did you know there is a registry setting you can modify to change the default print queue timeout in Windows?
Here is an article about the registry settings you can change.
At 14 OCT 2005 09:14PM C Mansutti wrote:
Thanks Dave,
Always nice to learn things.
The printer definition never did call the routine at the close.
As I extensively used the Banded Report Writer for most of my many reports, and the thought of having to add a call to setptr after each call left me cold, so I renamed the Runreport VOC call to RR and redirected the Voc Runreport to this little routine.
I Assume the overheads are minimal - correct me if I'm wrong:
main.program.:
declare subroutine catalystB=@SENTENCESWAP "RUNREPORT" WITH "RR" IN BCATALYST("X",B)call pp ; * where pp is my pdisk prn subroutine using setptrreturn
Thanks again
Claude
At 17 OCT 2005 11:59AM Matt Sorrell wrote:
Claude,
That should work just fine. Just keep in mind that if you ever upgrade your ARev version, your VOC changes could get stomped on.