EMS logo

Products Navigation

Advanced Data Export .NET

Our Partnership Status

Microsoft Certified Partner
Oracle Certified Partner
Embarcadero Technology Partner

Advanced Data Export .NET

On-line Documentation

QExportHTML.UsingCSS


 

public enum UsingCSS

{

     usExternal,

     usInternal

}

 

public SqlManager.QExport.HTML.UsingCSS UsingCSS {get; set;}

 

Description

The UsingCSS property sets the position of the style table (inside or outside the HTML file). With the usInternal setting the table is placed directly in the HTML file that can look, for example, as follows (Template = htClassic):

 

<Style type="text/css">

BODY  background: #333399; color: #FFFFFF; font-family: Arial;

A:link  color: #69EF7D

A:visited  color: #FF00FF

A:active  color: #00FF00

.ThRows  background-color: #FF0000; color: #FFFFFF; font-weight: bold; text-align: center

.TrRows  background-color: #007AEC; color: #FFFFFF

.TrOdd  background-color: #006BCE; color: #FFFFFF

</Style>

 

If UsingCSS is usExternal, the text above will be placed in the file specified by the CSSFileName property, and in the HTML file itself there will be only one line

 

<link rel="stylesheet" type="text/css" href="Animals.css">

 

The use of the usExternal setting can be very helpful in case you create several HTML files; then to change, for example, the background color of the even table rows in all the created files it is enough to correct only one setting of the style file (in this example it is Animals.css).

More on the use of style tables in HTML documents see

http://www.w3.org/TR/html4/present/styles.html.

 

 

See also:

QExportHTML

QExportHTML Properties

QExportHTML Methods

QExportHTML Events