Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Form - NT vs Win 95
Message
De
24/01/2001 16:04:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Report Form - NT vs Win 95
Divers
Thread ID:
00468210
Message ID:
00468210
Vues:
48
I am using the following code within .prgs to determine which type of operating system people in my office have (most have Windows 95 yet, few have NT)

procedure prntcodes && used to set the printer codes for prg files && attempting to use for .frx reports
*
if getversion() > 0
SET PRINTER TO NAME "\\ODODNT13\Kyocera FS-3600" && set the printer name if NT machine
else
SET PRINTER TO NAME "Kyocera FS-3600" && set the printer name if windows 95 machine
endif
SET DEVICE TO PRINTER
??? "!R!SEM5;EXIT,E;" && set to epson mode
*
return

This code works great for running .prgs which have printouts hard coded into them (these printouts are set up with epson emulation which HP printers don't support, that is why the need for this code to send to a specific printer), but I am having difficulty when trying to use it before I run a report (.frx).

It works perfect on an Windows NT operating system, it reads this, changes the printer to the name assigned and prints. On a Windows 95 operating system, the command works but before it sends the report (.frx), the windows 95 default printer again replaces the printer name and the report (.frx) does not go to the designated printer. I verified this by prompting what printer was selected before sending the report.

Does anyone know why a report (.frx) will not send to something other than the default printer on a Windows 95 machine?

Appreciate the help.

Todd
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform