Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing problem
Message
De
25/11/1998 10:11:06
 
 
À
25/11/1998 09:52:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00160495
Message ID:
00161352
Vues:
26
>>Thank you for the reply.
>>We tested the removing-fields-hack, but it had the bad effect of removing all the report Page Setup information such as the number of columns a detailband should be spread over, margins, etc.
>>Can this be avoided somehow?
>>
>>Best regards,
>> - Peder
>
>Remove only printer-specific lines from 'Expr' field (Driver,Device,Output).

If you are using VFP5 these are the steps to follow. I use it in many apps and it always works irrespective of the current default printer setting!!
The report can be saved with any data in the tag fields for a different printer.

1) Have a listbox woih a list of printers installed taken from the WIN.INI. Yes even VFP uses these entries. The wording must be exact. To see what a printer is called open your settings, Printers and look at the names of the printers installed these are the ones to use.

You could use APRINTERS() to return the list.

2) Issue the command:
SET PRINTER TO NAME "Canon BJC-4200"

substituting the TRIMMED string you get back from the user selection for the name string.

3. REPORT FORM myreport NOCONSOLE TO PRINTER
Note NO PROMPT CLAUSE.

If the name is correct then output will go to this printer irrespective of whether it is the default or not .


Bernard
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform