Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any Work around for Set Printer to Name command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Any Work around for Set Printer to Name command
Divers
Thread ID:
00932252
Message ID:
00932252
Vues:
57
I'm not sure how many of us encountered problem with this commands...

There is still a thread going on here in UT regarding this problem. What I notice is running this under my development Machine works fine, (OS: WINXP PRO) but when I move the finished App and deployed to a "Live Machine". This command failed?

Here is my Command??
IF Messagebox("Print to Docket Receipt?",4+32+512,"Customer Receipt")= 6
	SET CONSOLE off
	SET TALK off
	IF Messagebox("Does customer paid or made a deposit?",4+32+512,"Receipt")= 6
		DO PROGS\KICK1
		DO PROGS\RECEIPT
		DO PROGS\RECEIPT
	ELSE
		DO PROGS\RECEIPT
		DO PROGS\RECEIPT
	Endif
ENDIF
*// MY RECEIPT PRG.
     SET DEVICE TO PRINT
     SET PRINTER TO NAME "STAR"
     @prow()+1,(40-len(rtrim(mSTORE_NAME)))/2 Say rtrim(mSTORE_NAME)
     @prow()+1,(40-len(rtrim(mADDRESS1)))/2 Say rtrim(mADDRESS1)
     @prow()+1,(40-len(rtrim(mADDRESS2)))/2 Say rtrim(mADDRESS2)
     ...
     *other codes
     SET PRINT TO
THIS CODE Fails on Windows 2000 Prof with SP4? Any Ideas? Why like that.. why.. Why...


Anyone who have better code, or technique in usin the set device to print,
set print to LPT1 like a DOS behaviour?

Thanks...
Jojo R. dela Cuesta, B.Sc.
eConsultant, Programmer
Dalplus Technologies
http://www.dalplus.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform