Using a HTML file as background ...

How can I use a html-file to act as my background in a Java application ?

see http://forum.java.sun.com/thread.jsp?forum=57&thread=152264

Similar Messages

  • How to send a message with Send-MailMessage cmdLet powershell exchange which uses a html file as a parameter

    Before the mailboxes migration E2003 toward E2010 SP2, I have to send a mail which body already exists as a html file.
    Here the powershell I currently use :
    import-csv d:\path\TestLot.csv  | foreach {Send-MailMessage -To $_.PrimarySmtpAddress -From
    [email protected] -Subject "Migration " -body "Your mailbox Migration will start in 2 days." -SmtpServer servXXX}
    And it is allright !
    But, I was asked to use an existing html file instead of my poor : -body "Your mailbox Migration will start in 2 days." 
    Does anybody know the way to do this ?
    Thank you for your help
    PATMOY
    BOAT

    Hi,
    I have the html code in a variable so i can personalize the mails:
    $htmlcode = '<html><body style="background:#FFFFFF"><head><title>Activaion email</title></head>'
    $htmlcode += '<style type="text/css">'
    $htmlcode += '#HLine { font-size:20px; font-family:Verdana; font-weight: bold; }'
    $htmlcode += '#txt { font-size:12px; font-family:Verdana;}'
    $htmlcode += '</style>'
    $htmlcode += '<img src="/img/HBPMAN0aGcc.gif" width="52" height="52" />&nbsp;&nbsp;&nbsp;<br />'
    $htmlcode += '<h1 id="HLine">Your BlackBerry account has been created ...</h1>'
    $htmlcode += '<div id="txt"><strong>... Your User Data:</strong><br />'
    $htmlcode += '&nbsp;&nbsp;&nbsp;<br /><table border="0" id="txt"><tr><td>&nbsp;&nbsp;<strong>Username:</strong></td><td>'+$UsrData.Email+'</td></tr>'
    $htmlcode += '<tr><td>&nbsp;&nbsp;<strong>Activation Password:</strong></td><td>'+$UsrData.pass+'</td></tr></table><br />'
    $htmlcode += '<strong>The activation credentials are valid for just 5 days after receipt of this email!</strong><br /><br/ >'
    $htmlcode += '<strong>... Next Steps: </strong><br /><br />'
    $htmlcode += '<a href= "/bb/doc/EN.pdf">- Activate your Device</a>&nbsp;<br />'
    $htmlcode += '&nbsp;&nbsp;To be able to use your new BlackBerry you need to complete this steps.<br /><br />'
    $htmlcode += '<a href= "/bb/doc/Tips.pdf">- Tips and Tricks for your Device</a><br />'
    $htmlcode += '&nbsp;&nbsp;Tips and Tricks to make your Device experience a success.<br /><br />'
    $htmlcode += '<strong>... in case you require technical support:</strong><br /><br />'
    $htmlcode += 'If you experiance problems with your Device, please contact your local IT-Support.<br /><br />'
    $htmlcode += 'Thank You.'
    $htmlcode += '<br/><div></body></html>'
    Send-MailMessage -to $UsrData.Email -From $from -Body $htmlcode -SmtpServer $smtp -Subject $subject -BodyAsHtml
    If you want to make sure the mail is displayed as a HTML Mail add to the send-mailmessage the option
    -BodyAsHtml
    Regards
    Dan

  • FSE3 to create an html file in background

    I would like to publish our account hierarchy to our intranet by sending the accounting structure from FSE3 to a Html file that run nightly in the background.  We have created a BDC to use FSE3.  Runs great in foreground but fails in background due to Enjoy controls.  Is there a standard SAP report that would produce the same hierarchy?
    Thanks,
    Susan

    Hi Stephen,
    Use Open dataset, Transfer, Close dataset to create file on Application server.
    Use FM Z_CONV_ITAB_TO_TAB_DELIMITED to convert your lines in TAB delimited format. you can download file from your application server to presentation server using T Code CG3Y and give extension as .xls ...
    As you data is Tab delimited it will automatically get formatted in columns in your EXCEL file.
    Regards,
    Mohaiyuddin

  • How to execute a jar file which has an applet, without using a html file ?

    I have a jar file which contains a set of class files. iam able to execute the jar file by using this html code
    <html>
    <applet code="file.class" archive="file.jar" width="500" height="300">
    <param name="name" value="value">
    </applet>
    </html>
    I want to know how to execute this class file without using the html tags.
    pls help me out in this.
    Anki

    Hi,
    You can make an executable jar file such that when you double click on that it starts running. Just follow the steps.
    1. Open a notepad and write the following
    Main-Class: XXXXXXXX
    XXXXXXX means Your Main Class name. Don't forget to press Enter after you write your class name.
    2. Save the file as Mani.mf
    3. In the commant prompt ( your directory ) type following lines.
    jar cmf Mani.mf Demo.jar *.*
    4. This will make a jar file which is executable jar file
    Hope this will help you.
    Deepak

  • How to use an HTML file with Parameters to make an audioClip

    HI guys,
    I am still working on getting simple sound to work in my program! I have learned that I can use Java.Applet's soundClip object, even when not using an Applet, but I do not know how to work with the URL object. Here is a SCCE so you can see where I am at!
    The Java Class:
    public class PlaySound {
        public static void main(String[  ] args)
        throws java.net.MalformedURLException
        java.applet.AudioClip clip = java.applet.Applet.newAudioClip(new java.net.URL(null));
        clip.play( );
    }The HTML file (Lets call it "file.html"):
    <html>
    <body>
    <param name="test" value="test.wav" />
    </body>
    </html>Now obviously I should not be passing the URL null, what should I pass it and how? Also, is the HTML file written properly? Thanks!
    -Christian S.
    Edited by: Christ_Guard on Jun 10, 2008 9:41 AM

    Christ_Guard wrote:
    Thanks! Thats exactly what I needed! Should I be saving my sound files in the bin Directory?That was just the simplest solution. Resources can be anywhere, as long as you know where! This icon tutorial gives some examples.
    [http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html#getresource]

  • How to use substring in  ITS(HTML file)

    Hai,
    I am modifying d_searchhelp.html file in agate. I want a use a substring function this file. So I used the below code.
      newclassname=~searchhelpcontrolname;
      oldclassname=newclassname.substring(0,8);
                                                                ^ ^ ^
    This is the error i got when i use this HTML file in searchhelp.
    @ ...\templates\system\dm\msiexplorer\d_searchhelp.html (263,42): error : syntax error   : '('
    @ ...\templates\system\dm\msiexplorer\d_searchhelp.html (263,44): error : syntax error   : ','
    @ ...\templates\system\dm\msiexplorer\d_searchhelp.html (263,46): error : syntax error   : ')'
    Please let me know how to use substring.
    Thanks & Regards,
    H.K.Hayath Basha

    Hello H.K.Hayath Basha,
    please see the HTML Business documentation on <http://help.sap.com/saphelp_nw04/helpdata/en/5f/1fb5174aee11d189740000e8322d00/frameset.htm>:
      string strSub (in string string, in int position, in int length)
    With regards,
      TJ

  • How to display local HTML file in web-view?

    Hello everyone,
    we have no problem with showing of remote HTML content from server in box on page in web view. But how we can show such a content when included in HTMLResources? In guide is just "Display a local HTML file in an in-app browser", which works wihout problem, but we don't want to show this HTML content in in-app viewer, it should be part of page.
    Thanks
    Martin

    Now i'm confused. In guide is this:
    To use local HTML files, click the folder icon and specify the local HTML file. The HTML file (such as index.html) should appear in a folder that includes any images or scripts used in the HTML file.
    But no info where such a local HTML file should reside. If this file is in HTMLResources, it is ignored.

  • How to set default value for html:file in struts

    hi
                   i am working on an application using struts situation is i am using the
    <html:file property="" /> to allow the user to upload file. but i need that a default file should be set so that even if the user donot click browse ie                the user wish to upload that default file the default file get uploaded on page submition.     Is it possible to set any default value for html:file ...if yes plz provide any suggestion or links how to achieve this.     thanks in advance

    www.google.com?q=STRUTS+DOCUMENTATION

  • How to display an HTML file in text Area?

    I am trying to display an HTML formated file in  text area component using Action 3.0. The following script does not generates compiler errors, each function seems to be executed yet the file is not displayed. When trying the same code with myCV.txt and myCV_TA.text = (loader1.data) the text file is displayed OK. Flash MX and actionscript 2.0 had handled that differently but with success???
    ( myCV_TA is the text area component)
    Thanks
    var loader1:URLLoader =new URLLoader();
    loader1.addEventListener(Event.COMPLETE,displayText);
    textload("myCV.html");
    function textload(file:String)
    loader1.load(new URLRequest(file));
    trace("in textload");
    function displayText(e:Event)
    myCV_TA.htmlText = (loader1.data);
    trace("in displaytext");

    hmm.. never tried to use an .html file like that in flash, what's inside that file? text with images tables and so on? the htmltext property supports only a few HTML tags, maybe it's not working because an unsupported tag has been detected.

  • Simple AIR ajax question? One html file or many?

    I am a new ajax air developer and was wondering if it's a better practice to use one html file in my app or many html files? So far I have been testing with many html files using javascript location.href to send the user to another html page when they click different navigation buttons. This works although there is a clear webpage "loading" feel to the app due to a temporary white screen displaying over the app as it loads the next page (maybe for a couple milliseconds). Not a huge deal but still feels somewhat unprofessional since regular desktop apps do not have this "flicker" occur when changing navigation. Now if I use a single html file (where I load html using javascript) this does not occur but the file feels very large and bloated. Anyone have any suggestions of how I can eliminate the flicker that occurs using many files (perhaps I am not loading the file the correct way into the native window) or am I stuck with a single file if I want there to be no flicker?

    I'll say become a Flex/AIR developer

  • Html file in web page composer

    hi expert,
    i have create one html file. the html file contain jsp script. the output is very well when i run it on my pc but when i put it in container of web page composer, the output is not display. why its happen?how can i use the html file that contain jsp script in web page composer?
    thanx in advance,
    faeza

    Hi
    You can create a new layout with width and height as per your requirements and use the layout in WPC.
    For creating new layouts, check the help link below
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/d2970be57f4ebbe10000000a11466f/content.htm
    Regards,
    Yoga

  • Unable to Display Background Graphic From HTML File Generated from AI File

    I am trying to figure out if this is a MAC OS X or Safari issue. I have already a message into the author of the plug-in as well as created a posting on the Adobe Forum.
    I am following a tutorial on Lynda.com called "Design the Web: Illustrator to Animated HTML5 Canvas." I am using a plug in called Ai2CanvasMac with Adobe Illustrator, It essentially generates an HTML file from an Illustrator file. The Illustrator file has an embedded PNG file as a background image and a small vector graphic in front and centered. After the plug-in generates the HTML file, it automatically opens the file up in the browser. This is where I am getting mixed results.
    Safari: The small vector does appear and in the center where the embedded background should appear. But the background image isn't displaying, only a white background is showing.
    Firefox and Chrome: The page is totally blank. Not even the vector graphic appears.
    It will work with two different approaches.
    1. If I edit the source image web links in HTML file and use links from any graphics I find off the web. That works fine. The images are displayed in the browser window.
    2. If I embedded PNG images from my desktop into the Illustrator file and generate the HTML file. That works fine too.
    Does anyone have any ideas as to why I can't the graphics to display properly in the browser without doing this workaround?

    Hi,
    Ex. 1 - If the Index file is in the same directory, called "test"
    tales/numbers.jpg
    Ex. 2 - If the image is in a subdirectory, called "test1" within "test"
    test/test1/numbers.jpg
    img src="test/test1/numbers.jpg"
    Regards
    Ayyapparaj

  • I moved a html file and now the page doesn't have a background

    I was trying to remove the .html tags from my web pages and followed the advice on this past post. I created a new folder in Dreamweaver's File tab, then moved the .html file over and renamed it to index.html. Unfortunatley the swf and background images are broken and can't reference them. I'm wondering what step I missed, or how can I relink them?
    Original how to remove .html link discussion I referenced.
    http://forums.adobe.com/message/722731#722731
    I wanted to try and use .htaccess with my current GoDaddy account, but I couldn't get that working correctly.
    http://simplemediacode.info/remove-index-html-andor-index-php-from-the-url/
    My website blank page.
    http://www.victorylcms.org/testimonials/
    Thanks for any help!

    You have bad paths to all your external CSS and Scripts. Typically when you move a file into a folder in the Files Panel, DW will ask you if you want to update links.  You should have hit YES.
    To fix the problem, change all of this in your code:
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link href="layout.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="js/cufon-yui.js" type="text/javascript"></script>
    <script src="js/cufon-replace.js" type="text/javascript"></script>
    <script src="js/Schneidler_Md_BT_400.font.js" type="text/javascript"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <!--used for the rotating images that show up if the user doesn't have flash-->
    <script type="text/javascript" src="/assets/js/jquery.cycle.lite.js"></script>
    to this:
    <link href="../style.css" rel="stylesheet" type="text/css" />
    <link href="../layout.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/cufon-yui.js" type="text/javascript"></script>
    <script src="../js/cufon-replace.js" type="text/javascript"></script>
    <script src="../js/Schneidler_Md_BT_400.font.js" type="text/javascript"></script>
    <script src="../Scripts/swfobject_modified.js" type="text/javascript"></script>
    <!--used for the rotating images that show up if the user doesn't have flash-->
    <script type="text/javascript" src="../assets/js/jquery.cycle.lite.js"></script>
    Nancy O.

  • How can I edit an html file in Firefox using View Source?

    I have created an html webpage and saved it to my pc. I can't edit the html file in firefox when I right click on the page and select "View Source". I can view the code but I can't edit it. I can do this in IE9.
    I thought I was able to do this before in Firefox.
    Did my settings change somewhere that I can no longer do this?
    Do I have to have something checked in the Web Developer extensions for it to work?
    I'm using Firefox 24.0
    Thank you for any help with this. :)

    The View Source window in Firefox cannot be used to change computer codes. Nor can the Web Developer tools.
    Sorry for any inconvenience.
    I suggest using Programmer's Notepad.

  • Help needed  while exporting crystal reports to HTML file format using java

    Help needed  while exporting crystal reports to HTML file format using java api(not using crystalviewer).i want to download the
    html file of the report
    thanks

    the ReportExportFormat class does not have HTML format, it has got to be XML. Export to HTML is available from CR Designer only.
    Edited by: Aasavari Bhave on Jan 24, 2012 11:37 AM

Maybe you are looking for

  • OBIEE 11g 11.1.1.6.0 configuration  creating domain failed

    Hi I am trying to install OBIEE 11.1.1.6.0. My installation failed during configuration stage of " Creating Domain". When i check the log file i see the following error . can you please help me? C:\OBIEE\Oracle_BI1\OPatch\opatch apply C:\OBIEE\Oracle

  • Advance payment reg

    Hi SAP Gurus, Tcode F-47 is not allowing advance payment for Asset PO.Then I made suppressed field as optional . Then also I am not able to get Asset number filed in the F-47.Can you pl.throw some light on this issue. Thanks in advance

  • Photo transfer from elements to revel

    Can someone please help! Only some of my photos, not all, were transfered to Ravel???

  • JDBC Syncron message whit Update and select

    Hi. I'm trying to make an syncron (RFC <==> JDBC) message where I got an request from an RFC. This request should update an DB and then return with the updated fields. The updata works fine, but I did not get the changed fields back in my responsmess

  • Why can't I transfer files from my MacBook Pro to my external HD?

    Hello, I was transferring files from my macbook to my Buffalo HD-PNTU3 when it was accidentally removed improperly; Once I plugged it back in I could no longer transfer any files the cursor would turn into the round banning icon and wouldn't take the