Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to specific printer tray
Message
 
To
17/11/2004 14:42:31
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00959962
Message ID:
00962415
Views:
12
After the report prints? You may want to try a suggestion made by Ed Raugh a while ago. Clear the floating point of the printer.
 This applies to most printers, but HP Printers are notorious for 
causing GPF will printing.

      In your main program, this only need to be declared once:


      CODE
      DECLARE _fpreset in MSVCRT

      And BEFORE (not neccessary but good precaution) and AFTER every print 
jobs use:

      CODE
      =_fpreset()  && case sensitive
      REPORT FORM myReport.frx NOCONSOLE TO PRINTER
      =_fpreset()  && case sensitive
>Ok I got that to work, tray 2 could not handle legal paper so I guess vfp automatically redirects the report to the first tray that can handle legal paper. Now the next problem, I am printing the report to a HP 4000 N PCL6 printer using the HP LaserJet 4000 Series PCL6 printer driver. After the report prints I get an error on the following page that says PCL XL error "illegal media source". Is there anything else in the expression that could be related to this illegal media source ?
>
>Thanks Again !
>Stephen J. Hunt
Previous
Reply
Map
View

Click here to load this message in the networking platform