Report and HTML content

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.

Similar Messages

  • Firefox 11 beta is having issues loading Flash and HTML content, shows plain text instead of images

    I'm not sure what is causing the problem but it has been happening since beta 10 and now its also in beta 11. Randomly when I load any web page the page is displayed in plain text leaving all the HTML or flash content blank. Yes I have the most recent version of flash installed along with Java just in case it was looking for that mess as well. Sometimes the pages load fine, and sometimes they don't, it's like playing lotto with the internet. The only fix I know of is to either keep refreshing the page and "hope" it catches it on the reload, or closing Firefox and running CCleaner. Some times FF will load some of the visual data and leave gaps but usually its just basic text mode. I'm at a loss as to whether the problem is from Firefox or my ISP being a douche, either way its annoying that Firefox is not showing internet pages like it used to.
    Hate to see it happening but it looks like Firefox is on its way to being just another Internet Explorer clone (failure). Should have stayed with your original team, all the new folks you have hired are really mucking up the whole project and its goal of a free and open internet. Not to mention writing bad code and costing you money and more importantly the user base.
    (Update, now it's not doing it go figure, but I'm sure it will do it again at some point, perhaps its not Firefox and something else, I'll keep my eye on it and try to report any findings)

    If you use extensions (Tools > Add-ons > Extension) like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flash Block</i> that can block content then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • NI Report and HTML printing

    Here I have described a problem with the NI Report VIs and printing HTML report on different machines.
    I have made a small app just printing a page with "Hello World" on it. This app was generated on my Windows XP Prof. SP 2 machine at home. My IE version is 6.2.2900.2180.xpsp_sp2_rtm.040803-2158 and the Active-X component used is shdocvw.dll version 6.2.2900.2180, 04.08.2004 13:00.
    The archive contains the app and all sources in LV Version 8.2.
    I want to know from you if this app will run on your machine. Please report if it did or not together with the information which OS you are using and which IE version you have.
    It seems that this VIs want run reliably on all machines.
    Thank you for all those who are reporting.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    PrintHTML.zip ‏273 KB

    I have tested the app on 7 machines in the office. We have 4 LV installations were it worked and 3 which give error 1 in "Print HTML using IE.vi". 6 Installations are on XP Prof. SP2 and one is Windows 2000 SP4.
    All XP machines should be the same because we have them generated from one image and we have a central system update here. I think I have to make a look to see any differences.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Interactive report and HTML Expressions

    Currently I am using standard reports showing some icons using expression like:
    <img src="f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:APPLICATION_PROCESS=ShowIcon:::F105_BILD_ID:#GUI_ID#">
    I would like to recreate my page using the interactive report capabilities from APEX 3.1. I couldn't find the column formatting section in the interactive report however.
    How can I reproduce the current icons showing behaviour using an interactive report ?
    Thanks for help
    Valéry

    Hello Valery,
    You don't have the HTML Expressions section in an Interactive Report.
    However what you can do is include your img tag in your select statement directly. So you would have something like
    SELECT '<img src="f?p='||:APP_ID||':'||:APP_PAGE_ID||':'||:SESSION||':APPLICATION_PROCESS=ShowIcon:::F105_BILD_ID:'|| gui_id || '">' as col1
    FROM your_table
    Make sure your IR column is set to standard column and not Text.
    That should do it.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Render xml and html content type in single jsp

    I have 2 jsps, one jsp(a.jsp) is throwing content-type as HTML and other JSP(b.jsp) is throwing content-type as xml. I am making use of xsl to render the xml content in html format. But the problem is that i want to include b.jsp in a.jsp, and when i do so b.jsp doesn't make use of xsl for its rendering rather it displays the contents haphazardly.
    Plese help if somebody knows the solution.

    Below the following line ..
    <html:form action="addContact">Add this new form field..
    <html:hidden name="flag" value="0"/>Needless to say that this String variable flag should be defined in your ActionForm.
    Next, instead of ...
    <html:submit property="parameter"><bean:message key="ok.company" /></html:submit>Put this ...
    <input type="button" name="xyz" onClick="callSubmit(1);" value='<bean:message key="ok.company" />'>Then add a JS function as below ...
    <script>
    function callSubmit(flg)
         document.forms[0].flag.value=flg;
         document.forms[0].submit();
    </script>Finally in your ActionServlet, you need to find the value of the ActionForm variable flag via request.getParameter("flag").
    In case the value is set to 1, then it means that you need to send the particular row to DB. You may add additional flag values to correctly identify theparticular row which you may want to send to DB.
    Hope you got it.
    -Rohit

  • Not able to Send HTML Content in Apex Mail

    Hi,
    I am using Oracle Apex 4.2 and Oracle 11g XE
    I am trying to add HTML content in the apex_send mail procedure. But it give me the below error.
    >>•ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275
    Below is the code i am trying to add in the apex_send mail
    DECLARE
    l_from varchar2(1000);
    l_body CLOB;
    l_body_html CLOB;
    BEGIN
    l_body := null;
    l_body_html := '
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta property="og:title" content="Seasons Greetings from sudhir Networks" />
    <title>Seasons Greetings from sudhir Networks</title>
    <style type="text/css">
    /* Client-specific Styles */
    #outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */
    body{width:100% !important;} .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
    body{-webkit-text-size-adjust:none;} /* Prevent Webkit platforms from changing default text sizes. */
    /* Reset Styles */
    body{margin:0; padding:0;}
    img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;}
    table td{border-collapse:collapse;}
    #backgroundTable{height:100% !important; margin:0; padding:0; width:100% !important;}
    body, #backgroundTable{
    /*@editable*/ background-color:#FAFAFA;
    #templateContainer{
    /*@editable*/ border: 1px solid #DDDDDD;
    h1, .h1{
    /*@editable*/ color:#202020;
    display:block;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:34px;
    /*@editable*/ font-weight:bold;
    /*@editable*/ line-height:100%;
    margin-top:0;
    margin-right:0;
    margin-bottom:10px;
    margin-left:0;
    /*@editable*/ text-align:left;
    h2, .h2{
    /*@editable*/ color:#202020;
    display:block;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:30px;
    /*@editable*/ font-weight:bold;
    /*@editable*/ line-height:100%;
    margin-top:0;
    margin-right:0;
    margin-bottom:10px;
    margin-left:0;
    /*@editable*/ text-align:left;
    h3, .h3{
    /*@editable*/ color:#202020;
    display:block;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:26px;
    /*@editable*/ font-weight:bold;
    /*@editable*/ line-height:100%;
    margin-top:0;
    margin-right:0;
    margin-bottom:10px;
    margin-left:0;
    /*@editable*/ text-align:left;
    h4, .h4{
    /*@editable*/ color:#202020;
    display:block;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:22px;
    /*@editable*/ font-weight:bold;
    /*@editable*/ line-height:100%;
    margin-top:0;
    margin-right:0;
    margin-bottom:10px;
    margin-left:0;
    /*@editable*/ text-align:left;
    #templatePreheader{
    /*@editable*/ background-color:#FAFAFA;
    .preheaderContent div{
    /*@editable*/ color:#505050;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:10px;
    /*@editable*/ line-height:100%;
    /*@editable*/ text-align:left;
    .preheaderContent div a:link, .preheaderContent div a:visited, /* Yahoo! Mail Override */ .preheaderContent div a .yshortcuts /* Yahoo! Mail Override */{
    /*@editable*/ color:#336699;
    /*@editable*/ font-weight:normal;
    /*@editable*/ text-decoration:underline;
    #templateHeader{
    /*@editable*/ background-color:#FFFFFF;
    /*@editable*/ border-bottom:0;
    .headerContent{
    /*@editable*/ color:#202020;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:34px;
    /*@editable*/ font-weight:bold;
    /*@editable*/ line-height:100%;
    /*@editable*/ padding:0;
    /*@editable*/ text-align:center;
    /*@editable*/ vertical-align:middle;
    .headerContent a:link, .headerContent a:visited, /* Yahoo! Mail Override */ .headerContent a .yshortcuts /* Yahoo! Mail Override */{
    /*@editable*/ color:#336699;
    /*@editable*/ font-weight:normal;
    /*@editable*/ text-decoration:underline;
    #headerImage{
    height:auto;
    max-width:600px;
    #templateContainer, .bodyContent{
    /*@editable*/ background-color:#FFFFFF;
    .bodyContent div{
    /*@editable*/ color:#505050;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:14px;
    /*@editable*/ line-height:150%;
    /*@editable*/ text-align:left;
    .bodyContent div a:link, .bodyContent div a:visited, /* Yahoo! Mail Override */ .bodyContent div a .yshortcuts /* Yahoo! Mail Override */{
    /*@editable*/ color:#336699;
    /*@editable*/ font-weight:normal;
    /*@editable*/ text-decoration:underline;
    .bodyContent img{
    display:inline;
    height:auto;
    #templateFooter{
    /*@editable*/ background-color:#FFFFFF;
    /*@editable*/ border-top:0;
    .footerContent div{
    /*@editable*/ color:#707070;
    /*@editable*/ font-family:Arial;
    /*@editable*/ font-size:12px;
    /*@editable*/ line-height:125%;
    /*@editable*/ text-align:left;
    .footerContent div a:link, .footerContent div a:visited, /* Yahoo! Mail Override */ .footerContent div a .yshortcuts /* Yahoo! Mail Override */{
    /*@editable*/ color:#336699;
    /*@editable*/ font-weight:normal;
    /*@editable*/ text-decoration:underline;
    .footerContent img{
    display:inline;
    #social{
    /*@editable*/ background-color:#FAFAFA;
    /*@editable*/ border:0;
    #social div{
    /*@editable*/ text-align:center;
    #utility{
    /*@editable*/ background-color:#FFFFFF;
    /*@editable*/ border:0;
    #utility div{
    /*@editable*/ text-align:center;
    #monkeyRewards img{
    max-width:190px;
    </style>
    </head>
    <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
    <tr>
    <td align="center" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateContainer">
    <tr>
    <td align="center" valign="top">
    <!-- // Begin Template Header \\ -->
    <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateHeader">
    <tr>
    <td class="headerContent">
    <img src="http://www.sudhirnetworks.com/i/logo/sudhir-logo.png" style="max-width:600px; padding-top: 20px;" id="headerImage campaign-icon" mc:label="header_image" mc:edit="header_image" mc:allowdesigner mc:allowtext />
    </td>
    </tr>
    </table>
    <!-- // End Template Header \\ -->
    </td>
    </tr>
    <tr>
    <td align="center" valign="top">
    <!-- // Begin Template Body \\ -->
    <table border="0" cellpadding="0" cellspacing="0" width="600" id="templateBody">
    <tr>
    <td valign="top" class="bodyContent">
    <!-- // Begin Module: Standard Postcard Content \\ -->
    <table border="0" cellpadding="20" cellspacing="0" width="100%">
    <tr mc:repeatable>
    <td valign="top">
    <img src="http://www1.sudhirnetworks.com/ecard/sudhir_holidaycard_clickhere.jpg" style="width:560px;" mc:label="postcard_image" mc:edit="postcard_image" mc:allowtext />
    <div mc:edit="std_content00">
    <strong>Custom Message</strong> goes here.
    </div>
    </td>
    </tr>
    </table>
    <!-- // End Module: Standard Postcard Content \\ -->
    </td>
    </tr>
    </table>
    <!-- // End Template Body \\ -->
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </center>
    </body>
    </html>
    l_from := lower(:app_user) || lower('@sudhirnetworks.com');
    apex_mail.send(
    p_to => :P1_TO,
    p_from => l_from,
    p_body => l_body,
    p_body_html => L_BODY_HTML,
    p_subj => :P1_SUBJECT);
    APEX_MAIL.PUSH_QUEUE;
    END;
    Please suggest me how to fix this issue.
    Thanks
    Sudhir

    What happens if the user isn't reading the message in a HTML enabled mail client?
    Besides, even if you don't want to send an equivelant message in plain text, at least say something like 'Please open the message in an HTML enabled mail client'.
    It is a required field, so requires some value (not null).
    From the docs:
    Plain text and HTML email content. Passing a value to p_body, but not p_body_html results in a plain text message. Passing a value to p_body and p_body_html yields a multi-part message that includes both plain text and HTML content. The settings and capabilities of the recipient's email client determine what displays. Although most modern email clients can read an HTML formatted email, remember that some users disable this functionality to address security issues.

  • Send html content in notification body

    Hi, I am trying to make the body of my mail as html. But an empty mail is getting sent. The code is,
    <copy>
    <from expression="ora:processXSLT('Transformation_1.xsl',bpws:getVariableData('inputVariable','payload','/ns2:ORDER'))"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody"/>
    </copy>
    <copy>
    <from expression="string('text/html; charset=UTF-8')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:MimeType"/>
    </copy>
    The xsl has the code:
    <xsl:template match="/">
    <ns0:ORDER>
    <xsl:attribute name="ErrState">
    <xsl:value-of select="/ns0:ORDER/@ErrState"/>
    </xsl:attribute>
    </ns0:ORDER>
    </xsl:template>
    I can see the ContentBody variable in the AuditTrail with the processed value. but in mail I am not getting anything.
    Please help me on this

    What happens if the user isn't reading the message in a HTML enabled mail client?
    Besides, even if you don't want to send an equivelant message in plain text, at least say something like 'Please open the message in an HTML enabled mail client'.
    It is a required field, so requires some value (not null).
    From the docs:
    Plain text and HTML email content. Passing a value to p_body, but not p_body_html results in a plain text message. Passing a value to p_body and p_body_html yields a multi-part message that includes both plain text and HTML content. The settings and capabilities of the recipient's email client determine what displays. Although most modern email clients can read an HTML formatted email, remember that some users disable this functionality to address security issues.

  • Junk characters display while using multipart with html content in Javamail

    Hi All,
    I have used Java mail API to send mail with attachment. To enable to attachment in mail and to do content formatting i have used multipart and html content type together.
    My web application runs on apache tomcat 5.5 in MAC server. Java version is 1.5.
    The Function which i have used for sending mail with attachment is as follows:
    public void sendmailAttached(String to,String from,String host,boolean debug,String mailContent,String mailSubject,String cc,String attachFiles)
              String mailarray[]=to.split(";");
              Properties props = new Properties();
              //props.put("mail.smtp.port","425");
              props.setProperty("mail.smtp.host", host);
              if (debug) props.setProperty("mail.debug", ""+debug);
              Session session = Session.getInstance(props, null);
              session.setDebug(debug);
              try {
                   Message msg = new MimeMessage(session);
                  msg.setFrom(new InternetAddress(from));
                 javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[mailarray.length];
                 for (int i=0;i<mailarray.length ;i++ )
                                            toAddress=new javax.mail.internet.InternetAddress(mailarray[i]);
              msg.setRecipients(Message.RecipientType.TO, toAddress);
              msg.setSubject(mailSubject);
              try{
                        String ccaray =cc;                    
                        String mailarray1[]=ccaray.split(";");
                        javax.mail.internet.InternetAddress[] CCAddress=new javax.mail.internet.InternetAddress[mailarray1.length];
         for (int i=0;i<mailarray1.length ;i++ )
         CCAddress[i]=new javax.mail.internet.InternetAddress(mailarray1[i]);
              msg.setRecipients(Message.RecipientType.CC,CCAddress);
              }catch(Exception ss)
                        System.out.println("CC mail exception is ====>"+ ss.getMessage());     
              msg.setSentDate(new java.util.Date());
              Multipart multipart = new MimeMultipart("related");
              BodyPart messageBodyPart = new MimeBodyPart();
              messageBodyPart.setContent(mailContent, "text/html");
              multipart.addBodyPart(messageBodyPart);
                   String fileName = attachFiles.substring(attachFiles.lastIndexOf("/")+1,attachFiles.length());
                   if(!fileName.equals(""))
                        messageBodyPart = new MimeBodyPart();
              DataSource source = new FileDataSource(attachFiles);
              messageBodyPart.setDataHandler(new DataHandler(source));
              messageBodyPart.setFileName(fileName);
              multipart.addBodyPart(messageBodyPart);
              msg.setContent(multipart);
              Transport.send( msg );
              catch(MessagingException mex)
                   Exception ex = mex;
                   if (ex instanceof SendFailedException)
                   SendFailedException sfex = (SendFailedException)ex;
    Address[] invalid = sfex.getInvalidAddresses();
    if (invalid != null) {
    if (invalid != null) {
    for (int i = 0; i < invalid.length; i++)
    System.out.println("Invalid Addresss --------> " + invalid[i]);
    try
         Message msg = new MimeMessage(session);
              msg.setFrom(new InternetAddress(from));
              Multipart multipart = new MimeMultipart("related");
         BodyPart messageBodyPart = new MimeBodyPart();      
         messageBodyPart.setContent(mailContent, "text/html");
    multipart.addBodyPart(messageBodyPart);
    Address[] validUnsent = sfex.getValidUnsentAddresses();
    javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[validUnsent.length];                         
    if (validUnsent != null) {
    for (int i = 0; i < validUnsent.length; i++)
    System.out.println("Valid Address ------>"+validUnsent[i]);
    String test = validUnsent[i]+"";
    toAddress[i]=new javax.mail.internet.InternetAddress(test);
    msg.setRecipients(Message.RecipientType.TO, toAddress);
    msg.setSubject(mailSubject);
    String fileName = attachFiles.substring(attachFiles.lastIndexOf("/")+1,attachFiles.length());
                   if(!fileName.equals(""))
                        messageBodyPart = new MimeBodyPart();
              DataSource source = new FileDataSource(attachFiles);
              messageBodyPart.setDataHandler(new DataHandler(source));
              messageBodyPart.setFileName(fileName);
              multipart.addBodyPart(messageBodyPart);
    msg.setContent(multipart);
    Transport.send( msg );
    catch(Exception e)
         System.out.println("Mail Not Send");
              else
                        System.out.println("Mail Server Not Connectd ");
    This code is working properly and i am able to send mail with attachment and html formatted content without any problem. But console of server is filled up with too much junk characters because of which the catalina.out file of tomcat server is becoming fully filled.
    Sample cosnole display with  junk characters are as follows:
    Subject: HBSP - DRUCKER - QC - CH16 - QC  R2 Completed
    MIME-Version: 1.0
    Content-Type: multipart/related;
         boundary="----=_Part_34_15681668.1247471518887"
    ------=_Part_34_15681668.1247471518887
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    <b>Hi,</b><br><br>     Chapter CH16 in the project DRUCKER is Completed . <br><br>     <b>Comments :</b> Qc Accepted.<br><br> <b><i>Thanks,<br>ANTONY.</i></b>
    ------=_Part_34_15681668.1247471518887
    Content-Type: application/octet-stream; name=9420317_CH06_p084-119.pdf.zip
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=9420317_CH06_p084-119.pdf.zip
    UEsDBBQAAAAIAMOz6TqHaQ4BUtXhAGzP8QAZAAAAOTQyMDMxN19DSDA2X3AwODQtMTE5LnBkZsQ7
    CTxUX9tCUpIWEomxpoWZuTN3FmvW7P9skaUajCXGiCHSYiuKFrIvlWStROSvaBEtiIpkK5WlUipa
    ZKl898wYRP/37fve7/e69TjnPuc5z3LOuc95zjP3ym7S1lXAKuL5ZTu7HjTyL8ATiCgMiu6wA6Wi
    gjZy86RSvN12U51QWLQRCguT8ESISED/hcITMWgdFJZIgPAwBm2CwhHQFqAdRySRcWg9lC2KBBNQ
    WAIRZ6+mxk/1dEI48qNYF7+/N9WZHwiCSPyY8QtLQDFLlCf/AhYGgiHyDBwBIs7EETEzcCR4Bg6H
    IZBn4LBE7AwcNBOHJ87EwWQ8aTqOgIWJM3C4mX2JMH6GLiQiHjMDR8bD03BYDBYizcDh8LjpOCyM
    xczAETH4mbgZOmNhmDCDHwE7Qz+IhMNO54eHCKTp/GAcboYuBBJMmi6DSIZxU+lYF7KSJnEMb4qb
    B9WbH1md5sjCROHJMHqTN9VvfPGRcGgzOp2BwhOQMUKZofU9nenIDYF1o22rgtXU1EWGRgsia2vp
    Like this display of junk characters are filling up multiple pages of console file.
    Can any one suggest me how to overcome this problem?
    Many thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    There is no "sendmail" method in the JavaMail API.
    The debug flag is set using the Session.setDebug method, or by setting the Session property "mail.debug".
    If you're using someone else's helper classes with JavaMail, they may provide another way to set it.

  • 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 Shah

    Hi 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 Shah

    Hi 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

  • Jasper report on HTML when one image loaded from database and for the other

    How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
    My code
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
              exporter = new JRHtmlExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
              exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
              exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
         exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
         exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
         exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
         exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
              exporter.exportReport();
              byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();
    Can any one help pls
    Message was edited by:
    ameet.au

    hey sorry for posting it in this forum.
    but do u have sample code for making it work.. since i am able to do it on PDF format(image from Database and another stored in the webserver) using
    byte image[] =(byte[]) outData.get("image");
                        ByteArrayInputStream img = new ByteArrayInputStream(image);
                        hmimg.put("P_PARAMV3", img);
    print = JasperFillManager.fillReport(reportFileName, hmimg, jrxmlds);
    bdata= JasperExportManager.exportReportToPdf(print);

  • Difference between pdf and html report format

    Why HTML report printouts truncate from the right-end side, compare to the pdf report format ?, do i need to change anything
    while running report through HTML format

    The printing from html output is majorly affected by browser settings. Once you try to change the left and right margins in page setup before printing, I solved this problem in this way , it may work for you. Let me know if it works or if you overcome it by other ways.
    with regards
    wara

  • HTML content with images and links blocked

    Hello,
    I very much need some help here because my company needs to send out newsletters to our clients in HTML format soon and so far the email with HTML content is being blocked as spam while text content works fine. Specifically, whenever I add a link or an image in HTML content, the email doesn't go through. I tried sending in multipart format but it is also not sending HTML with images and links. Here is my attempt:
                                    props.setProperty("mail.transport.protocol", "smtp");
                                     props.setProperty("mail.host", "mail.server.com");
                                     props.setProperty("mail.user", "joeuser");
                                     Session mailSession = Session.getDefaultInstance(props, null);
                                     mailSession.setDebug(true);
                                     Transport transport = mailSession.getTransport();
                                     MimeMultipart mp = new MimeMultipart("alternative");
                                     MimeBodyPart htmlPart = new MimeBodyPart();
                                     MimeBodyPart textPart = new MimeBodyPart();
                                     textPart.setText("Just to make it multipart");
                                     htmlPart.setHeader("MIME-Version", "1.0");
                                     htmlPart.setHeader("Content-Type", htmlPart.getContentType());
                                     htmlPart.setContent(strHtmlMessage, "text/html");
                                     mp.addBodyPart(textPart);
                                     mp.addBodyPart(htmlPart);
                                     MimeMessage message = new MimeMessage(mailSession);
                                     message.setHeader("MIME-Version", "1.0");
                                     message.setHeader("Content-Type", mp.getContentType());
                                     message.setHeader("X-Mailer", "Recommend-It Mailer V2.03c02");
                                     message.setContent(mp);
                                     message.setSubject(strSubject);
                                     message.setFrom(new InternetAddress("[email protected]"));
                                     message.addRecipient(Message.RecipientType.TO,
                                             new InternetAddress("[email protected]"));
                                             transport.connect();
                                             transport.sendMessage(message,
                                             message.getRecipients(Message.RecipientType.TO));
                                     transport.close();This code is one of my numerous attempts to make HTML send images and links. Please, let me know if there is a workaround way to make JavaMail send HTML with links and images in the message body. Your help will be greatly appreciated.

    The JavaMail FAQ has information on creating HTML messages, including
    messages with both plain text and HTML. Did you find it?
    BTW, your code has many unnecessary statements, such as setting
    the Mime-Version header, which JavaMail will do for you, and setting
    the Content-Type header, which JavaMail does as a side-effect of the
    setContent or setText calls.
    Other than that, it looks like your code should be correctly creating a
    multipart/alternative message. If the recipient is still rejecting it you
    need to figure out what it is about the message that makes the recipient
    think it's spam. Can you send a similar message using another mailer?
    Can you send the message to a different recipient?

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • What is the mean of standard and HTML in report generation?

    What is the mean of standard and HTML in report generation?  I  need your help.Thank you!
    1110340020

    check these links for your query they will help you
    http://www.ni.com/white-paper/13926/en/
    http://www.ni.com/example/27568/en/

Maybe you are looking for

  • Can't Connect to Pix 501 VPN on Network

    Hi All, I have a software VPN client that connects just fine to the PIX 501 VPN, but I cannot ping or telnet to any services on the LAN. Below is my config and results of show cry ipsec sa. I would appreciate any suggestions to fix this. It's been a

  • Problem with Crystal reports for Eclipse and Postgres-databases

    Hi, Is there a known problem when using a PostgreSQL-database to create a report with Crystal reports Plugin? When I drag a table, then occurs a error-windows, that the object can't  created. I have found a workaround for solving the problem. After n

  • ORDERS(IDOC) to XCBL text transfer

    Hi, I'm desperately trying to add a context in target structure when segments of orders in source structure are not filled. source structure : E1EDP01 (item 1) POSEX -E1EDPT1(0..9999) --E1EDPT2(0..9999) ---TDLINE(0..1) E1EDP01 (item 2) POSEX -E1EDPT1

  • Solaris 10 Firewall configuration with a GUI application

    Hello, I am quite a novice regarding Solaris. I have searched for hours on the web for a safe GUI application with which I can configure the firewall on Solaris 10 05/2009 in order to surf the Internet. Unfortunately I have not found one but lots of

  • Why a single .java file can't have multiple public classes defined in it?

    A public class must be saved in a .java file with the same name, why?