Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run Report
Message
De
28/02/2006 15:19:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
28/02/2006 15:10:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
01100074
Message ID:
01100084
Vues:
13
>I want to run a report that has a printer set up in the page set up dialog
>
>However, I want to run the report on a different printer and the report should ignore the setting in the page set up dialog.
>
>I want to set the printer to what the user chooses and then I would print a few different reports all to the same printer that the user chose before, ignoring the printer that is set in the page set up. Sorry for being repititios, I wanted to be clear.

VFP reports give problems if they are designed for one printer, and printed on another one. You should clear the corresponding fields in the report; the easiest way to do this is to get the XDIR download, from the downloads section.

To select a printer, use the getprinter() function. The steps are more or less like this (quoted from my unreliable memory!):
local lcPrinter
lcPrinter = GetPrinter()
if not empty(lcPrinter) && if empty, user pressed ESC.
  set printer to &lcPrinter
  report form ...
endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform