Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Forms on Multiple Printers under XP
Message
 
 
À
19/06/2006 22:58:23
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01130139
Message ID:
01130204
Vues:
17
It's better to make a temp copy of a report, modify it and run report from it. The sample code to get a printer form # on PC can be found at Custom Page or Printer Form on Crystal Report and different machines FAQ #29158

>I've got a report that is driving me crazy. It uses a custom form. Two XP machines print to a Lexmark 2480 (one local and one via the network), and two XP machines and two W2k machines print to a Lexmark 2490 which is attached to one of the XP machines. I had everything working fine until the machine with the 2480 crashed its hard drive and the OS was replaced with XP 2002.
>
>I have the custom form defined on all the machines, but apparently it doesn't have the same form number on all the machines. If I build the app on the local XP machine with the 2480, it runs fine there, but it defaults to the standard Letter form on the machines printing to the 2490. If I build the app on a w2k machine with the 2490 as a network printer, it defaults to the standard Letter form on the 2480 machines. Neither option is desirable.
>
>The custom form doesn't even have the same form number on two different printers on the same machine. I have a w2k machine where I have defined a 2480 as a local printer to a file, and a network 2490. If I set the custom form as the default on each printer, and do prtinfo(2), I get two different numbers. I guess that is because in the case of the 2480, it is using a local form, and in the case of the 2490, it's using the form off the netwokred machine.
>
>After searching through the threads here, it appears that the only way to resolve this is to enumerate the forms on a machine, and find one that matches the form width and length that I need, then to set that number in the PageSize option in the Expr field of the FRX. Does that also mean that the frx can't be included in the project, and a copy has to be on each machine, or can I make a temporary copy of the frx in the project on each machine when I need it?
>
>Or, if I clear the Tag, Tag2 and Expr fields, will the default printer attributes carry through, including the form selected?
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform