Re; Getting the printer in processing
Richard Kreiss
rkreiss at gccconsulting.net
Mon Dec 2 14:31:52 PST 2013
> -----Original Message-----
> From: filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com
> [mailto:filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com] On
> Behalf Of Kenneth Brody
> Sent: Monday, December 02, 2013 4:14 PM
> To: Richard Kreiss; filepro-list at lists.celestial.com
> Subject: Re: Re; Getting the printer in processing
>
> On 12/2/2013 3:56 PM, Richard Kreiss wrote:
> > I have a clerk program which uses a system call to print out letters.
> >
> > On the menu command line I have -pq and get the printer selected by
> > checking @pr.
> >
> > My problem is - is there a way to get the a file name if that is the
> > option selected? It appears that @pr is set to the default printer
> > when -p is to a file.
>
> @PR is the printer name. It sounds as if you want @PD, which is the printer
> destination.
>
> --
> Kenneth Brody
Windows System:
Thanks Ken, that solved the problem with a bit more programming. Even though file was selected @pr shows the default printer and @pd would show the printer destination.
I added
If: mid(@pd,"1","4") ne "WIN:"
Then: pd= "\""{@pd{"\""
If: mid(@pd,"1","4") = "WIN:"
Then: pd= "\""{@pr{"\""
This get the proper destination set.
Richard Kreiss
More information about the Filepro-list
mailing list