Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent Eject after printing -Urgent
Message
De
19/03/2001 23:23:07
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
19/03/2001 22:58:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00486406
Message ID:
00486746
Vues:
27
>I try out creating a FPD report...yes it work with VFP but still eject after printing regardless setting it no eject after print
>
>My situation here is that i need to print a pre-print payment receipt form with is 3.5 " height. I tried setting the page setup but it doesnt work out.
>
>
>Pls Help
>
>thanks
>
>P/s i am using canon buubble jet while my client is using dot matrix printer

Well, IBM - immer besser manuel (it's always better manually). Or as Americans would say, roll your own.
set printer to [lpt port here]
set print on
? [your print commands go here, you can use AT clause for positioning and even some Font clauses, but then you're lost with positioning]
...
[more ? and ?? commands here]
set print off
and now don't issue a Set Print To until you want to have it ejected. You may need to issue some escape sequences - the ESC/P2 code, which should work with both bubblejet and dot-matrix, for 3.5" (which would be 3.5*6lpi=21 lines) should be chr(27)+'$'+chr(21) or chr(27)+'$'+chr(0)+chr(21) - one of them should be setting the page length in inches, the other in lines, but which is which - and once you set that, the printer should eject at 3.5" when you send it a chr(12) (formfeed) if it has a fanfold paper. Don't know how it works with cut sheet.

This is the old DOS way, very slow and tricky to do (but works nice once it works). You may still try regular reports, if you can set it to 3.5" size. Try file/page menu while editing the report.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform