Configuration of Reports in Text and HTML Formats

You must configure the cgi-binaddhtml.txt file to properly display reports in text or HTML formats. By modifying this file, you can change how reports in text or HTML format are displayed in Lawson Portal.

All settings applied in the addhtml.txt file are global. They will affect the appearance of all reports that result from running the IOS webrpt.exe CGI program.

Example: addhtml.txt

# This file is used to return starting and 
			#ending HTML to a calling program based on the 
			#featureName passed in and the search string that is 
			#in the table.
			#######################################################
			# LaVersion = 8-)@(#)@9.0.0.3.169 2007-02-26 22:00:00
			#######################################################
			
			# the format of an entry is:
			# featureName, searchString, startHTML, endHTML
			#       
			#   featureName = Name of feature program uses.#Can be any 
			#string as long as calling program defines it the same way.
			#  searchString = String that is matched with HTTP_USER_AGENT.
			#                 Will match on partial search strings 
			                  - see commented examples
			#                 ###ALL### - Special searchString that will 
			#                             always match.
			#                 startHTML   = starting HTML
			#                 endHTML     = ending HTML
			
			# As of this release "webrpt font" and "webrpt pagelimit"are 
			#the only supported feature names.  "webrpt pagelimit" is not 
			#used to get starting and ending HTML, but rather to get the 
			#user selected number of pages that webrpt (Standard Reports)
			#should display at one time (for breaking up large reports.
			# If the feature name is not implemented in the Logan engine 
			#the line will be ignored.
			
			# Be carefull with the order of the entries used since the first
			#match found is the one that will be used.  An example is one 
			#entry that uses a search string with the browser name and one 
			#uses the OS name.
			
			"webrpt font","IBM Network Station","<FONT SIZE=2>","</FONT>"
			#"webrpt font","Mozilla/4.06 [en] (Win95; I)","<FONT SIZE=7>",
			#     "</FONT>"
			#"webrpt font","Mozilla/4.5","<FONT SIZE=3>","</FONT>"
			#"webrpt font","Mozilla","<FONT SIZE=7>","</FONT>"
			#"webrpt font","###ALL###","<FONT SIZE=5>","</FONT>"
			#"other font","Other Network Station","<FONT SIZE=6>","</FONT>"
			#"all browser feature", "###ALL###", "<FONT SIZE=7>","</FONT>"
			"webrpt pagelimit","###ALL###","40","40"			
			

The following are some of the attributes that can be modified in the addhtml.txt file:

Webrpt Pagelimit

When you modify the Webrpt Pagelimit attribute, a menu appears at the bottom of the report. This menu allows you to search the report by page number. The report also contains the number of pages you specified to be displayed at a time.

Example: Displaying 40 Pages at a Time

"webrpt pagelimit","###ALL###","40","40" 

Some releases might not include the report menu. If you do not have the report menu but would like to view the full report, you can increase the value of the Webrpt Pagelimit attribute to allow for the maximum number of pages you would like to be displayed at a time. However, this might increase the processing time and the amount of resources used by the server.

Webrpt Font

This attribute allows you to change the appearance of reports so that it matches the web site or the user's preferences. This attribute allows you to add HTML tags to the HTML file that webrpt.exe uses to generate the report.

Example: Adding a Prefix and Suffix to the HTML Code

"webrpt font","###ALL###","<BODY BGCOLOR=90AFC0>
			<STRONG><FONT SIZE=3 COLOR=WHITE>","</FONT></STRONG>"

In the example, the third comma-separated parameter is to be added by webrpt.exe as prefix to the HTML code, while the fourth comma-separated parameter is to be added by webrpt.exe as suffix to the HTML code.

What is webrpt.exe?

Webrpt.exe is the CGI program responsible for displaying reports in text and PDF formats and for printing reports. When printing directly from Adobe Acrobat reader, webrpt.exe is not used.