Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Stephanie,
i dont think is a solution to prevent noeject in VFP...but if they is no one to help you & if you're in hurry, try this :)
My way :-
U need to use Foxpro for Dos, since FPD table and FVP table are not same u need text file
In VFP program, write to a text file the data you want to print using fcreate(),fputs(),fclose().
inhandle = FCREATE('c:\temp\test.txt')
IF inhandle > 0
=FPUTS(inhandle,'DAVID SNOOKER CENTRE')
=FPUTS(inhandle,billtable)
=FPUTS(inhandle,dtoc(stdate))
=FPUTS(inhandle,sttime)
=FPUTS(inhandle,dtoc(eddate))
=FPUTS(inhandle,edtime)
=FPUTS(inhandle,tottime)
=FPUTS(inhandle,'RM '+alltrim(str(ttotal,12,2)))
ENDIF
=FCLOSE(inhandle)
run /N7 bills.exe -T &&& run your dos program
Create a dos program to read the text file and compile it to a EXE, sample of bills.exe
set talk off
inhandle = fopen('c:\temp\test.txt')
if inhandle > 0
store fgets(inhandle) to cname
store fgets(inhandle) to table
store fgets(inhandle) to stdate
store fgets(inhandle) to sttime
store fgets(inhandle) to eddate
store fgetS(inhandle) to edtime
store fgets(inhandle) to tottime
store fgets(inhandle) to total
endif
=fclose(inhandle)
set print on
set console off
?
? cname
?? dtoc(date()) at 65
? table
? 'Start Time : '+stdate+' '+sttime
?? 'Stop Time : '+eddate+' '+edtime at 45
? 'Time Elapsed : '+tottime
?? 'Total Amt : '+total at 45
?
set print off
set console on
Hope next time if i am in trouble u will help me :)
>I seem to have a problem with my printing. One of our clients asked us to use their current epson lx-800 printer and use a continuos 3inch wide tape for paper. (It's for a semi-grocery type of store) I was wondering, how can we stop the page from ejecting and just move one inch to prepare for the next transaction? The page usually ejects to the 8x11 length. I have tried to customize the paper to the desired size but it would generate an error that says the title band is too large. i would appreciate it if i could get your assistance on this one.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement