CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 HTML in Grid not using the format

Print topic Send  topic

Author Message
BobLaGatta

Posts: 3
Posted: 09/01/2005, 6:48 PM

I have a grid with a memo field that is set to display at HTML. The database field has the formatting and looks fine in any HTML editor. I am not sure why the characters are not showing up as a formatted display.

The Formatting in HTML is as follows:
<p><font size="7"><strong><em> The Ezekiel Project</em></strong></font><br/>
                     <a href="http://www.projectezekiel.net">www.projectezekiel.net</a></p>

The text and size are normal.

Any thoughts about the reason it is not displaying as HTML formatted.
View profile  Send private message
DonB
Posted: 09/01/2005, 8:08 PM

Probably because it's being formatted by a CSS class, which overrides the
embedded HTML directives. Try removing 'class="something"' directives

Or, better still, define a class to implement the formatting you want.

1. Add the style to the <HEAD> of the page (or just put in in Style.css)
2. Apply the style to the text

An example:

<HEAD>
<STYLE>
p.mystyle {font-size: 18pt; font-weight: bold; font-style: italic;
padding-left: 10px;}
a.mystyle {padding-left: 200px;}
</STYLE>
<BODY>
<p class="mystyle">The Ezekiel Project<br/>
<a href="http://www.projectezekiel.net">www.projectezekiel.net</a></p>
</BODY>

I eliminated the non-breaking spaces through the use of padding. You will
surely need to fine tune the 'pt' and 'px' sizes to get them exactly like
you want.

[editorial comment: using spaces to position things is a terrible idea
because it's browser/font dependent.]

--
DonB

http://www.gotodon.com/ccbth


"BobLaGatta" <BobLaGatta@forum.codecharge> wrote in message
news:54317af5e3641e@news.codecharge.com...
> I have a grid with a memo field that is set to display at HTML. The
database
> field has the formatting and looks fine in any HTML editor. I am not sure
why
> the characters are not showing up as a formatted display.
>
> The Formatting in HTML is as follows:
> <p><font size="7"><strong><em> The Ezekiel
> Project</em></strong></font><br/>
>
            &nbs
p;       
> <a href="http://www.projectezekiel.net">www.projectezekiel.net</a></p>
>
> The text and size are normal.
>
> Any thoughts about the reason it is not displaying as HTML formatted.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

BobLaGatta

Posts: 3
Posted: 09/04/2005, 1:02 PM

That was the problem. There were some embedded HTML formats in the code. Thanks for the help.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.