I agree with Mark's comments. Also, if you still have the problem, have you tried a different printer driver or uninstalling and reinstalling the one used now? We ran into problems with SP4 that were resolved when we changed printer drivers.
>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...
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"