Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text report by Hilmar Zonneveld
Message
De
14/08/2005 10:37:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
14/08/2005 10:20:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01040780
Message ID:
01040784
Vues:
12
Suggestion: You can send a UT message directly to a user. If you send a message related to text-report directly to me, I won't overlook it.

>I'm using Hilmar Zonneveld's text report with Epson miniprinter (TM-U220) which is a great utility, but I got some problems, it always print a 'B' character on top of the report, I think this is compability issue, since some models difference from the others.

The actual printing (as well as preview) is done with the separate program, PrintTextFile. The main class only helps you prepare the text file.

Printer codes for the printer are stored in a header (.h) file. Perhaps you have to adjust the startup codes. I usually send a startup code first, to reset the printer to a standard (no bold, no italic, etc.), in case any previous program left the printer at a non-standard setting. I think no printer setup codes are sent automatically; only what is specified in the property .cPrinterCodes. Look at the Init() method of your report class; there might be a line like: This.cPrinterCodes = PC_RESET. PC_RESET (where "PC" stands for "printer codes") is defined in the separate header file; you will have to check the manual for your specific printer. You might decide to send NO setup code, or change the code to turn off only bold and italic, for example.

>the other is, in the detail, if I print 40 characters, the printer always jump one row, in the header and footer, I can print a full 40 characters with no problem.

Method .Print() works like the "?" command; method .PrintLine() works like the "??" command. In other words, .PrintLine() will advance one line before outputting the detail band.

Note that this makes the report engine quite flexible, in the sense that you are not forced to advance a line with every detail record; you can print several details, in a certain group level, in separate columns; this is something very difficult to achieve with the built-in VFP report engine.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform