[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
RE: [sqr-users] wrap - bold in middle
It depends on what's in the paragraph. If the paragraph has a large
section of bold print, then I print the first part of the paragraph with
it's wrap parameters, print the section that contains the bold with
appropriate wrap parameters, and print the final part of the paragraph
with the same wrap parameters as the first part. If the paragraph has
small parts of bold throughout, then I print it all with one wrap
statement, finding parameters that give me a happy medium between the
lines with no bold portions and the lines with bold portions.
It would be nice if the wrap statement was a little more sophisticated,
taking into account the font you're using along with bold, italics, etc.
Unfortunately, it's just a character counter. It's better than printing
out each line by itself though. It also makes programming easier than
printing out each line by itself. You have to sacrifice a little bit on
the looks of the form, but the programming is much more straight
forward.
Rod Wright
Senior Applications Specialist
The Rouse Company
410-992-6307
-----Original Message-----
From: Ben Anderson [mailto:pegandersonbd1@hotmail.com]
Sent: Monday, April 14, 2003 9:33 AM
To: sqr-users@sqrug.org
Subject: RE: [sqr-users] wrap - bold in middle
Rodney,
So do you print out each line separately? If I print out one long
paragraph
in the same print command, with the same wrap - some lines will contain
additional control characters and some won't. Therefore, I'd assume
that I
must have the wrap be the value of a line that contains no control
characters. So, if I have a line with control characters, it will break
halfway through the line. Do you have this problem?
Thanks
Ben
>From: "Wright, Rodney" <rwright@therousecompany.com>
>Reply-To: sqr-users@sqrug.org
>To: <sqr-users@sqrug.org>
>Subject: RE: [sqr-users] wrap - bold in middle
>Date: Mon, 14 Apr 2003 09:01:26 -0400
>
>I do a lot of bolding and wrapping on our open enrollment forms. As you
>stated, wrap counts the number of characters and wraps where you tell
it
>to. It does not know the difference between control characters and
>printing characters. You have to adjust your wrap parameters to get it
>to wrap the way you want it to.
>
>Rod Wright
>Senior Applications Specialist
>The Rouse Company
>410-992-6307
>
>
>-----Original Message-----
>From: Ben Anderson [mailto:pegandersonbd1@hotmail.com]
>Sent: Monday, April 14, 2003 8:41 AM
>To: sqr-users@sqrug.org
>Subject: [sqr-users] wrap - bold in middle
>
>Hello all,
>I want to print this:
>
>This <b>is</b> a test. (I want "is" to be bold)
>
>I tried this:
><code>
>encode '<27>(s3B' into $bold
>enocde '<27>(s0B' into $unbold
>
>let $line1 = 'This ' || $bold || 'is ' || $unbold || 'a test.'
>print $line1 (1,1,0) wrap 17 2
></code>
>
>And here's my problem. The wrap logic is counting the control
>characters
>when breaking to the next line. i.e. this statement will show up on 2
>lines
>instead of 1. Anyone know how to do this?
>
>Thanks,
>Ben Anderson
>
>_________________________________________________________________
>Protect your PC - get McAfee.com VirusScan Online
>http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>_______________________________________________
>sqr-users mailing list
>sqr-users@sqrug.org
>http://www.sqrug.org/mailman/listinfo/sqr-users
>
>_______________________________________________
>sqr-users mailing list
>sqr-users@sqrug.org
>http://www.sqrug.org/mailman/listinfo/sqr-users
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users