Creating new text frames

<< Click to Display Table of Contents >>

dpPower > Appendix > Configuration options > Tomcat site >

Creating new text frames

A text box consists of an html file and is used for free plotting. It is located in the "textframe" folder in the tomcat-site\textframe directory on the Tomcat server. The "tomcat-site" folder is parallel to the current tomcat folder. Text boxes contain information corresponding to a drawing header, for example information about the current project, revision and date as well as the company logo.

Variables

The characters "@" (proboscis-a) and "_" (underscore) can be used as variables, which are automatically printed in the text box.

@_scale_@ = prints the current scale.

@_product_@ = prints the current map product, for example "Cable map urban area".

@_appName_@ = prints the current application, for example "dpCom - Demo".

The "%" (percent) character means that the text string is user editable, as in "%Text 1%", where the text string "Text 1" in the text box is editable by the user after it is placed in the output.

Example of text box

Below follows an example of an htm file that describes a text box consisting of a table with rows and two columns. Note that the files may only contain pure html, without extra texts.

The top left cell has tags pointing to a jpg image in the "images" folder that is two levels above the current one ("textframe"). Other cells use example variables and editable text strings described above.

<html>

<head>

<title>Ny sida 1</title>

</head>

<body>

<table border="1" width="100" bgcolor="#FFFFFF">

 <tr>

   <td width="100" height="38" valign="top"><font size="1"><img border="0"

src="..\..\images\logo.jpg" width="154" height="62"></font></td>

   <td width="100" valign="top"><font size="1">Date: %Date%</td>

 </tr>

 <tr>

   <td height="38" valign="top"><font size="1">Project: %Project% <BR> Revision: %Revision% <BR> Sign: %Signature%</td>

   <td valign="top"><font size="1">Scale: @_scale_@</td>

 </tr>

</table>

 

</body>

 

</html>