RE: [Arsperl-users] Long Line of Data
Brought to you by:
jeffmurphy
|
From: Lintner, M. <mit...@ci...> - 2006-01-26 16:09:13
|
Thanks Mark,
=20
Your subroutine works perfect!
=20
Regards,
=20
Mitch
=20
Mitch Lintner=20
Analyst/Programmer=20
Remedy Developer=20
Cingular Wireless=20
1125 E Campbell Rd=20
Richardson, Texas, 75081=20
972-907-6965=20
mit...@sw...=20
=20
________________________________
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Mark Vaughan
Sent: Wednesday, January 25, 2006 5:10 PM
To: ars...@ar...
Subject: RE: [Arsperl-users] Long Line of Data
Mitch,
Try passing the string to this routine:
sub convertToHTML {
=20
my( @string ) =3D @_;
=20
foreach( @string ) {
if( defined( $_ )) {
s/&/&/g;
s/</</g;
s/>/>/g;
s/"/"/g;
s/ / /g;
s/ / /g;
s/ / /g;
s/(?:\x0d\x0a|\n)/<br>/g;
}
else {
$_ =3D '<font color=3Dred><none></font>';
}
}
=20
if( wantarray() ) {
return( @string );
}
return( $string[0] );
}
=20
HTH,
Mark
=20
Mark Vaughan
Programmer III
Direct: +1 303 802 2426
Mobile: +1 303 601 4434
Fax: +1 303 802 1420
mar...@ev... <mailto:mar...@ev...>=20
Evolving Systems, Inc.=20
9777 Pyramid Court, Suite 100, Englewood, CO USA 80112
www.evolving.com
________________________________
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Lintner, Mitchell
Sent: Wednesday, January 25, 2006 4:01 PM
To: ars...@ar...
Subject: RE: [Arsperl-users] Long Line of Data
=20
Yeah, you hit the nail on the head. This is an old script that I wrote a
long time ago. I am using <pre></pre>. It appears to be the only way I
can keep the formatting that is in the Character field but when someone
types a long line it goes off the screen or get cut off when sent to the
printer.
=20
=20
=20
Mitch Lintner=20
Analyst/Programmer=20
Remedy Developer=20
Cingular Wireless=20
1125 E Campbell Rd=20
Richardson, Texas, 75081=20
972-907-6965=20
mit...@sw...=20
=20
=20
________________________________
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Mark Vaughan
Sent: Wednesday, January 25, 2006 4:45 PM
To: ars...@ar...
Subject: RE: [Arsperl-users] Long Line of Data
Mitch,
It sounds like the browser doesn't want to auto word wrap. Does it data
look okay on the screen? If not, check for <pre> and </pre> around the
text. These tags tell the browser the text is already formatted so
don't do anything with it. There may be other tags which would create
the same problem. You could try forcing the width of the screen using a
table with a specified width.
=20
HTH,
Mark
=20
Mark Vaughan
Programmer III
Direct: +1 303 802 2426
Mobile: +1 303 601 4434
Fax: +1 303 802 1420
mar...@ev... <mailto:mar...@ev...>=20
Evolving Systems, Inc.=20
9777 Pyramid Court, Suite 100, Englewood, CO USA 80112
www.evolving.com
________________________________
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Lintner, Mitchell
Sent: Wednesday, January 25, 2006 3:32 PM
To: ARSPerl
Subject: [Arsperl-users] Long Line of Data
=20
I have an ARSPerl script that pulls data from a form and displays it in
an HTML window where it can then be sent to a printer using the Browser
print capability. I have one problem. When the script pulls the
Description field from the record and displays it, it gets displayed as
a very long line. Is there a way to take this value and display it in a
reasonable line length?
Thanks,=20
Mitch Lintner=20
Analyst/Programmer=20
Remedy Developer=20
Cingular Wireless=20
1125 E Campbell Rd=20
Richardson, Texas, 75081=20
972-907-6965=20
mit...@sw...=20
This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this e-mail and you are not a named
addressee, please inform Evolving Systems TIS at ti...@ev... and
then delete the e-mail from your system. If you are not a named
addressee you must not use, disclose, distribute, copy, print or rely on
this e-mail. To ensure regulatory compliance and for the protection of
our clients and business, Evolving Systems may monitor and read e-mails
sent to and from its servers. Although Evolving Systems routinely
screens for viruses, addressees should scan this e-mail and any
attachments for viruses. Evolving Systems makes no representation or
warranty as to the absence of viruses in this e-mail or any attachments.
Registered Office: 9777 Pyramid Ct Suite 100, Englewood, CO 80112=20
This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this e-mail and you are not a named
addressee, please inform Evolving Systems TIS at ti...@ev... and
then delete the e-mail from your system. If you are not a named
addressee you must not use, disclose, distribute, copy, print or rely on
this e-mail. To ensure regulatory compliance and for the protection of
our clients and business, Evolving Systems may monitor and read e-mails
sent to and from its servers. Although Evolving Systems routinely
screens for viruses, addressees should scan this e-mail and any
attachments for viruses. Evolving Systems makes no representation or
warranty as to the absence of viruses in this e-mail or any attachments.
Registered Office: 9777 Pyramid Ct Suite 100, Englewood, CO 80112=20
|