Just a WAG, but I wonder if you assigned those long strings of text to
private variables in the calling program, then use variable field boxes
on the report instead of text labels. The boxes allow the use of
"Stretch with overflow" while labels don't.
Mike
-------- Original Message --------
Subject: Interesting Difference in Report Preview Display in Windows 7
From: Ken Dibble <[email protected]>
To: [email protected]
Date: 1/31/2013 2:14 PM
I know there are various graphical issues/artifacts with VFP on
Windows 7. I'm not sure if this one has ever been reported.
I have a multi-page report that duplicates a mandated form that one of
our departments have to use. The form was designed in Word by
bureaucrats and I am required to ensure that my version matches it
exactly. It's an insane form, lots of strangely-positioned pieces of
text, boxes and lines. Point being I am not allowed to alter its
appearance to solve my problems.
My report for this form consists of a lot of lines of text, some
images, and some fields. The data comes from a denormalized cursor
that has one row per page. The controls are all stuffed into the
report's detail band, with Print When expressions controlling which
page they appear on. There are no report groups or multiple columns.
Just one detail band per page, that crosses the entire page.
I initially used a single text label for each line of static text. I
use the VFP 9 report engine for all previews to prevent a C5 crash
issue with the old-style preview window. However, I discovered that
when previewing the report on Windows 2000 or XP, some long text
labels wouldn't appear completely.
I use the old-style VFP report engine to print these reports, and the
problem also occurred when printing.
For example, a label that contained:
"Here is a pretty long line of magnificently positioned text for you
to see."
would appear as:
""Here is a pretty long line of magnificently"
So I broke up long labels into two or more separate labels. In some
cases for a long line of text I would need three separate labels, with
one containing only a single word, in order to get them all to appear
when previewed or printed. I positioned these labels with some space
between them in order to provide the appropriate spaces between words.
However, I have found that when these reports are previewed in Windows
7--same report, still using the VFP 9 preview engine--the words in the
separate labels are jammed up against each other (I haven't tested
with printing yet).
For example, if I have three labels like so:
"Here is a pretty long line of magnificently" "positioned" "text for
you to see."
This looks right when previewed on Win 2000 or Win XP. But on Win 7,
it looks like:
Here is a pretty long line of magnificentlypositionedtext for you to
see."
There are also size issues for image controls. I have a grey BMP "bar"
image that I use as background for some subheader rows in the report.
They are properly sized on Windows XP, but are about 1/8 inch too long
when previewed on Windows 7.
I tried dropping a Win XP copy of gdiplus.dll into the program's
working directory on Win 7, but that had no effect.
These anomalies also occur if I generate a Word document from the
report and view it in Word 2010.
I'm not asking for help here; I'm just creating yet another version of
the report to cope with this. But I think it's strange.
Ken Dibble
www.stic-cil.org
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.