Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem viewing rpt. through web browser

Status
Not open for further replies.

gritz

Programmer
Apr 24, 2003
14
US
I am running reports 6i, and I would like to take an existing report and view it through a web browser. When I test the report in oracle reports, it looks fine, but when I open it in a web browser, it gets squished to the left and the font appears to be much smaller. It prints like that also. Can you tell me what I need to do to correct it?
 
Hi,
For this you need to apply HTMLCSS to your report at runtime.
Following note may help you.


goal: How to apply a custom stylesheet in a report at runtime

HTMLCSS Limitations
-------------------
A report run with desformat=htmlcss cannot utilize a custom stylesheet (.css file). Reports uses an internal algorithm to apply the report template information to the htmlcss output and based upon the design-time template file
(.tdf). Of course, a template can be created that resembles the corporate style.This template would be applied automatically at runtime (when htmlcss is
selected).

HTML Approach
-------------
A customer style sheet can be applied at runtime using the following workaround for DESFORMAT=HTML output:

1) Copy the customer style sheet(.css file) to <DEVELOPER_HOME>
/tools/web60/html

2) Open the report properties sheet in the Builder

3) Click the button next to the &quot;Before Report Value&quot; under the &quot;Report Escapes&quot; section

4) modify the html as follows:

<html>
<title>This is the Emp Report</title>
<STYLE type=&quot;text/css&quot;>
<!--
@import url(-->
</STYLE>
<body dir=&Direction bgcolor=&quot;#ffffff&quot;>


PLEASE NOTE the Style sheet restrictions (from the online help):
The following elements are not supported by HTML style sheet extensions:
o ellipses, arcs, polygons/polylines, and diagonal lines
o rounded rectangles (formatted as rectangles)
o arrows on lines
o dashes on lines or borders of objects

You can use this method if you specify desformat=html in the url for the cgi because it reads and applies the before report value. You may find this method more cumbersome than creating and applying a report template file (.tdf) to your report. You can create one .tdf file and apply it to many reports,so you wouldn't have to create it for each report.

XML Approach
------------
Another solution would be to create an XML Report Definition and apply it at
runtime using the customize= parameter in the url
(for example, customize=e:\myreports\emp.xml ).

Regards
Himanshu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top