Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dot Matrix Reports - advice please!
Message
From
22/06/1999 10:07:36
 
 
To
20/06/1999 07:39:24
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00231883
Message ID:
00232470
Views:
11
>Any advice regarding the following printing issues would be greatly appreciated.
>
>We have a large number of reports to be converted from a legacy application to Visual Foxpro. These reports are all printed using dot-matrix printers on multipart pre-printed stationery at 10cpi and 6 lines/inch. As there is a large number of different model printers out in the field it is not practicable for use to use a specific printer driver for these reports.
>
>We have installed the Generic\text only printer driver on our development system and set it to be the Windows default printer. We have set the vertical grid spacing in the report to 8 designer so that we see 6 grid lines per inch.
>
>We are have the following problems:
>
>1. With this printer driver only 2 fonts are available, modern & Roman 10cpi. If we choose Roman10cpi, Windows substitutes a proportional font for the screen display. Is there any way to force windows to substitute a more sensible non-proportional font?
>I have checked the HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\SHARED TOOLS\FONT MAPPING registry entries
>
>The entries are as follows:
>Name Data
>
>Courier 10cpi "Roman 10cpi"
>Roman 10cpi "Courier 10cpi"
>
>Does this make sense?
>
>2. When printing to an Epson RX\100
>here at our office some fields will print on a new line for no apparent reason. Eg. we have the 2 fields of identical size the same horizontal position but different vertical positions in the header band of a report. The first field prints ok but the second field prints at column 1 on a new line. Other fields will also print in the wrong position for no discernible reason, even though they are displayed in correctly via "preview" at run time.
>
>All help & suggestions will be greatly appreciated,
>
>TIA
>
>Andy


Regarding...

1. Looks like you are stuck with this unless you try and use foxfont that comes with foxpro.

2. This I know from personal experience. You can only get vertical accuracy with TrueType Fonts. If you use the printer fonts installed with your printer, you HAVE to make sure the rows line up as these print in "character" mode ie. 66 to 72 lines or so per page. So if a line does not fit on this invisible row then it drops to the next usually screwing up the lines that follow. Also sometimes line 2 or 3 etc on the report will print after line 4 or 5 or 6 etc. Once this happens, I have found that the report is usually totally screwed and I have to create a new one and copy the fields across.

The best way is to use these printer fonts and after the report is saved, open it as a table - use myreport.frx
Browse and edit the "Expr" memo field deleting EVERYTHING but the Orientation (0 = Portrait, 1 = Landscape). Also Delete ALL of "Tag" and Tag2" memo fields. Now close the table to save it.

You may need to set the page size, fonts, tearoff etc. in the printer. See it's manual.

Hope this helps.

Bernard
Previous
Reply
Map
View

Click here to load this message in the networking platform