After selecting the PDF writer from the printer dialog box for the
first statement, I want the program to print the remaining 100 (or
so) statements to PDF without user intervention.

But with this construct...

firstStatement = .T.
SELECT Members
SCAN
.... process member's transactions
promptClause = IIF(firstStatement, 'PROMPT', '')
REPORT FORM Statement NOCONSOLE TO PRINTER &promptClause
firstStatement = .F.
ENDSCAN

... the program prints the first statement to PDF, as selected in the
dialog box, but the remaining statements output to the default printer
instead of PDF.

How can I print all the statements to the non-default printer (i.e. to
a PDF file)??


Steve Meyerson

Re: Change Default Printer in VFP9? by man-wai

man-wai
Wed Oct 05 22:51:54 CDT 2005

> firstStatement = .T.
> SELECT Members
> SCAN
> .... process member's transactions
> promptClause = IIF(firstStatement, 'PROMPT', '')
> REPORT FORM Statement NOCONSOLE TO PRINTER &promptClause
> firstStatement = .F.
> ENDSCAN

try something like this:

m.printer = getprinter()
select members
scan
...
report form statement noconsole to printer (m.printer)
...
endscan

RE: Change Default Printer in VFP9? by Leemi

Leemi
Thu Oct 06 15:00:53 CDT 2005

Hi Steve:

Try adding a SET PRINTER TO NAME command. See
http://support.microsoft.com/default.aspx?scid=KB;EN-US;162798

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>After selecting the PDF writer from the printer dialog box for the
>first statement, I want the program to print the remaining 100 (or
>so) statements to PDF without user intervention.

>But with this construct...

>firstStatement = .T.
>SELECT Members
>SCAN
> .... process member's transactions
> promptClause = IIF(firstStatement, 'PROMPT', '')
> REPORT FORM Statement NOCONSOLE TO PRINTER &promptClause
> firstStatement = .F.
>ENDSCAN

>... the program prints the first statement to PDF, as selected in the
>dialog box, but the remaining statements output to the default printer
>instead of PDF.

>How can I print all the statements to the non-default printer (i.e. to
>a PDF file)??


>Steve Meyerson




Re: Change Default Printer in VFP9? by Steve

Steve
Fri Oct 07 11:01:43 CDT 2005

Thanks guys for your answers.

The NAME word in the TO PRINTER clause is what I needed (which I now
see was in the doc:). My statements now can output to a pdf file, but
the user is required to designate a file name as each statement.

So, ... I'm not sure if this is an Acrobat, Foxpro or API question:

Is there a way to append each statement "printout" to the same pdf
file or maybe to separate pdf files with names somehow generated
without user intervention?? (Acrobat 7.0 Pro can then merge all the
output files into a single document).

Any ideas? Thanks.

Steve Meyerson



On Wed, 05 Oct 2005 22:06:41 -0400, Steve Meyerson
<stevemeyerson@cox.net> wrote:

>After selecting the PDF writer from the printer dialog box for the
>first statement, I want the program to print the remaining 100 (or
>so) statements to PDF without user intervention.
>
>But with this construct...
>
>firstStatement = .T.
>SELECT Members
>SCAN
> .... process member's transactions
> promptClause = IIF(firstStatement, 'PROMPT', '')
> REPORT FORM Statement NOCONSOLE TO PRINTER &promptClause
> firstStatement = .F.
>ENDSCAN
>
>... the program prints the first statement to PDF, as selected in the
>dialog box, but the remaining statements output to the default printer
>instead of PDF.
>
>How can I print all the statements to the non-default printer (i.e. to
>a PDF file)??
>
>
>Steve Meyerson


Re: Change Default Printer in VFP9? by Dan

Dan
Fri Oct 07 11:09:16 CDT 2005

Once it leaves Fox (i.e. into PDF) the question is definitely an Acrobat
question. :-)

But there are a lot of people around here that use various PDF generators.
We use the Amyuni suite here, which supports naming the output file
programmatically and has tools to combine multiple files into one.

There is a white paper at www.west-wind.com about using output to Acrobat. I
believe it tackles the file naming issue.

Dan

Steve Meyerson wrote:
> Thanks guys for your answers.
>
> The NAME word in the TO PRINTER clause is what I needed (which I now
> see was in the doc:). My statements now can output to a pdf file, but
> the user is required to designate a file name as each statement.
>
> So, ... I'm not sure if this is an Acrobat, Foxpro or API question:
>
> Is there a way to append each statement "printout" to the same pdf
> file or maybe to separate pdf files with names somehow generated
> without user intervention?? (Acrobat 7.0 Pro can then merge all the
> output files into a single document).
>
> Any ideas? Thanks.
>
> Steve Meyerson
>
>
>
> On Wed, 05 Oct 2005 22:06:41 -0400, Steve Meyerson
> <stevemeyerson@cox.net> wrote:
>
>> After selecting the PDF writer from the printer dialog box for the
>> first statement, I want the program to print the remaining 100 (or
>> so) statements to PDF without user intervention.
>>
>> But with this construct...
>>
>> firstStatement = .T.
>> SELECT Members
>> SCAN
>> .... process member's transactions
>> promptClause = IIF(firstStatement, 'PROMPT', '')
>> REPORT FORM Statement NOCONSOLE TO PRINTER &promptClause
>> firstStatement = .F.
>> ENDSCAN
>>
>> ... the program prints the first statement to PDF, as selected in the
>> dialog box, but the remaining statements output to the default
>> printer instead of PDF.
>>
>> How can I print all the statements to the non-default printer (i.e.
>> to a PDF file)??
>>
>>
>> Steve Meyerson



