Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Portrait or Landscape ? Weird VFP 5.
Message
De
24/08/2002 22:37:01
George Lechintan
Independent consultant
Sebes, Roumanie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Portrait or Landscape ? Weird VFP 5.
Divers
Thread ID:
00693377
Message ID:
00693377
Vues:
118
With VFP 5 my new laser printer generated "Illegal operation" which crashed the system and this is how I fixed the problem following the suggestions from UT:

1. Cleaned Tag, Tag2 fields of all reports (first line in .frx)
2. Cleaned EXPR field - left only ORIENTATION (first line in .frx)

That didn't fix the problem so I went further:

3.In the main program:
DECLARE _fpreset IN MSVCRT20

4.After each REPORT FORM... I issued a =_fpreset() statement
REPORT FORM...
=_fpreset()

NOW it no longer crushing the system. So I offer this as a solution for this kind of problem.

BUT this generated another problem:
If I print the same report twice in this sequence
REPORT FORM *
=_fpreset()
REPORT FORM *
=_fpreset()

...it sometimes prints one copy in Landscape format even if the report is Portrait...100% puzzled...

Thanks in advance for your help.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform