Html content in reports
Hi everybody,
I used HTML DB successfuly to develop two web applications for my customers, I found it a great web application development framework!!!
Now I am working on a sample application TAHA Weblog that I would like to submit to HTMLDB Studio.
I have one small question:
In region "Recent Weblog Entries" on page 1, I build the weblog entry using Report Attributes \ [LOG_TITLE] \ Column Formatting \ HTML Expression.
If column #LOG_TITLE# and/or #LOG_BODY# contains HTML tags (and they should), the HTML tags will be removed by HTMLDB.
I found a workaround (or two) however:
1. build the weblog entry completely in my sql query
2. use htp.p
My question is: is it possible to tell HTMLDB not to remove HTML tags when using Report Attributes \ [COLUMN_NAME] \ Column Formatting \ HTML Expression ? If yes, how?
For people that can not wait until TAHA Weblog is released, just send me an Email and I will send you back a zip file to deploy the current version on your servers.
Thank you,
Omar Irbouh
[email protected]
Omar,
There's currently no way to prevent the HTML tags from being removed. Please take a look at my response to the following posting for more information:
Re: selected image is not displaying
In your scenario I would suggest using your first work-around, write the SQL statement so that it returns the results you want to display.
Regards,
Marc
Similar Messages
-
Hi,
I have a lot of HTML formatted text stored in a blob field.
The HTML code has some <b>a href</b> tags (something like this: a href = "53127" or a href = "53127_1" or a href = "53127_2" ...).
I created a appIication using APEX (10gXE) and I can display the HTML content in my report but the links do not work.
I need something like this:
http://127.0.0.1:8080/apex/f?p=103:4:SESSION_ID::NO:RP,:P4_CODACT:53127
instead of:
http://127.0.0.1:8080/apex/53127
I am tryng to migrate a web application created in Java using servlets. In Java the solution was the use of regular expressions to convert the stored <b>a href</b> tag to a valid url.
Here is my Java code:
-- some code
s=processHtmlTags(s,
"<a href = \"([0-9_].*?)\">",
"<a href=\"" + dm.response.encodeURL("ResultDetail") + "?codact=",
"\">");-- rest of servlet
-- the processHtmlTags definition
public String processHtmlTags(String INPUT, String REGEX, String strHead, String strTail) {
int cnt=0;
String strOutput;
Pattern pattern;
Vector group0 = new Vector(5);
Vector group1 = new Vector(5);
try {
pattern = java.util.regex.Pattern.compile(REGEX);
matcher = pattern.matcher(INPUT);
catch(java.util.regex.PatternSyntaxException pse) {
while (matcher.find()) {
group0.addElement(matcher.group(0));
group1.addElement(matcher.group(1));
cnt++;
strOutput=INPUT;
for(int i=0; i<group0.size(); i++) {
String s0=(String)group0.elementAt(i);
String s1=(String)group1.elementAt(i);
strOutput=strOutput.replaceAll(s0,strHead+strAnchor(s1)+strTail);
return strOutput;
}The question is can I do the same thing using APEX?
Thanks,
Catalin Florean.Use the REGEXP_REPLACE function available in 10g.
That also implies switching from an HTML region to a PL/SQL region. -
SSRS 2008 R2 report does not print the page header for a html content displaying on multiple pages
Hi
I need to display the html content from the database. The html content are quite long and can have content of 3-5 pages. Issue I am facing is f the record has html content of 3-5 pages, then it does not print the page header (which is a separate tablix) on
second page onwards.
Nikesh Shah
Nikesh ShahHi Nikesh,
According to your description, I’m not sure the meaning of Page header in your scenario. In Reporting Services, a page header that run along the top of each page, respectively. Headers can contain static text, images, lines, rectangles, borders, background
color, background images, and expressions. But we couldn’t add tablix in the page header.
If you are saying report header, a report header consists of the report items that are placed at the top of the report body on the report design surface. They appear only once as the first content in the report. So it cannot repeat in other pages.
If you are saying tablix header, freezing column headers are different in table and matrix. For more details, please refer to the following thread:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/c8ddc1af-1bdf-4e72-8aab-0353c7cc848a/ssrs-report-freezing-row-and-column-while-scrolling-issue?forum=sqlreportingservices
If there are any misunderstanding, please elaborate the issue for further investigation.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
SSRS 2008 R2 report prints empty spaces for html content till end of page
Hi
I need to display records containing long html content say each record of different size ranging from 5 lines to 3-5 pages.
Issue observed is:
When a record complete is printing say half the page and subsequent record is bigger then half a page, the subsequent record is printed on the next page rather than continue immediately after the previous record is completed.
Is their any property or any other solution to resolve the issue. Print on next page is not set.
Nikesh ShahHi Nikesh,
As per my understanding, I think the issue is caused by the blank space in the report body. In order to get rid of the blank space when print the report, please refer to the following steps:
Click on Report > Report Properties > Layout tab
Make a note of the values for Page width, Left margin, Right margin
Close and go back to the design surface
In the Properties window, select Body
Click the + symbol to expand the Size node
Make a note of the value for Width
Please check the Page Break settings on all your report items and make sure the Body Width + Left margin + Right margin less than or equal to Page width, just like the equalities below:
(Body Width + Left margin + Right margin) <= (Page width)
If there are any other questions, please feel free to ask.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Display word/pdf document in the HTML region or report
Hi,
How to display blob content stored in a table in HTML region or report region.
I already have a process to display the image content.
But my question here is how to display word/pdf document within the html region so that the user can read the document without downloading it.
Any suggestions/solutions would be of great help.
Thanks in advance...
Thanks,
Ramesh P.I was dead wrong.
The display of images from BLOB is a special case because APEX provides a Display Image item type.
Moreover, HTP/HTF packages also do not provide for handling of BLOB content. So AJAX cannot be used.
Which implies that the only way to get binary content, other than images, is with the use of a WPG_DOCLOAD.DOWNLOAD_FILE call.
This in turn implies that it may not be feasible to "inject" the BLOB into an exist HTML DOM in the Browser.
Regards, -
Writing Html Content into PDF using JSP
Dear All,
I am using JSP to generate Employee payslip dynamically. Presently i am diplaying payslip as on-screen display.
Here i want to give option "Save as PDF". I am able to create PDF file using IText Libraries. i want to integrate HTML code into the PDF file.
Writing HTML Content (using HTML Tags) into PDF.Well it is a difficult ask and i believe we are trying to re-invent the wheel
Just to make my life simple i could have choosen either sample API given below to serve my cause
1).[http://xmlgraphics.apache.org/fop/] (Apache FOP one can simply write an XSL template of their and then substitute the values from respective DTO's by using XSL - XML transformations and can generate content in different formats which includes PDF aswell)
2).[http://jasperforge.org/plugins/project/project_home.php?group_id=102] (Just design a simple report template using iReport and create a jrxml files and write a small code snipett such that you can pass few details at the runtime and can export the report in different formats which includes PDF aswell)
3).[http://www.object-refinery.com/jfreereport/] (Is much similar to what jasper offers in order to compile these you can either use pentaho product IDE or BEA/Oracle Actuate report tools)
You can simply try searching for different examples for getting more help on using the respective API's
Hope that helps :)
REGARDS,
RaHuL -
in mozila 3.6 or higher version as i install Browser Highlighter addone then in my site when i edit any html content in fck editor or in tiny mce editor then it add a script name gwproxy its happend with 3.6 or higher version thanks
== This happened ==
Every time Firefox opened
== i upgrqde mozilla to 3.6.3 version and i check it with on another computersHi Deepak!
This seems to be a well-known and quite widespread problem with this extension, unfortunately - the net is full of complaints about this issue, not to mention 'horror stories' about how this (otherwise fairly innocent and well-certified but clearly highly commercial) extension has 'sneaked' its way into peoples installations.
I find it quite amazing that such an issue has existed for so long without the Browser Highlighter, TinyMCE and FCKeditor teams getting together and making a working fix - it should be rather easy to prevent with a tag or plugin check in editor code and/or a simple editor recognition routine in the extension.
If you want (/need) to use this extension, I can only point you to the Browser Highlighter homepage for support; in [http://thebrowserhighlighter.com/help.jsp The Browser Highlighter Help section] it is clearly documented - first section, last paragraph - along with a link to [http://thebrowserhighlighter.com/blacklist.jsp this problem report form] where it seems you can ask for help solving the problem.
However, given the (script-)name of the page, I suppose that reporting a problem on your own website (with all details) actually adds your site - or part of it - to a blacklist that TBH maintains to turn off TBH or at least problematic script injections when visiting sites registered in this list. So actually this might help you solve the problem quite easily, if they do what the page implies.
Please let us know how above works out, and if we can be of further assistance. Detailed feedback is appreciated and helps us to help you better, plus enables us to better help more users with similar problems. -
How to render a html content in a text field?
Hi! Is it possible to render a html content(like <strong>< b >This text is bold </strong></b>) in a Text field with Crystal Report for Eclipse Basic . In .Net there were a field called Text Interpretation where you could choose HTML. But in Eclipse I can't find it. Thanks in Advance, Jeff
I don't think the Text object supports the Text Interpretation feature. I think this is limited to specific type of objects like database, formula and parameter fields. I checked the full product CR designer and it too does not support this feature for Text objects.
As a workaround, you could use a Formula field to specify the HTML data and format the formula field for HTML interpretation.
-MJ -
Post BLOB image in an html content
I have a HTML content which will go as a body of the email to be sent to various users.
Now in the email, somewhere there is a tag
<img src="[IMG]"/>
We need to replace the [IMG] with the image link store in the database column, so that the email receiver can see the image there.
Any help
Thanks
DebHi Tony
I am using something like this
<img src="WRT.DISPLAY_TEMPLATE_IMAGE?inid=189" width="100%" border="0" >
where DISPLAY_TEMPLATE_IMAGE is a procedure with the following code
create or replace
PROCEDURE display_template_image (inid NUMBER)
AS
vmime VARCHAR2 (48);
vlength NUMBER;
vfilename VARCHAR2 (2000);
vblob BLOB;
BEGIN
SELECT ctl_image_mime_type
, ctl_image
, ctl_image_filename
, DBMS_LOB.getlength (ctl_image)
INTO vmime
, vblob
, vfilename
, vlength
FROM contact_templates
WHERE ctl_id = inid;
OWA_UTIL.mime_header (NVL (vmime, 'application/octet'), FALSE);
HTP.p ('Content-length: ' || vlength);
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (vblob);
END;
The above procedure works fine when I use it in a IR report query. but not in a HTML script.
Thanks
Debraj -
Setting charset in HTML generated by Reports 6i
How can I define charset in html generated by Reports 6i.
I need windows-1250 charset.
Adding the following line in Before Report Value does not help.
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
Note:
If I open that generated file directly from cache
file://localhost/C:/orant/REPORT60/server/CACHE/34446121.htm
it works???!This sounds very odd - if you view the source of the HTML when it's returned to the browser is the charset tag set correctly?
There shouldn't be any difference between having the file streamed back and opening it directly (which you state works correctly).
Danny -
Hi,
I am using CR4E Ver 2.0.11.r1346.
I am producing HTML drill down report. My code for the same looks like..
CrystalReportViewer crystalReportViewer = new CrystalReportViewer();
crystalReportViewer.setOwnPage(false);
crystalReportViewer.setPrintMode(CrPrintMode.ACTIVEX);
crystalReportViewer.setReportSource(reportClientDocument.getReportSource());
HttpServletRequest request = (HttpServletRequest) parameters.get("httpServletRequest");
HttpServletResponse response = (HttpServletResponse) parameters.get("httpServletResponse");
String htmlContent = crystalReportViewer.getHtmlContent(request, response, request.getSession().getServletContext());
output.setContent(htmlContent.getBytes());
For some reasons, I can not use
crystalReportViewer.processHttpRequest
My code generates the HTML report as expected but the drill down reports do NOT work. I tried to inspect and got that the HTML generated by
getHtmlContent
does not have the script tag
event.js
. I added this script manually in generated content and tried to debug through, but it does not work.
Any clues?Thanks.
I tried using
processHttpRequest
This generates the same report but Drill down does NOT work.
The code in my action class is...
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setOwnPage(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);
//Get the report source object that this viewer will be displaying.
IReportSource reportSource = (IReportSource)(httpServletRequest.getAttribute("ReportSource"));
if (null != reportSource && servletContext != null) {
viewer.setReportSource(reportSource);
//Render the report.
viewer.processHttpRequest(httpServletRequest, httpServletResponse,
servletContext,
null);
Any clue? -
Displaying a static html content on new pages
Hello,
I am a newbie on APEX. Sorry if the question is stupid and/or the answer straight forward.
I am trying to build APEX prototype with some pages displaying static HTML content stored in BLOB columns of a table.
What kind of page/region/item should i use to display? On which object do i put the select query that will return the HTML content?
Thanks in advance,
DanielHello,
For static content you may use a html-region.
But I think you want dynamic content (selecting it form a table). Then you should use a report region with sql.
Please look in the packaged application Opend discussion Forum to see examples.
Hope this helps.
Leo -
Urgent help -- Printing HTML Content to printer from servlet
I am wanting know if there is a way to Print Reports from servlet.I have some idea about JPS API but it shows some errors on printer services. Pls help me, if any onme having sample code mail to me [email protected]
I want to print a html content to printer.Use the JavaScript window.print() function to print out the current window. However used the HTML LINK tag it can print out a report generated by a servlet without displaying the contents of the report in the browser window.
-
Content Tracker Reports Query file modification issue - Custom Report
Hi All,
I was trying to generate a custom report using Content Tracker. I was successful in doing so. However, I found that sometimes it does not pick up the updated query file of Content Tracker reports.
I made a change in my query:
from SELECT * FROM Users to
SELECT dname FROM Users
the change is written on the file but when i generated the report from C.T. UI, it's still showing me the old results having all the columns. Tried bouncing the server as well, but no use.
I also added a new query 24 hrs back (as SELECT count(*) As UsersNum FROM Users), it's still not recognizing it and giving error as Failure of server APACHE bridge: No backend server available for
connection: timed out after 10 seconds or idempotent set to OFF;
and the log says,
Unable to execute service SCT_GET_DOCUMENT_INFO_ADMIN and function sctExecuteQuery.
Unable to create the result set for query '(null)'. SQL statement to execute cannot be empty or null
What could be the resolution of this issue?
I am using UCM 11g + SSXA.Server bounce.
Issue is not file update but some other issue, ongoing in another thread by Me. -
How to display HTML chars in report
I have a field in database with following data.
<p>This is data</p>
I have added a textbox in report in which I am displaying this column and it is displayed as it is. But I want to show it as HTML. So for that I created a function that decodes special chars and convert them into HTML.
But after applying HTML decoding, now it is showing as:
<p>This is data</p>
As you can see now it is directly showing "<p>" tag instead of actually applying it. How do I fix this issue?That's strange, it should indeed not display the <p> tags. Do any other supported tags work? Try replacing p with b and check if the text is rendered in bold...
List of supported tags: Importing HTML into a Report (Report Builder and SSRS)
If that didn't help, have a look at the Properties pane with the placeholder selected. The Properties
dropdown will display "Selected Text", this way you can tell if you've got the placeholder selected (and not the whole textbox). Now locate the MarkupType property. It should be set to HTML.
SQL Server MVP, MCITP/MCTS SQL Server 2008 <br/> Check out my articles at <a href="http://blog.hoegaerden.be">BI: Beer Intelligence?</a>
Maybe you are looking for
-
Calling custom BAPI from VB/VBA
Hello, all, I have written a custom business object and its associated function module. I can single-test the business object inside native SAP, and it works successfully. I can also establish a handle to the business object from VBA (using the .Ge
-
Issue with Master data change workflow in GRC PC 10.1
Hi, I have configured the work flow for master data changes in GRC PC 10.1, however approver is not able to view the request in inbox where are the organization owner is able to see the review for change request in inbox. Please let me know if there
-
With Microsoft IIS7 supporting PHP. Will Adobe be looking to support PHP to MSSQL connection and application building via Dreamwaever and ADDT, as currently you can only make a PHP - MYSQL Connection and build the application that way. What would be
-
Dear all, What is the different b/w Dataware house and BW Thanks V>G>VG
-
I have Oracle Database 11g installed. I configured the database with RCU. I was able to install Weblogic and the Identity Management components (OID and OVD). I was able to connect and configure OID, add users, etc. Cool. I restarted the system, and