Re: Change Default Printer in VFP9? by Paul

Paul
Wed Nov 02 08:57:04 CST 2005

Steve Meyerson <stevemeyerson@cox.net> wrote in
news:nnv8k19mplc6copc47q2alttf1dv9kbku3@4ax.com:

> After selecting the PDF writer from the printer dialog box for the
> first statement, I want the program to print the remaining 100 (or
> so) statements to PDF without user intervention.
>
> But with this construct...
>
> firstStatement = .T.
> SELECT Members
> SCAN
> .... process member's transactions
> promptClause = IIF(firstStatement, 'PROMPT', '')
> REPORT FORM Statement NOCONSOLE TO PRINTER &promptClause
> firstStatement = .F.
> ENDSCAN
>
> ... the program prints the first statement to PDF, as selected in the
> dialog box, but the remaining statements output to the default printer
> instead of PDF.
>
> How can I print all the statements to the non-default printer (i.e. to
> a PDF file)??
>

Steve,

There is a FoxPro default printer select routine on our
website. Just go to the foxpro page.

-----------------------------------------------------------------
Paul Lee ........ Abri Technologies ........ http://www.abri.com/
'Recover' - top rated FoxPro file repair utility.
-----------------------------------------------------------------

Re: Change Default Printer in VFP9? by Leemi

Leemi
Wed Nov 02 17:01:21 CST 2005

Hi Steve:

If you have VFP 9.0, you may be able to use the Report Listener and "chain"
the reports to make one file.

You may be able to do a Google search and find an example on the Web of
this technique.

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003


>Thanks guys for your answers.

>The NAME word in the TO PRINTER clause is what I needed (which I now
>see was in the doc:). My statements now can output to a pdf file, but
>the user is required to designate a file name as each statement.

>So, ... I'm not sure if this is an Acrobat, Foxpro or API question:

>Is there a way to append each statement "printout" to the same pdf
>file or maybe to separate pdf files with names somehow generated
>without user intervention?? (Acrobat 7.0 Pro can then merge all the
>output files into a single document).

>Any ideas? Thanks.

>Steve Meyerson



>On Wed, 05 Oct 2005 22:06:41 -0400, Steve Meyerson
<stevemeyerson@cox.net> wrote:

>After selecting the PDF writer from the printer dialog box for the
>first statement, I want the program to print the remaining 100 (or
>so) statements to PDF without user intervention.
>
>But with this construct...
>
>firstStatement = .T.
>SELECT Members
>SCAN
> .... process member's transactions
> promptClause = IIF(firstStatement, 'PROMPT', '')
> REPORT FORM Statement NOCONSOLE TO PRINTER &promptClause
> firstStatement = .F.
>ENDSCAN
>
>... the program prints the first statement to PDF, as selected in the
>dialog box, but the remaining statements output to the default printer
>instead of PDF.
>
>How can I print all the statements to the non-default printer (i.e. to
>a PDF file)??
>
>
>Steve Meyerson





Re: Change Default Printer in VFP9? by JimFuchs

JimFuchs
Thu Jan 19 09:46:03 CST 2006

Hi Steve. I also was looking for a way to have FoxPro supply the path and
filename for the Acrobat writer, but from what I see on this thread it can't
be done. So instead, I just have FoxPro pump what I want into _CLIPTEXT (the
clipboard) then instruct my users that all they have to do is Paste (or
CTRL+V) in the dialoge box. That's my work-around.

STORE "C:\MyAcrobatFiles\"+ALLTRIM(clientlastname)+".pdf" to _COPYCLIP

Jim Fuchs

"Steve Meyerson" wrote:

> Thanks guys for your answers.
>
> The NAME word in the TO PRINTER clause is what I needed (which I now
> see was in the doc:). My statements now can output to a pdf file, but
> the user is required to designate a file name as each statement.
>
> So, ... I'm not sure if this is an Acrobat, Foxpro or API question:
>
> Is there a way to append each statement "printout" to the same pdf
> file or maybe to separate pdf files with names somehow generated
> without user intervention?? (Acrobat 7.0 Pro can then merge all the
> output files into a single document).
>
> Any ideas? Thanks.
>
> Steve Meyerson
>
>
>
> On Wed, 05 Oct 2005 22:06:41 -0400, Steve Meyerson
> <stevemeyerson@cox.net> wrote:
>
> >After selecting the PDF writer from the printer dialog box for the
> >first statement, I want the program to print the remaining 100 (or
> >so) statements to PDF without user intervention.
> >
> >But with this construct...
> >
> >firstStatement = .T.
> >SELECT Members
> >SCAN
> > .... process member's transactions
> > promptClause = IIF(firstStatement, 'PROMPT', '')
> > REPORT FORM Statement NOCONSOLE TO PRINTER &promptClause
> > firstStatement = .F.
> >ENDSCAN
> >
> >... the program prints the first statement to PDF, as selected in the
> >dialog box, but the remaining statements output to the default printer
> >instead of PDF.
> >
> >How can I print all the statements to the non-default printer (i.e. to
> >a PDF file)??
> >
> >
> >Steve Meyerson
>
>

Re: Change Default Printer in VFP9? by Paul

Paul
Mon Feb 27 06:19:20 CST 2006

There is a way to change the default printer. Check the PrtSel
utility at http://www.abri.com/foxpro.html#prtsel

-----------------------------------------------------------------
Paul Lee ........... Abri Technologies ......... http://abri.com/
'Recover' - top rated FoxPro file repair utility.
-----------------------------------------------------------------