Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing
Message
De
12/04/2001 14:55:56
 
 
À
10/04/2001 21:03:14
Stephanie Caragos
Ebs Accounting Software Solutions
Cagayan de Oro City, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00494242
Message ID:
00495003
Vues:
16
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
Fil
Voir

Click here to load this message in the networking platform