Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetPrinter
Message
De
04/06/2007 13:59:04
 
 
À
04/06/2007 12:58:22
Andy Roth
Neyenesch Printers
Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
01230276
Message ID:
01230320
Vues:
19
>>>Hi,
>>>I had a program in VFP5 that used SET PRINTER TO PRINTNAME getprinter()
>>>to set the printer. In VFP9 that blows up
>>>I did:
>>>PRINTNAME=getprinter()
>>>SET PRINTER TO $PRINTNAME
>>>
>>>but the report does not go to the selected printer. It always defaults to the
>>>printer on the network the report was made and tested on.
>>>
>>>Any help would be great.
>>>
>>>Andy
>>
>>Firstly, try
>>SET PRINTER TO NAME (PRINTNAME)
>
>I did this:
>
>PrintName= getprinter()
>
>SET PRINTER TO NAME (PrintNAME)
>
>?PrintName
>WAIT
>
>Showed the correct printer name but it did not do the that printer
>REport is being called by:
>REPORT FORM proofti3 NOCONSOLE TO PRINTER

It might happen that FRX file contains printer-specific data. Open the file manually and check EXPR,TAG,TAG2 fields for the 1st record. The last 2 fields (tag,tag2) should be empty, and Expr field should not contain printer name.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform