Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Aligning fonts Help
Message
From
24/01/2000 17:19:27
 
 
To
24/01/2000 16:51:28
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00321836
Message ID:
00321866
Views:
16
>I defined a Generic Text Printer to send straight ASCII streams on a DOT MAtrix Printer, problem is to align the columns.
>
>The report designer shows a total different layout than what I get on the actual paper print out. I tried pulling the objects one character to the right, even just one pixel to the right or left and the result does not follow these simple changes.
>
>Any guidelines to accomplish this?.

The key here is to use a monospaced font not a proportional font in designing the report. Monospaced fonts use the same amount of space per character displayed, and so what you see on-screen is much closer to what you end up with on the report.

The real solution here is to not use the native Report Writer where you don't want to use the Windows Printer capabilities. Since the row/column paradigm you need for this type of output is not reflected well in the report writer, because VFP's Report Designer is based on exploiting the Windows GDI for producing output, not producing unformatted ASCII streams you're hurting yourself needlessly. In essense you're fighting the tool because it wasn't designed to do what you'd like it to do.

Your approach is at least in part invalidating the basic concept of hardware independent printed output that lies behind Windows-based printer tools. You'll find it far less frustrating to either accept the decreased print speed of using the Windows GDI and gaining all the font and formatting capabilities the GDI offers, or deciding that you need to create row/column aligned ASCII streams that completely bypass the Windows printing logic.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform