Set markup html on

Hi,
Some times I get following lines in output while generating output in 9.2 thru sqlplus
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="generator" content="SQL*Plus 9.2.0">
<style type='text/css'> body {font:10pt Arial,Helvetica,sans-serif; color:black; background:White;} p {font:10pt Arial,Helvetica,sans-serif; color:black; background:White;} table,tr,td {font:10pt Arial,Helvetica,sans-serif; color:Black; background:#f7f7e7; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;} th {font:bold 10pt Arial,Helvetica,sans-serif; color:#336699; background:#cccc99; padding:0px 0px 0px 0px;} h1 {font:16pt Arial,Helvetica,Geneva,sans-serif; color:#336699; background-color:White; border-bottom:1px solid #cccc99; margin-top:0pt; margin-bottom:0pt; padding:0px 0px 0px 0px;} h2 {font:bold 10pt Arial,Helvetica,Geneva,sans-serif; color:#336699; background-color:White; margin-top:4pt; margin-bottom:0pt;} a {font:9pt Arial,Helvetica,sans-serif; color:#663300; background:#ffffff; margin-top:0pt; margin-bottom:0pt; vertical-align:top;}</style><title>SQL*Plus Report</title>
</head>
<body>
Kindly suggest me how to insert above lines while generating SQL output which will give us above formating in html.
thanks & regards
PJP

You can write whatever HTML code you like in the TABLE clause:
SQL> SET MARKUP HTML ON TABLE 'border=1 width="50%"' ENTMAP OFF
SQL> select ename from emp where rownum=1;
<br>
<p>
<table border=1 width="50%">
<tr>
<th scope="col">
ENAME
</th>
</tr>
<tr>
<td>

Similar Messages

  • 'SET MARKUP HTML' top left alignment in SQL*Plus

    I have a SQL script which generates HTML that is then emailed as a HTML email. I am using the following SET Markup command
    SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
    HEAD "<STYLE type='text/css'> -
    table,tr,td { -
    font:10pt Arial,Helvetica,sans-serif; -
    text-align:left; -
    vertical-align:top; -
    color:black; background:white; } -
    <!-- BODY {background: white} --> -
    </STYLE>" -
    BODY "TEXT='black'" -
    TABLE "WIDTH='100%' BORDER='1'"
    Looking at the file generated it is creating the table tags OK but there is no CSS. This means the text is vertical aligned in the centre of the cell and I want it top left.
    Any ideas?
    Ben

    Welcome to OTN.
    You probably just need to get the tags with the CSS info into your document any way you can. If nobody suggests anything more elegant consider using prompt or even pl/sql dbms_output.put_line statemtns to get the CSS lines into your output - something like (untested)
    set serveroutput on
    exec dbms_output.put_line('<style type=''text/css'''); --two single quotes around "text/css"
    . . .Edited by: riedelme on Jul 7, 2010 11:02 AM

  • Unix sqlplus set markup html on

    Can anyone explain why the following does not work under solaris unix sqlplus
    SQL*Plus: Release 3.2.3.0.0 - Production on Wed Aug 13 17:43:20 2008
    Copyright (c) Oracle Corporation 1979, 1994. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    JServer Release 9.2.0.8.0 - Production
    SQL> SET MARKUP HTML ON SPOOL ON
    unknown SET option "MARKUP"
    SQL>
    Yet on windows sqlplus.....
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    JServer Release 9.2.0.8.0 - Production
    SQL> SET MARKUP HTML ON SPOOL ON
    SQL> spool today.htm
    <br>
    SQL> select sysdate from dual;
    <br>
    <p>
    <table border='1' width='90%' align='center' summary='Script output'>
    <tr>
    <th scope="col">
    SYSDATE
    </th>
    </tr>
    <tr>
    <td>
    13-AUG-2008
    </td>
    </tr>
    </table>
    <p>
    SQL> spool off;

    As Chris said, get a current version of sqlplus.This is form my solaris server:
    /home/oracle/home> sqlplus /
    SQL*Plus: Release 9.2.0.6.0 - Production on Wed Aug 13 16:10:18 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    SQL> SET MARKUP HTML ON SPOOL ON
    SQL> SELECT sysdate FROM dual;
    <br>
    <p>
    <table border='1' width='90%' align='center' summary='Script output'>
    <tr>
    <th scope="col">
    SYSDATE
    </th>
    </tr>
    <tr>
    <td>
    13-AUG-2008
    </td>
    </tr>
    </table>
    <p>

  • Image on set markup HTML ON

    Hi,
    Is there a possibility of seeking in a local directory an image that will appear in my report HTML sqlplus? (set markup HTML ON)
    Thank you :)

    SQL*Plus produces HTML output. It does not render it. A browser with a rendering engine is needed.
    SQL*Plus can produce HTML output that refers to javascript, style sheets and images. The location of these however should be accessible to the browser.
    If for example SQL*Plus produce HTML that refers to an image on my PC, my PC's browser will be able to read and render that image. If the HTML is rendered by your PC's browser, your browser will fail to render that image as the image location is invalid on your PC.

  • How to change color in html report with MARKUP HTML ON?

    While generating html reports using MARKUP HTML ON with in sqlplus, I would like to highligh the records with different colors. how can do this?

    Here is an example - it produces nice output and sets the background. It displays in red if database is in NOARCHIVELOG mode. You can go further and use CASE statements for certain conditions to display different colors, font sizes.
    set markup html on spool on entmap off -
         head '-
         <style type="text/css"> -
            table { background: #eee; font-size: 90%; } -
            th { background: #ccc; } -
            td { padding: 0px; } -
         </style>' -
         body 'text=black bgcolor=fffffff align=left' -
         table 'align=center width=99% border=3 bordercolor=black bgcolor=white'
    spool logmode.html
    select  'Archive Log Mode :'|| decode(log_mode,'NOARCHIVELOG','<font color=red>Database in '||log_mode||' mode </font>',log_mode) "Archive Log Mode"
    from v$database
    spool off
    set markup html off

  • Need examples of using HEAD, BODY and TABLE options of SET MARKUP

    Hi!
    Looking for examples of using the HEAD, BODY and TABLE options of the SET MARKUP command in SQL*Plus. Will be used in 10.2.04 on Linux.
    Have been trying to set up an "H1" header but not having any success. Documentation and examples in the documentation are not very helpful.
    Thanks for your time and help!
    Dave Venus

    $ echo "select sysdate from dual;"|
      sqlplus -L -s -M 'html on head <title>MyTitle</title> body bgcolor="black" table border="0" scott/tiger
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta name="generator" content="SQL*Plus 10.2.0">
    <title>MyTitle</title>
    </head>
    <body bgcolor="black">
    <p>
    <table border="0">
    <tr>
    <th scope="col">
    SYSDATE
    </th>
    </tr>
    <tr>
    <td>
    2009-02-12 15:22:00
    </td>
    </tr>
    </table>
    <p>
    </body>
    </html>Edited by: Laurent Schneider on Feb 12, 2009 3:22 PM

  • TextField set to HTML, Scrollbar problem

    Hi,
    I have a chat box called 'chatbox' which needs to display
    lines in different colors. I've set 'render as HTML' and called the
    var property 'chat_html'. It displays things fine when I add lines
    with, for example, 'chat_html += "<font color =
    '#ff0000'>TEXT</font>'.
    The only problem is the vertical scrollbar doesn't update.
    I've noticed I can make it update by using 'chatbox.text += "" each
    time I add a html line, but this seems to set the colors to all one
    color, namely, 'chatbox's default color.
    Any help on this? How do I update the scrollbar without
    losing the different colors?
    Thanks - Gary.

    In the old way of things - what did change?
    Look at the WebAccess on the HTTP view - how long does it say that it
    has been up?
    rpm -qa novell-group What version
    What does the POA report?
    If this has all got squirrely rcgrpwise stop, rcapache2 stop and
    rctomcat5 stop (then restart them again in reverse order)
    T
    On Fri, 02 Sep 2011 19:26:02 GMT, taphillips
    <[email protected]> wrote:
    >
    >We have webaccess agent 8.0.2 running on OES SLES 10 sp3.
    >In the past few days webaccess users cannot send email when compose
    >view is set to html. They will be redirected back to the address bar to
    >input an address even though there is already and address listed. Some
    >will get the message "you must specify a recipient to send to" It will
    >send ok when set to plain text.
    >It happens across all operating ystems and different browsers and
    >versions I have tried so far.
    >I did find and old reference to this problem, but it had to do with an
    >older agent working against a newer post office.
    >This seemed to happen quite suddenly. We have had several power outages
    >in the last week or so but the server has not gone down.
    >Any ideas?
    >Thanks,
    >Tom

  • Setting the HTML Web Reports encoding to UTF-8

    Hi,
    We have a problem with web reports (Reports6i with 9ias r1) showing some characters wrong(like the pound/yen symbols). The whole system (database and reports server) runs in UTF-8 characterset, but the web reports dont set any "ecoding=UTF-8" tags in the header section of the generated HTML .. so the users browser doesn't display the html correctly (unless he switches the browser from "Western European" to UTF-8 encoding himself).
    Any way we can force this? i didn't found any way on setting the UTF-8 tag in the report?!
    Cheers, Stefan

    OK. I think I can answer your question. You can change the Apache settings into UTF8 of your Apache Web Server in which you deploy your reports.

  • How to set a HTML color to a control button

    How to set a fixed color to a disabled button?
    I have a boolean button which has 3 status: on, off and disabled. I don't like the 'grayed and disabled' option. I will use red for off, green for on, and white gray (foreground color) for the disabled status. The HTML color code is BDBDBD. I tried to send the hex number 'BDBDBD' to the button property node 'color[4]' but was told that I was wiring to the wrong type of terminal.
    Could any one post a sample code of how to construct the structure of 'color[4]' using a RRGGBB number?
    Thanks,
    Ryan

    What exectly do you want and do you see.
    If I run the code you have in LabVIEW 9.0, I get the following result after running.
    For convenience I have shown the second color array you set as color indicators:
    Note that you use grey as the colors for True and False
    Here I have set made the colors more distinct:
    Ton
    Message Edited by TCPlomp on 07-10-2009 08:00 AM
    Message Edited by TCPlomp on 07-10-2009 08:01 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    ButtonColor_FP.png ‏17 KB
    ButtonColorMoreColor_FP.png ‏18 KB

  • Font setting in HTML Conversion Settings not honoured by acrobat

    Hi,
    I have Helvetica LT Std font family minstalled on my PC.
    In Acrobat 9, when I go to Create PDF --> From Web page --> Settings --> Settings (File Type : HTML), I select Body text font as "Helvetica LT Std" and size as 14.
    Now when I try to print any html page (E.g. http://infolab.stanford.edu/~ullman/fcdb/oracle/or-proc.html) to pdf, everything is appearing in Tahoma (eeks!!).
    Why is no Acrobat taking the Body font text font setting that I had specified?
    Please help ....
    Thanks in advance
    Suddha Satta Ray

    You might try the preferences in your browser (as I understand your question). Mine has selections for default fonts and a selection of overriding the HTML document fonts (at least as I read the preferences). For some reason, Tacoma has become the default for MS products from what I have seen. I can't find a font button in IE, but there may be one. As you might expect, IE is far from my first choice of browser.

  • Setting Inner HTML for spry elements

    I am trying to set the inner HTML for an object that it says
    has no properties. It seems to work in FF but not in IE.
    Example:
    Created an additional row that I put a '*' in column if it is
    the clicked column representing the details section of the page.
    (In other words, when clicking the sub region is based on the
    clicked row. This row gets the left column of the clicked item
    marked and the other rows cleared.)

    Ah... found an alternative. There are two alternatives to the
    interface for CSS styles.
    rowHover and the one I just found, rowSelected. That is a
    sufficient method of highlighting the currently selected row. I
    just added a style to the CSS and it works great!

  • Spry data set and html table with multiple images

    I use "Spry Data Set" in my Dreamweaver CS4 site. I need to make one html file (a product page) and all the product data comes from a separate html table.
    So, I have a html table that contains the product data and the images. Each row is one product.
    Column 1 contains a product name
    Column 2 contains product information
    Column 3 contains products thumbnail image 1
    Column 4 contains products thumbnail image 2
    Column 5 contains products large image 1
    Column 6 contains products large image 2
    This a simple example of the idea. In reality, there is lot more content.
    So the actual question is that:
    How can I show in the product page all the thumbnail images, but only one large picture at a time?
    And when the thumbnail is clicked the large picture changes accordingly.

    It depend entirely on what you want.
    One way would be to show a shadow box as per http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=shadowbox&search_exchange=&num =25&startnum=1&event=search&sort=0&interim_dummy_tmpfield=&Submit= or http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=lightbox&search_exchange=&sear ch_license=&search_rating=&search_pubdate=&Submit=Search&num=10&startnum=1&event=search&so rt=0&dummy_tmpfield=
    Another way is to have a master/detail area where the large image appears after clicking in the master area like this http://labs.adobe.com/technologies/spry/demos/products/index.html
    You could also use tooltips as in http://labs.adobe.com/technologies/spry/samples/data_region/TooltipwithData.html.
    There are many more ways, but you need to make the desicion based on the layout of your page.
    Gramps

  • Problems setting 'allow HTML snippet insertion' in Contribute 4

    I am trying to set the administrator option to allow insertion of HTML snippets (as described here). But the dialog box to change the settings does not include an "Allow HTML Snippet Insertion" checkbox.
    Any advice? Is this to do with the version of Contribute I'm using? Or is there some other administrator setting I need to set first?

    Hi ravster.
    Thanks for the suggestions. I had read the Arch NFS HowTo and did as you suggested get rcpinfo for the server machine. The Libranet NFS server is configured rather different since the NFS daemons are built into the default kernel.
    Since I needed to complete the transfer immediately, I gave up for now trying to set up NFS and used netcat (!) instead to transfer the files from the Libranet laptop to the Arch workstation. The laptop will be converted to Arch Linux soon so I think I'll be able to clear things up soon.  I haven't had any problems setting up NFS with homogeneous (i.e., all Arch or all Libranet) computer combinations.
    Thanks again.
    Win

  • Can't send a website URL to my email in html format, only text and my email format is set to html

    FF is default browser. A week ago, no problem. no changes in SW or hardware except I did update IE to vers 8, but kept FF as default.
    Using XP Prof. Now when I am on a website and want to send the link to my email (E Link Total Access), and go to Send, the link shows up in my email as text, not underlined in html format.
    E link Tech support couldn't fix today, but I wasn't talking with a high level tech person. Any ideas will be appreciated.

    Hi Midhun,
    Welcome to the Community
    To help you with the issues you're having, on your Blackberry go to your mailbox, press menu, choose options, then Email Preferences and check the box for Enable HTML Email, Download Images Automatically and Confirm External Image Download. The screen may look like the screenshot below:
    For more information please check these links:
    Blackberry Tips and Tricks
    Blackberry 101
    Enjoy!
    Ron
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • Frame 7.x: setting up HTML General Macros on Reference Page

    Is there any documentation on how to create General Macros on the Frame reference page? The documentation says you can do it but I can't find anything about how.
    Specifically I'd like it to output Marker text and other things.
    I used WebWorks Publisher years ago but my memory's pretty rusty on it.
    thanks
    Scott

    If you have the freedom to check out a 3rd party tool rather than use FM's built-in capability, check out MIF2Go, at http://www.omsys.com<br /><br />It can generate far, far better HTML output, and is far more flexible  than FM's built-in capability. <br /><br />As far as using FM to generate the output directly, though, somebody else here will undoubtedly be along with some suggestions in short order <looking around hopefully><br /><br />Sheila

Maybe you are looking for

  • How do you turn off auto-reply/notify in iCal?

    I'm sure there's a simple answer to this because I've searched high and low and I just can't disable the auto-notify/auto-reply feature in iCal when I delete a meeting notice someone else invited me to. What's the process for turning off this great f

  • Getting invalid content type for SOAP: TEXT/HTML exception for Soap Adapter

    I am trying to invoke Webservice using SOAP Receiver Adapter but I am getting error <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText> Pls let me know Regards

  • Group Vote only one group

    Hi, I'm designing a human task where there needs to be a group vote of the users of only one group. If I select Group Vote, group -> "Name of the Group", the task is sent to the users of the group. One of them claims it and answers for the all group.

  • Link to other place in form

    How can i link to other places in my form? I kwow i have to do it Javascript, but what code do i have to use? Thanks Josh

  • I need the manual for iMovie 11

    I want to know what those 2 little icons are all the way to the right of the screen and how they work, but all I find is the Getting Started guide and the info is not in there. Actually there's hardly anything useful in there. I want a full manual. I