Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Garbage is printed
Message
 
 
To
07/11/2001 12:45:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00577792
Message ID:
00578617
Views:
17
>>It may be that the printer is setup for receiving ascii text characters, but Windows is sending graphics stuff. If that's the case, you'll need to set the printer up in graphics mode. Sometimes there's a dipswitch setting in the hardware which can accomplish this. For more flexibility, there is generally a control sequence (and ESC (char (27)) and then another character) used to switch modes. These can be sent to the printer with the ??? command.
>
>DM printers are always set for text, it's the responsibility of the software to send an escape sequence to initiate graphic mode for the commands that follow. Now these commands may be very long, and if anything is incorrect, the printer will return to its default text mode. The possible errors may include (as Sergey pointed out) someone switching it off because of the paper jam, cable error, or even the spooler eating few bytes off the beginning of the spooled job. And this is not just dot matrix specific, it's all the printers - you can get this sort of GIGO stack (garbage in, garbage out) in laser and bubble jet as well. I've seen a lot of sheets of paper with just a @ printed on them, in Courrier 10, normal, black.
>As for a sure fire way to make the labels text mode, aside from printing using single, double and/or triple question marks, if there's a version of FPD, it's very simple to create a label there, save it and run directly from VFP (no editing, therefore no conversion, use it as it is saved in DOS version). VFP will gladly run it, and there would be no problems with VFP's rendering a proportional-font-style .frx into a text only printout; this would be text-only all the way.

I like this idea. Unfortunately, all legacy reports were created using R&R report writer, so we still have to design them in DOS. But it's clearly a good and simple solution for this annoying problem. In the meantime my manager set to use Generic/Text Only printer, he also prints to file, but unfortunately, these files are not exacly right. Not enough spaces are inserted, where they should be inserted. I remember I spent days trying to make ASCII option produce a normal looking file and finally gave up and created these reports programmatically, This is what I suggested him for now. But DOS idea may be simpler to implement, so thanks again.
>
>BTW, I've seen such a Mannesmann printer, it was standing on a steel table, and as it printed, the table was swaying an inch left and right. Some people said they saw the building move as well. It would print a box full of A3 paper (2000 sheets) in about four hours. The same goes for the equivalent Epson. The reason for existence of such printers are not only companies which have to print out thousands of bills each month, but also relatively small companies where the accountants want to have detailed history of each item on stock when the year is closed. When our local dairy factory wanted to print that (and imagine just yogurt being sent to about 200 places a day), we listened to the new big Epson whole day.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform