Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date and Time displays
Message
 
 
À
05/09/1997 10:42:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00048093
Message ID:
00048706
Vues:
37
>>>>>>>>Rob, in addition to the solutions the others have suggested, check the list of VFP reserved words and try NOT to use these in tables. Recently people have written about problems with fields named DESC, NUMBER and now DATE and TIME. All of these words are used internally by VFP, so it has trouble figuring out which meaning is the right one.
>>>>>>>>
>>>>>Hi Barbara...
>>>>>I am sending flds with values to the printer using vfp50. I had tried
>>>>>?? and that did not work. I have to use ??? for this to work.
>>>>>Here is a sample for HP III...
>>>>>??? chr(27)+'(10U'+chr(27)+'(s0p16.66h8.5v0s0b0T'
>>>>>??? chr(27)+'*p0x0Y'
>>>>>??? mytable.name
>>>>>??? mytable.address
>>>>>I stuff everything in the printer's memory and print everything at one time.
>>>>>This code works, but if you have another idea, please let us know.
>>>>>Thanks..rob
>>>>
>>>>Rob, you should only be using the ??? triple for printer commands - your 1st to lines. Then use ?? for the data as below:
>>>>
>>>>??? chr(27)+'(10U'+chr(27)+'(s0p16.66h8.5v0s0b0T'
>>>>??? chr(27)+'*p0x0Y'
>>>>?? mytable.name
>>>>?? mytable.address
>>>>
>>>>??? is for Printer commands only. ?? says 'print this data at the present printer position'. ? says 'print this on the next line'
>>>>
>>>>HTH
>>>>Barbara
>>>
>>>Barbara, I have tried using ?? for data and nothing gets printed. It only works when I use ???. I am using a Dell 133, 32 meg of ram. I am sending print commands to a HP 4si. ..if anybody else wants to jump in, go aheard..
>>>thanks..rob
>>
>>When manually generating a report to an HP, I have also had to issue an eject after the last printed line. Otherwise, the page does not "form feed" and the last line does not get printed. Try this with the single and double ?marks.
>
>Hay Mark - put this as the last line of your code and try it. :)
>??? chr(27)+'E' && reset the printer
>set print to

Being the paranoid and distrustful type (insert Twilight Zone music here), I do not issue the reset printer line until after ejecting the last page.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform