ID attachment has bad format?

Hi there,
I have deleted silverlight from mac and still can't send any attachment from hotmail account
please help me out from this issue
have a good time
cya:)

Have you upgraded to the new MS Outlook web-based messaging system? I've never used Hotmail, so don't know a thing about it, but I've read some good reports about the new Outlook. Don't know if it has IMAP access (which Hotmail was missing) but I may be willing to give it a try... maybe you should upgrade?
Clinton

Similar Messages

  • Attachment id has bad format

    I get error message 'attachment has bad format id' when I'm try to sent a attachment in hotmail.com started when I upgraded to mac os x version 10.7

    Try removing spaces from the filename - that worked fine for me. Seems like one of the penalties of using Hotmail...

  • Hotmail help says to optimize Firefox to correct Attachment ID has bad format problem when there is not attachment - how do I optimized Firefox 3.6.12?

    Several day ago my Hotmail acct seemed to be hacked as the following email
    ''I think this is a nice website,I like it very much.If you have time please browse it.Maybe you can find some products that are suitable for you.Their priciple is :100% original and brand new,100% satisfied! Their address http://dpzc.net/#512.com/img/26_qtr.jpg/
    Email:[email protected]
    Msn: [email protected]''
    was sent to my entire address book, and now when I try to sent a hotmail I get an error message saying Attachment Id Has Bad Format, even though there is no attachment. (This problem does not happen in IE8)
    I did Hotmail help and their response was ''''I advise you to optimize your browser. If you have a browser that’s not Internet Explorer, you can visit its Help section.''''
    How do I optimize Firefox 3.6.12?
    or what other suggestions do you have

    Delete any traces of Silverlight from your HD, you will be able to send attachments normally thereafter.

  • Hotmail "Attachment ID has bad format"?

    I cannot send attachments or forward them on Hotmail due to error message "Attachment ID has bad format"? Any suggestions?

    Douglas188 wrote:
    I cannot send attachments or forward them on Hotmail due to error message "Attachment ID has bad format"? Any suggestions?
    Hotmail are having a few hiccups at the moment. It may pay to go to their site and check their troubleshooting tips.
    Pete

  • Why does it say Attachment Id has bad format when I try to reply or forward e-mail from my hotmail site??

    I receive an e-mail from a friend lets say....I then send it to some friends....they reply back to me saying... Ha Ha Ha Ha....I then want to reply back but it won't send...saying...Attachment Id has bad format...yet I've sent it once already? I don't get it.

    Delete any traces of Silverlight from your HD, you will be able to send attachments normally thereafter.

  • After installing lion I get"Attachment Id has bad format" when trying to send an attachment in Hotmail.  Any ideas

    After installing the new lion, I can no longer send attachments in my hotmail account, I get "attachment Id has bad format". Any ideas?

    THANK YOU !!! THANK YOU !!!
    I took the time to actually set up and sign in to be able to say thankyou for the info - my Apple techs up hear in the North had NO clue on how to solve my problem - sending attatchments is my business and I was out of it since Oct. 14th
    THANK YOU AGAIN - IT WORKED PERFECTLY JUST HOW YOU SAID

  • When i try and forward and email with excel or pdf attachments i get a note come up with the attachment has bad files this is since i downloaded mountain lion... can any one help??

    can anyone help me... since i downloaded mountain lion when i try and forward a email with an attachment pdf or excel it will tell me in a yellow box above my recievers email address " ID problem with files" or something like that.. HELP...... thanks

    Let me guess: you're using a Hotmail account.
    Look what I've found, it seems to have to do with MS Silverlight. Update that, and all should be good.

  • STO mail : pdf attachment has an error 'file damage' when try to open it

    Dear expert,
    I need to send an e-mail to the vendor with the sto list as attachment at the email.
    I managed to send email to external addresee and made the pdf attachment, BUT somehow when I open the attachment it has an error says "Adobe Reader could not open xx.pdf because it is either not a supported file type or because the file has been damaged(for axample, it was sent as an email attachment and wasn't corectly decoded)."
    Really need your experties to help me. Here is my abap coding to send email and do the pdf attachment at the new ouptput type to send email.
      TYPES: BEGIN OF lty_drad,
              doknr TYPE drad-doknr,
             END OF lty_drad,
             BEGIN OF lty_recpt,
               smtp_addr  TYPE ad_smtpadr,
             END   OF lty_recpt.
      DATA: lt_doc      TYPE STANDARD TABLE OF docs,
            lt_recpt    TYPE STANDARD TABLE OF lty_recpt,
            lt_tline    LIKE tline OCCURS 0 WITH HEADER LINE,
            lt_data     TYPE solix_tab,
            lt_docu     TYPE STANDARD TABLE OF lty_drad,
            lt_docfiles TYPE STANDARD TABLE OF bapi_doc_files2,
            lw_tline    LIKE LINE OF lt_tline,
            lw_docu     LIKE LINE OF lt_docu,
            lw_docfiles LIKE LINE OF lt_docfiles,
            lw_objdes   TYPE tnati-objdes,
            lt_text     TYPE bcsy_text,
            lw_recpt    TYPE adr6-smtp_addr,
            lw_adrnr    TYPE lfa1-adrnr,
            lw_object   TYPE drad-objky,
            lw_doknr    TYPE drad-doknr,
            lw_return   TYPE  bapiret2,
            lw_xcontent TYPE xstring,
            client    TYPE REF TO if_http_client,
             url       TYPE string,
             lw_subrc  TYPE sysubrc,
             response  TYPE REF TO if_http_response,
             lw_message1 TYPE string,
           sent_to_all TYPE os_boolean,
           bin_filesize type i.
      CONSTANTS: lc_dokar_srm TYPE drad-dokar VALUE 'SRM',
                 lc_type      TYPE so_obj_tp  VALUE 'RAW'.
    CLASS-DEFINITIONS
      DATA: send_request       TYPE REF TO cl_bcs.
      DATA: document           TYPE REF TO cl_document_bcs.
      DATA: sender             TYPE REF TO cl_sapuser_bcs.
      DATA: recipient          TYPE REF TO if_recipient_bcs.
      DATA: exception_info     TYPE REF TO if_os_exception_info,
            bcs_exception      TYPE REF TO cx_bcs.
      RANGES: lr_po_pr   FOR  drad-objky.
      DATA:   lw_banfn   TYPE ekpo-banfn,
              lw_bnfpo   TYPE ekpo-bnfpo.
      IF nast-nacha = '5'. "8
    Create recipient and check if exist
       Get email ID
      start commented by sapnislina 21.12.06
       SELECT SINGLE adrnr FROM lfa1 INTO lw_adrnr
                    WHERE lifnr = p_ekko-lifnr.
       IF sy-subrc NE 0.
         PERFORM protocol_update
           USING '303' 'Address of Vendor:' ekko-lifnr 'not found' space
         p_retco = sy-subrc.
         EXIT.
       ENDIF.
      end commented by sapnislina 21.12.06
       SELECT smtp_addr INTO CORRESPONDING FIELDS OF TABLE lt_recpt
            FROM adr6
           WHERE addrnumber = p_ekko-adrnr. "lw_adrnr.
        IF lt_recpt[] IS INITIAL.
          PERFORM protocol_update
            USING '303' 'Email address(es) does not exist for vendor'
            p_ekko-lifnr space space.
          p_retco = sy-subrc.
          EXIT.
        ENDIF.
        CALL FUNCTION 'CONVERT_OTF_2_PDF'
          EXPORTING
            use_otf_mc_cmd         = 'X'
          IMPORTING
            bin_filesize           = bin_filesize
          TABLES
            otf                    = otfdata[]
            doctab_archive         = lt_doc
            lines                  = lt_tline
          EXCEPTIONS
            err_conv_not_possible  = 1
            err_otf_mc_noendmarker = 2
            OTHERS                 = 3.
        IF sy-subrc <> 0.
        PERFORM protocol_update
            USING '303' 'PO Convertion from OTF to PDF failed'
                  space space space.
          p_retco = sy-subrc.
          EXIT.
        ENDIF.
    Get object description from mail title of output types
       SELECT SINGLE objdes INTO lw_objdes
              FROM tnati
              WHERE spras = sy-langu
              AND   kappl = nast-kappl
              AND   kschl = nast-kschl.
       CONCATENATE lw_objdes ekko-ebeln INTO lw_objdes SEPARATED BY
    space
        DATA L_TXT(255) TYPE C.
        DATA L_TXT2(255) TYPE C.
        CONCATENATE 'STO' EKPO-EBELN 'Created for' EKPO-WERKS '/'
    EKPO-LGORT
        'Supply Plant' EKKO-RESWK into l_txt separated by space.
        lw_objdes = l_txt.
        CONCATENATE 'STO' EKKO-EBELN INTO L_TXT2 SEPARATED BY SPACE.
        APPEND L_TXT2 TO LT_TEXT.
       APPEND lw_objdes TO lt_text.
    Instantiate
        CLASS cl_cam_address_bcs DEFINITION LOAD.
        CLASS cl_abap_char_utilities DEFINITION LOAD.
    insert by sapnislina 22.12.06
      DATA : CONTENT_OUT TYPE SOLIX,
             LINE_WIDTH_SRC TYPE I,
             POS_OUT TYPE I,
             POS_IN TYPE I,
             LEN_OUT TYPE I.
      DATA OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
      DATA : BEGIN OF CONTENT_IN,
                LINE TYPE TLINE,
                DUMMY TYPE TLINE,
             END OF CONTENT_IN.
      TYPES PDF_RAW TYPE X LENGTH 268.
      FIELD-SYMBOLS <PDF_BIN> TYPE PDF_RAW.
      DESCRIBE FIELD CONTENT_IN-LINE LENGTH LINE_WIDTH_SRC IN BYTE MODE.
      REFRESH lt_data.
      CLEAR CONTENT_OUT.
      POS_OUT = 0.
      LOOP AT OTFDATA INTO CONTENT_IN-LINE.
        ASSIGN CONTENT_IN TO <PDF_BIN> CASTING.
        MOVE <PDF_BIN> TO CONTENT_OUT-LINE+POS_OUT.
        ADD LINE_WIDTH_SRC TO POS_OUT.
        WHILE POS_OUT >= 255.
          APPEND CONTENT_OUT TO lt_data.
          CLEAR CONTENT_OUT.
          SUBTRACT 255 FROM POS_OUT.
          IF POS_OUT > 0.
            POS_IN = LINE_WIDTH_SRC - POS_OUT.
            MOVE <PDF_BIN>+POS_IN TO CONTENT_OUT-LINE.
          ENDIF.
        ENDWHILE.
      ENDLOOP.
      IF POS_OUT > 0.
      APPEND CONTENT_OUT TO lt_data.
      ENDIF.
    end inserted by sapnislina 22.12.06
    starting to create attachment to mail
        TRY.
           CLEAR send_request .
    Create persistent send request
            send_request = cl_bcs=>create_persistent( ).
    Build the document
            document = cl_document_bcs=>create_document(
                                i_type    = lc_type  "RAW
                                i_text    = lt_text  "def of output type
                                i_length  = '12'
                                i_subject = lw_objdes ).
    Attached the document object
            CALL METHOD document->add_attachment
              EXPORTING
                i_attachment_type    = 'PDF'
                i_attachment_subject = lw_objdes "definition of output
    type
                i_attachment_size    = '12'
                i_att_content_hex    = lt_data.
    completed first part to attached PO (pdf format) as attachment
    Now attach the PO related attachments to the mail..
    .... need to read from table DRAD and get all the attachment per PO
         at run time
         REFRESH: lr_po_pr."lt_return.
            CLEAR:   lr_po_pr,lw_return.
            MOVE  'ICP'  TO  lr_po_pr.
         CLEAR: lw_object.
    completed second part for PO related attachments
    Now prepare to send mail
    Add document to send request
         CALL METHOD send_request->set_document( document ).
    Get sender object
         sender = cl_sapuser_bcs=>create( sy-uname ).
    Add sender
         CALL METHOD send_request->set_sender
           EXPORTING
             i_sender = sender.
         LOOP AT lt_recpt INTO lw_recpt
                          WHERE NOT smtp_addr IS INITIAL.
          recipient = cl_cam_address_bcs=>create_internet_address(
    lw_recpt ).
    Add recipient with its respective attributes to send request
            CALL METHOD send_request->add_recipient
              EXPORTING
                i_recipient = recipient
                i_express   = 'X'.
            CLEAR recipient.
         ENDLOOP.
    Send the document
        CALL METHOD send_request->send
          RECEIVING
            result              = sent_to_all.
    Catch any exception
          CATCH cx_bcs INTO bcs_exception.
              CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
                EXPORTING
                  msg_arbgb = bcs_exception->msgid
                  msg_nr    = bcs_exception->msgno
                  msg_ty    = bcs_exception->msgty
                  msg_v1    = bcs_exception->msgv1
                  msg_v2    = bcs_exception->msgv2
                  msg_v3    = bcs_exception->msgv3
                  msg_v4    = bcs_exception->msgv4
                EXCEPTIONS
                  OTHERS    = 1.
              p_retco = sy-subrc.
        ENDTRY.
      ENDIF.
      IF NOT result-tdfaxid  IS INITIAL OR                      " 422131
         NOT result-tdmailid IS INITIAL.                        " 422131
        CLEAR syst-msgv1.                                       " 422131
        IF NOT result-tdfaxid IS INITIAL.                       " 422131
          syst-msgv1 = result-tdfaxid.                          " 422131
        ELSEIF result-tdmailid IS INITIAL.                      " 422131
          syst-msgv1 = result-tdmailid.                         " 422131
        ENDIF.                                                  " 422131
        CALL FUNCTION 'NAST_PROTOCOL_UPDATE'                    " 422131
             EXPORTING                                          " 422131
                  msg_arbgb = 'VN'                              " 422131
                  msg_nr    = '095'                             " 422131
                  msg_ty    = 'I'                               " 422131
                  msg_v1    = syst-msgv1                        " 422131
             EXCEPTIONS                                         " 422131
                  OTHERS    = 1.                                " 422131
      ENDIF.                                                    " 422131
      IF result-userexit EQ 'C' OR
          result-userexit EQ 'E'.
        p_retco = '9'.
      ENDIF.
    ENDFORM.                               " ENDE
    end inserted
    Regards
    Nislina

    Hi Nislina,
    Could you please let me know how do you solve this issue.
    Code:
    if lt_binary[] is not initial.
    *     add attachment to document
             call method document->add_attachment
               exporting
                 i_attachment_type      = 'PDF'            
                 i_attachment_subject = 'My Attachment'
                 i_att_content_hex      = lt_binary.
      endif.
    Thanks & Regard's
    Sateesh

  • Illustrator File Will Not Open -  Error message "Object label badly formatted"

    I have been working on a large image file for one of my classes; it has many layers and custom swatches, no text. I work on Creative Cloud at home, CS6 at school, and I think I had my .ai file saved under legacy file format CS4 trying to be safe (because I was not sure of my school's version and I have had a lot of problems accessing my files at school because of the version differences). I have been working on it back and forth between computers for quite a while, and today--while I had the image on my computer recently--it says "Acrobat PDF File Format is having difficulties: Object label badly formatted" if I try to open it.
    I have tried: updating Adobe Illustrator; creating a new AI document and "placing" the file into it; opening the file in Acrobat (the file opened, which was a step...but it only showed a tiny portion of the artwork and left the rest blank. Under the tools, however, it still showed the image had 15 layers (under the layer menu)--and it had them marked them as "visible"--but there wasn't anything I could do to actually view them; I tried copy/pasting into illustrator from Acrobat; opening in Acrobat and "saving as" a PDF (it said "The document could not be saved. There was a problem reading the document (111)"; and I just did a system restore hoping that could exorcise the demons--but no such luck so far.
    Do you have any ideas? I would greatly appreciate any words of wisdom and support you might have...and chocolate.
    Thanks for reading this.

    We now understand the problem, and are testing a solution. Here's my current understanding of all the elements of this issue.
    CAUSE: The problem occurs in an interaction between Illustrator CS4, Suitcase Fusion 2 v13.2, and having an Illustrator document with one or more text boxes, containing text, which is *completely* off the artboard—not even the bounding box is touching the artboard. *Additionally*, there must also be at least one text box, with text in it, which is *on* the artboard (even so much as having the bounding box partly on the artboard is sufficient, again). When these conditions are met, saving the document *may* (but does not always) cause the problem.
    PROBLEM: Attempting to open an affected document in Illustrator CS4 fails, with an "object label badly formatted" error. The problem can occur with older illustrator documents opened in CS4, as well as native CS4 documents.
    UNAFFECTED: Despite any speculation in this thread, this problem does not affect Photoshop, nor has it occurred with any version of Extensis Suitcase older than Suitcase Fusion 2 v13.2, which shipped about eight days ago.
    SOLUTION: The problem should be resolved by a 13.2.1 dot release. Although things could be delayed if we find something unexpected in testing, we currently expect to have the fix available this week, probably tomorrow (Thursday).
    DOCUMENT RECOVERY: Extensis can fix any Illustrator CS4 document which exhibits this problem. For now, contact Extensis tech support if you need help with recovering any such Illustrator document. Be prepared to send tech support the affected Illustrator file(s). You can use the online contact form at http://www.extensis.com/en/support/contact_prod_support.jsp, or call tech support at 1-503-274-7030.
    Special thanks to the users whose suffering and detailed reports helped us figure this out!
    Regards,
    T
    Thomas Phinney
    Sr Product Manager, Font Solutions
    Extensis, a division of Celartem, Inc.

  • Recovered files "object label badly formatted" .ai files

    I just had a mishap where all of my graphic files were deleted due to operator error.  I bought a file recovery software which said it supported .ai files, and they show up like a normal .ai file but when I try to open them in illustrator I get the following error:
    Acrobat PDF File Format is having difficulties. Object label badly formatted.
    If anyone has a possible idea on how to access these files again, please let me know, I lost a ton of illustrator work that can not easily be re-drawn.
    Thanks

    I keep finding posts about CS4 and .pdf files having this issue, but none that seems to parallel my issue.  I am working in CS3 (primitive I know, I just haven't had the funds to upgrade).  Thanks for posting, but I am not on a MAC but will have access to one tomorrow at work.  I will try your suggestion on my lunch hour and hope that works. 

  • Illustrator CS4 error: Object label badly formatted?

    has anyone received an error in illustrator CS4: Acrobat PDF File Format is having difficulties. Object label badly formatted? I am ON a mac and cannot open files after this error, help?

    We now understand the problem, and are testing a solution. Here's my current understanding of all the elements of this issue.
    CAUSE: The problem occurs in an interaction between Illustrator CS4, Suitcase Fusion 2 v13.2, and having an Illustrator document with one or more text boxes, containing text, which is *completely* off the artboard—not even the bounding box is touching the artboard. *Additionally*, there must also be at least one text box, with text in it, which is *on* the artboard (even so much as having the bounding box partly on the artboard is sufficient, again). When these conditions are met, saving the document *may* (but does not always) cause the problem.
    PROBLEM: Attempting to open an affected document in Illustrator CS4 fails, with an "object label badly formatted" error. The problem can occur with older illustrator documents opened in CS4, as well as native CS4 documents.
    UNAFFECTED: Despite any speculation in this thread, this problem does not affect Photoshop, nor has it occurred with any version of Extensis Suitcase older than Suitcase Fusion 2 v13.2, which shipped about eight days ago.
    SOLUTION: The problem should be resolved by a 13.2.1 dot release. Although things could be delayed if we find something unexpected in testing, we currently expect to have the fix available this week, probably tomorrow (Thursday).
    DOCUMENT RECOVERY: Extensis can fix any Illustrator CS4 document which exhibits this problem. For now, contact Extensis tech support if you need help with recovering any such Illustrator document. Be prepared to send tech support the affected Illustrator file(s). You can use the online contact form at http://www.extensis.com/en/support/contact_prod_support.jsp, or call tech support at 1-503-274-7030.
    Special thanks to the users whose suffering and detailed reports helped us figure this out!
    Regards,
    T
    Thomas Phinney
    Sr Product Manager, Font Solutions
    Extensis, a division of Celartem, Inc.

  • HTMLDocument ending with SUB TAG=bad formatting

    Hi, I have a problem when tring to format text in JTextPane in HTMLDocument. When the text ends with </SUB> and I call document..setCharacterAttributes(0, doc.getLength(), attrs, false) text formatting goes wrong!!
    Why? Is it not possible to end text in document with "text<SUB>sub text</SUB>"?
    I prepared some sample code below, which should clarify what I want. Click one of 4 buttons to setText, then click repeatedly Format button to change its format.
    I want to know what am I doing wrong and how to do it right. Problem lies in calling method setCharacterAttributes. When changing its parameters I get different formattings, and not the one I expect :-( .
    When the formatting goes wrong all characters are put inside SUB tag. HTML code then looks like this:
    <html>
      <head>
        <font color="#000000" size="4" face="Arial"><sub>//<--This SUB tag is is added too
    </sub></font>  </head>
      <body>
        <font color="#000000" size="4" face="Arial"><sub>text that had many sub tags and now has none and is inside this sub tag, when this tag shouldnt exist</sub></font>
      </body>
    </html>Please HELP!!!
    Sample code below
    import javax.swing.text.*;
    import java.awt.*;
    import javax.swing.text.html.*;
    import javax.swing.text.html.HTML.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Example extends JFrame {
      JScrollPane sp;
      JTextPane textPane = new JTextPane();
      HTMLEditorKit htmlKit;
      JButton text1Button = new JButton("short SUB text");
      JButton text2Button = new JButton("long SUB text");
      JButton text3Button = new JButton("long SUB text ending with text");
      JButton text4Button = new JButton("long normal text");
      JButton formatButton = new JButton("Format");
      StringBuffer text1,text2,text3,text4;
      Font font = new Font("Arial",Font.ITALIC,14);
      public Example() {
        this.setTitle("SUB TAG bad formatting Example");
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setSize(700, 400);
        htmlKit = new HTMLEditorKit();
        HTMLDocument doc = (HTMLDocument)htmlKit.createDefaultDocument();
        textPane.setContentType("text/html");
        textPane.setEditorKit(htmlKit);
        textPane.setDocument(doc);
        sp = new JScrollPane(textPane,
                             JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                             JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        JPanel menuPanel = new JPanel();
        menuPanel.add(text1Button);
        menuPanel.add(text2Button);
        menuPanel.add(text3Button);
        menuPanel.add(text4Button);
        menuPanel.add(formatButton);
        text1Button.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            textPane.setText(text1.toString());
        text2Button.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            textPane.setText(text2.toString());
        text3Button.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            textPane.setText(text3.toString());
        text4Button.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
           textPane.setText(text4.toString());
        formatButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            setJTextPaneFont(textPane,font,new Color((float)Math.random(),(float)Math.random(),(float)Math.random()));
        text1 = new StringBuffer();
        for (int i=1;i<10;i++) {
          text1.append("a<SUB>"+i+"</SUB> ");
        //text1.append("<BR>");//<--Add this line to get it working, however moving cursor behind any number and pressing Format, results same format error
        text2 = new StringBuffer();
        for (int i=1;i<1000;i++) {
          text2.append("a<SUB>"+i+"</SUB> ");
        //text2.append("<BR>");//<--Add this line to get it working, however moving cursor behind any number and pressing Format, results same format error
        text3 = new StringBuffer();
        text3.append(text2+"END");//moving cursor behind any number in sub tag and pressing Format, results same format error
        text4 = new StringBuffer();
        for (int i=1;i<2000;i++) {
          text4.append("a_"+i+" ");
        JPanel mainPanel = new JPanel();
        mainPanel.setLayout(new BorderLayout());
        mainPanel.add(menuPanel,BorderLayout.NORTH);
        mainPanel.add(sp,BorderLayout.CENTER);
        this.getContentPane().setLayout(new BorderLayout());
        this.getContentPane().add(mainPanel,BorderLayout.CENTER);
      public static void setJTextPaneFont(JTextPane jtp, Font font, Color c) {
        MutableAttributeSet attrs = jtp.getInputAttributes();
        StyleConstants.setFontFamily(attrs, font.getFamily());
        StyleConstants.setFontSize(attrs, font.getSize());
        StyleConstants.setItalic(attrs, (font.getStyle() & Font.ITALIC) != 0);
        StyleConstants.setBold(attrs, (font.getStyle() & Font.BOLD) != 0);
        StyleConstants.setForeground(attrs, c);
        StyledDocument doc = jtp.getStyledDocument();
        doc.setCharacterAttributes(0, doc.getLength(), attrs, false);
      public static void main(String[] args) {
        Example frame = new Example();
        //Center the window
        Dimension frameSize = frame.getSize();
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        if (frameSize.height > screenSize.height) {
          frameSize.height = screenSize.height;
        if (frameSize.width > screenSize.width) {
          frameSize.width = screenSize.width;
        frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
        frame.setVisible(true);
    }

    Thanks for the dukes.
    Actually I have very little knowledge about html handling in java. On you particular problem, I just went and browsed through the source code in search for the sub tag (which I didn't know before by the way) to see what effect it had on the StyledDocument.
    As far as your performance problem in loading html pages, my best advice would be to conduct experiments and try to see where the bottleneck is. I know that there is a way to make setPage synchronous. It has to do with setting some variable in the Document (I guess searching the forum might help on this). This can make it easier to actually measure how long it takes. Moreover, you might want to try and load a small page first and then your heavy one : that way you'll know if it has to do with loading the classes of the HTMLEditorKit. Another advice would be to make sure you feed your JEditorPane with pure HMTL 3.2. I have no idea about this but maybe parsing unknown tags slows down the loading (pure guess). One last advice would be to make multiple versions of your file with slight modifications in each case (like remove the tables, for instance). That might help determine if it has anything to do with the actual content you're trying to load.

  • UTL_MAIL: ORA-29279..... 501 badly formatted MAIL FROM user - no " "

    Hi guys,
    I’m trying to redesign a current process that requires a large amount of manual intervention. As such I’d like to utilise UTL_MAIL to send notifications of system events but have been unable to get it to execute on my dev database (installed on my local PC).
    O/S ver:
    Windows XP SP3
    Oracle ver:
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    I’ve configured the smtp_out_server parameter:
    SQL> sho parameter smtp_out_server;
    NAME                                 TYPE        VALUE
    smtp_out_server                  string        XXX.XXX.XXX.80:25
    And installed the required Oracle built in packages:
    SQL> @C:\oracle_builtins\utlmail.sql
    Package created.
    Synonym created.
    SQL> @C:\oracle_builtins\prvtmail.plb
    Package body created.
    No errors.
    I’ve compiled a simple test version of the code:
    CREATE OR REPLACE PROCEDURE test_email IS
    BEGIN
    UTL_MAIL.send(sender     => '[email protected]',
    recipients => '[email protected]',
    subject    => 'UTL_MAIL test subject',
    message    => 'UTL_MAIL test body');
    END;
    +/+
    SQL> @C:\procs\email_proc.sql
    Procedure created.
    However when I execute it I get the attached error(s):
    SQL> execute test_email ;
    BEGIN test_email ; END;
    *+
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 501 badly formatted MAIL FROM user - no <
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 222
    ORA-06512: at "SYS.UTL_MAIL", line 397
    ORA-06512: at "SYS.UTL_MAIL", line 608
    ORA-06512: at "SYS.TEST_EMAIL", line 3
    ORA-06512: at line 1
    I’ve also confirmed with our mail team that the sender is included in our firewall config and should not be being blocked……
    Any ideas? Does the package produce any log files / alerts that I could check or is it possible to execute in a verbose mode so I can debug?
    Thanks,
    Chris

    Welcome to the forum.
    That error comes from your SMTP server, and it indicates there's something wrong with the email address.
    You could try the following and see if that works:
    CREATE OR REPLACE PROCEDURE test_email
    IS
    BEGIN
      UTL_MAIL.send(sender => 'test <[email protected]>',
                    recipients => '[email protected]',
                    subject => 'UTL_MAIL test subject',
                    message => 'UTL_MAIL test body'
    END;
    /Some more inputs can be read here: Reg.SMTP Error while using UTL_MAIL in Oracle 10g
    Also, when you want post formatted examples, just use the {noformat}{noformat} tag before and after your examples.
    So, when you type:
    {noformat}select *
    from dual;{noformat}
    it will appear as:select *
    from dual;when you post it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I reformat an IPod Touch for Windows that has been formatted for a Mac?  All instructions I have been able to find use ITunes or Device Manager to reformat.  My IPod is not being recognized by ITunes or in Device Manager.

    I have an IPod Touch that has been formatted for a Mac.  All instructions I have been able to find use ITunes or Device Manager to reformat the device for Windows.  This cannot be done if Windows doesn't recognize the device.  Is there another way to set the device back to the factory settings directly on the device without using ITunes?

    Ipod touch is not formatted one way or the other at all.
    Just sync it to the new computer using itunes.
    iPod touch User Guide (For iOS 5.1 Software)

  • For one of our users the option to send a document as attachment has dissapeared in office programs such as word, excel etc

    Hi,
    For one of our users the option to send an email as attachment has disappeared in office programs such as word, excel etc
    As you can see from the above these are the normal options you expect to see but for the user affected they get the option to send as a Text document, a pdf or an XPS the option to send as a attachment has gone.
    I have logged into her PC with my account and it was fine, i have had a look and no one else has reported this throughout the company and looking for answers online has proven fruitless.
    Any Ideas on why this option would have changed to only allow the user to send it as text.

    Hi,
    The "Send as Attachment" option only works when Outlook and word are installed from the same suite. That is required.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

Maybe you are looking for

  • Using sql query with parameter

    OK, I can't find any docs on this. I can insert a parameter, but how do I insert that into the sql query?

  • Can't connect to SMTP Server

    Since upgrading to OS X Yosemite 10.10.3 I am no longer able to send email via my SMTP server. The SMTP server is the AWS SES service http://aws.amazon.com/ses/ and the smtp server name is email-smtp.eu-west-1.amazonaws.com. Apple Mail refuses to con

  • E-Mails in IPad and iPhone without content and sender "This E-Mail has no content"

    Often I get E-Mails listet without content and no sender "This E-Mail hasn't got any content" I can't get rid of the ghost, only by  total restarts. . Why does this happen and how can Iavoid this?  Klaus

  • 'No blank lines' - SMARTFORM Paragraph settings HELP!

    Hi, I'm new to smartforms. I'm creating an invoice using smartforms. In sapscript we have the ability to define a paragraph format as 'No blank lines' by checking the appropriate checkbox for that paragraph setting. Where do I do this for paragraph f

  • Make a voiceover in iMovie HD 6

    Hi! I wonder if there is a bug in iMovie HD 6? When I try to make a voiceover nothing happens. There is no sound recorded. I have done it thousands of times before in earlier versions of iMovie, but now I just can't do it... Is there anyone out there