Quick Print Wizard question

Bob Rasmussen ras at anzio.com
Thu Aug 6 15:02:45 PDT 2009


On Thu, 6 Aug 2009, Richard Hane wrote:

> System:
> fileProODBC 5.0.15 (16 user network)
> Testing on a workstation with Windows XP Pro
> Print Wizard verion 3.0
> 
> Here is my batch file:
> @echo off
> rem This File created by install shield on 8-25-2004
> set PATH=C:\WINDOWS\COMMAND
> set PFDSK=V
> set PFDATA=V:
> set PFPROG=V:
> set PFDIR=
> set PFLMHOST=server2007
> set PFMENU=V:\fp\menus\rick
> set PFGLOB=
> set PFCONFIG=
> set pfpostprint=c:\program files\printwiz30\printwiz.exe /fpdf c:\quote.txt /q
> set PATH=%pfprog%;%PFPROG%\fp;%path%
> echo stuff > fp$$$$$$.bat
> del fp$$*.bat>NUL
> %pfprog%\fp\p
> 
> My printer definition
> printer12|  rickpdf,printwiz,c:\quote.txt,Create PDF
> 
> I am trying to create a pdf of the output from filepro called quote.  
> The file quote.txt is created correctly and exists in the C:\directory.  
> But the above does not create a file called quote.pdf.  If I remove the 
> "/fpdf c:\quote.txt" it will print correctly.  It does create a file 
> called pdf that can not be opened.
> 
> What am I doing wrong?  

Short answer:
Try changing "/fpdf" to "/fpdf://somefile.pdf".

Longer answer:

1. Replace "/q" with "/debug", so you can better see what is going on. 
Later on, you can change it back.

2. There are two ways you can tell it to create a PDF:
     /pdf
       This just tells it to create one, but doesn't name it. YOu can use 
       a separate "/fsomefile.pdf" to specify the name.
OR
     /fPDF://...etc...
       This is what we call a superfile name, which can contain many 
parameters.

In your "/fpdf" you tried to combine these approaches.

3. The PDPOSTPRINT process will normally write report output to a 
particular file, then filePro will append the name of that file to the 
command line given. So your "c:\quote.txt" is redundant.


> Also on the printer definition is it possible to let fp create the name 
of the output based on the data in a field?

Not quite. You can add a line at the beginning of the file that contains 
bang parameters, as indicated in the manual.

If you can't get started at least generating PDFs, call me.

Regards,
....Bob Rasmussen,   President,   Rasmussen Software, Inc.

personal e-mail: ras at anzio.com
 company e-mail: rsi at anzio.com
          voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
            fax: (US) 503-624-0760
            web: http://www.anzio.com
 street address: Rasmussen Software, Inc.
                 10240 SW Nimbus, Suite L9
                 Portland, OR  97223  USA


More information about the Filepro-list mailing list