Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00082892
Message ID:
00082912
Vues:
31
>>Hi,
>>
>>I have experienced bad time with printing form FoxPro 2.6 for DOS under Windows95 : sometime my reports are printed truncated or garbled or not printed at all; there was no error under FoxPro and sometime windows spooler is hanging; Windows spooler is configured to spool MsDos print job in data format RAW.
>>
>>HELP!
>>
>>Thanks.
>
>I know it sounds simple, but check the driver configuration in Windows 95. As for the spooler hanging - check the SET PRINTER OFF and SET PRINTER TO commands. I beleive they need to be one before the other - I can't remember which way round. The best solution is to change to FoxPro for Windows - or if you are feeling brave - go Visual! I hope this helps - I haven't used FoxDos for a few years but I do recall this problem.

I donno know Foxpro has Getprinter() function. If so, copy following code:
* Create a property of form if possible
APRINTER(APR)
IF THISFORM.GETPRINTER == "" OR EMPTY(ASCAN(APR, THISFORM.GETPRINTER))
	PR = GETPRINTER()
	THISFORM.GETPRINTER = '&PR'
ENDIF

SET PRINTER TO NAME (THISFORM.GETPRINTER)
Then, You can first Preset the current printer name if possible!
In case you copy to another system which DO NOT have your predefine
printer name, You still can work it!! ^_^'

Preset can make One time less to load the printer drive as previously
problem I state here! ~_~"

Remarks: the Above coding must work in VFP 5.0!! keke :>
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform