Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Portrait or Landscape ? Weird VFP 5.
Message
From
24/08/2002 22:37:01
George Lechintan
Independent consultant
Sebes, Romania
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Portrait or Landscape ? Weird VFP 5.
Miscellaneous
Thread ID:
00693377
Message ID:
00693377
Views:
123
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.
Next
Reply
Map
View

Click here to load this message in the networking platform