Embedding Image in Appointment

In my requirement, I have to send an appointment with image as attachment, embedded (in display mode).
for creating document, I am using CL_DOCUMENT_BCS  class, inside that class  i am using
CREATE_FROM_MULTIRELATED method for creating the document. In this method we have to pass below object lo_mime_helper. Before passing it, I am filling it with image and appointment.
For image:
  CALL METHOD lo_mime_helper->add_binary_part
    EXPORTING
      content      = i_graphic_table
      filename     = 'WIPRO.BMP'
      extension    = 'BMP'
      description  = 'descriptiongif'
      content_type = 'image/bmp'
      length       = l_len
      content_id   = 'content_id_1'.
For appointment
lv_sr_title = 'Invitaion for the Meeting'.
clear lt_text.
create document as an ica l object
  lt_text = lo_appointment->as_ical_object( ).
  CALL FUNCTION 'SO_RAW_INT_TO_RTF'
    TABLES
      objcont_old = lt_text
      objcont_new = lt_text.
  data wa_text like line of lt_text.
  data text_length type i.
  data full_length type i.
  loop at lt_text INTO wa_text.
     text_length = strlen( wa_text ).
     full_length = full_length + text_length.
     clear text_length.
     CLEAR wa_text.
  endloop.
clear l_len.
l_len = full_length.
  CALL METHOD lo_mime_helper->add_textual_part
    EXPORTING
      content      = lt_text
      filename     = 'Appointment Meeting'
      extension    = 'ICS'
     description  =
      content_type = 'application/rtf'
      LENGTH       = l_len
      content_id   = 'content_id_2'
Now I am passing lo_mime_helper to methofd for creating document
   TRY.
      CALL METHOD cl_document_bcs=>create_from_multirelated
        EXPORTING
          i_subject          = 'my subject'
          i_multirel_service = lo_mime_helper
        RECEIVING
          result             = document.
    CATCH cx_document_bcs .
      MESSAGE e672(so) WITH 'bcs error while creating bcs_doc'.
      EXIT.
    CATCH cx_bcom_mime .
      MESSAGE e672(so) WITH 'mime error while creating bcs_doc'.
      EXIT.
  ENDTRY.
THis is sending a mail, but both image and appointment are going as attachment, even when I am setting Disposition type as I(Inline) in debugger. I want it to go as appointment with image embedded in body part.
When I am using CL_APPOINTMENT class, its going as appointment perfectly, but how to embedd a image in body part then.

Hi try with this code.
Document = cl_document_bcs=>create_document( i_type = u2018RAWu2019 i_text =
text i_length = u201912u2032 i_subject = u2018test created u2018 ).
add attachment to Document
BCS expects Document content here e.g. from Document upload
binary_content = u2026
CALL METHOD Document->add_attachment EXPORTING i_attachment_type = u2018GIFu2019
i_attachment_subject = u2018My attachmentu2019 i_att_content_hex =
binary_content.
add Document to send request
CALL METHOD send_request->set_document( Document ).
DATA: send_request TYPE REF TO cl_bcs.
DATA: text TYPE bcsy_text.
data: binary_content1 type STANDARD table OF TBL1024 WITH HEADER LINE.
data: binary_content type solix_tab.
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: bcs_exception type ref to cx_bcs.
data: sent_to_all type os_boolean.
send_request = cl_bcs=>create_persistent( ).
sender = cl_sapuser_bcs=>create( sy-uname ).
CALL METHOD send_request->set_sender EXPORTING i_sender = sender.
recipient =
cl_cam_address_bcs=>create_internet_address( u2018 u2018 )
CALL METHOD send_request->add_recipient
EXPORTING i_recipient = recipient
i_express = u2018Xu2019.
CALL METHOD send_request->set_send_immediately( u2018Xu2019 ).
CALL METHOD send_request->send( exporting i_with_error_screen = u2018Xu2019
receiving result = sent_to_all ).
COMMIT WORK.endform.
<begging removed by moderator>
Regards
chitra
Edited by: Thomas Zloch on Nov 15, 2011 1:02 PM

Similar Messages

  • Embedding image in Description part of Appointment

    In my requirement, I have to send an appointment with image as attachment, embedded (in display mode).
    for creating document, I am using CL_DOCUMENT_BCS  class, inside that class  i am using
    CREATE_FROM_MULTIRELATED method for creating the document. In this method we have to pass below object lo_mime_helper. Before passing it, I am filling it with image and appointment.
    For image:
      CALL METHOD lo_mime_helper->add_binary_part
        EXPORTING
          content      = i_graphic_table
          filename     = 'WIPRO.BMP'
          extension    = 'BMP'
          description  = 'descriptiongif'
          content_type = 'image/bmp'
          length       = l_len
          content_id   = 'content_id_1'.
    For appointment
    lv_sr_title = 'Invitaion for the Meeting'.
    clear lt_text.
    create document as an ica l object
      lt_text = lo_appointment->as_ical_object( ).
      CALL FUNCTION 'SO_RAW_INT_TO_RTF'
        TABLES
          objcont_old = lt_text
          objcont_new = lt_text.
      data wa_text like line of lt_text.
      data text_length type i.
      data full_length type i.
      loop at lt_text INTO wa_text.
         text_length = strlen( wa_text ).
         full_length = full_length + text_length.
         clear text_length.
         CLEAR wa_text.
      endloop.
    clear l_len.
    l_len = full_length.
      CALL METHOD lo_mime_helper->add_textual_part
        EXPORTING
          content      = lt_text
          filename     = 'Appointment Meeting'
          extension    = 'ICS'
         description  =
          content_type = 'application/rtf'
          LENGTH       = l_len
          content_id   = 'content_id_2'
    Now I am passing lo_mime_helper to methofd for creating document
       TRY.
          CALL METHOD cl_document_bcs=>create_from_multirelated
            EXPORTING
              i_subject          = 'my subject'
              i_multirel_service = lo_mime_helper
            RECEIVING
              result             = document.
        CATCH cx_document_bcs .
          MESSAGE e672(so) WITH 'bcs error while creating bcs_doc'.
          EXIT.
        CATCH cx_bcom_mime .
          MESSAGE e672(so) WITH 'mime error while creating bcs_doc'.
          EXIT.
      ENDTRY.
    THis is sending a mail, but both image and appointment are going as attachment, even when I am setting Disposition type as I(Inline) in debugger. I want it to go as appointment with image embedded in body part.
    When I am using CL_APPOINTMENT class, its going as appointment perfectly, but how to embedd a image in body part then.
    Moderator message : Cross-posting not allowed, duplicate thread locked.
    Edited by: Vinod Kumar on Oct 10, 2011 1:35 PM

    Hi try with this code.
    Document = cl_document_bcs=>create_document( i_type = u2018RAWu2019 i_text =
    text i_length = u201912u2032 i_subject = u2018test created u2018 ).
    add attachment to Document
    BCS expects Document content here e.g. from Document upload
    binary_content = u2026
    CALL METHOD Document->add_attachment EXPORTING i_attachment_type = u2018GIFu2019
    i_attachment_subject = u2018My attachmentu2019 i_att_content_hex =
    binary_content.
    add Document to send request
    CALL METHOD send_request->set_document( Document ).
    DATA: send_request TYPE REF TO cl_bcs.
    DATA: text TYPE bcsy_text.
    data: binary_content1 type STANDARD table OF TBL1024 WITH HEADER LINE.
    data: binary_content type solix_tab.
    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: bcs_exception type ref to cx_bcs.
    data: sent_to_all type os_boolean.
    send_request = cl_bcs=>create_persistent( ).
    sender = cl_sapuser_bcs=>create( sy-uname ).
    CALL METHOD send_request->set_sender EXPORTING i_sender = sender.
    recipient =
    cl_cam_address_bcs=>create_internet_address( u2018 u2018 )
    CALL METHOD send_request->add_recipient
    EXPORTING i_recipient = recipient
    i_express = u2018Xu2019.
    CALL METHOD send_request->set_send_immediately( u2018Xu2019 ).
    CALL METHOD send_request->send( exporting i_with_error_screen = u2018Xu2019
    receiving result = sent_to_all ).
    COMMIT WORK.endform.
    <begging removed by moderator>
    Regards
    chitra
    Edited by: Thomas Zloch on Nov 15, 2011 1:02 PM

  • Illustrator converting paths to embedded images

    I have a funky issue that I've come across. I have several files that were made using Illustrator CS3. There is a particular type of path item in them (a basic shape path with gaussian blur applied to them) that when I open up the file using CS6 that path item is treated by Illustrator like it's a embedded image.
    I've remade those items as an actual path item with gaussian blur applied, and all seems fine until I save and re-open the file, they become embedded images again. I'm thinking it might be an issue with a setting somewhere but I'm not finding it.
    I have several files of the same type that don't have this issue but I'm not finding any difference between them. At this point I'm stumped...any suggestions?

    After playing around with things for a while I've learned that what I must do is choose "Save as..." with the file, then it will change it to a CS6 file and the world seems happy, but because I had warning dialogs supressed it wasn't alerting me to the fact that the file still was a legacy file when I simply saved, and when I chose "Save as..." I just wasn't making it far enough to get to the dialog where I got to change the file type. Again, most of the files (which were all created at the same time) were not having this issue which was why it was confusing...

  • OBIEE 10G Embedded Image not displayed on PDF

    Hi
    We have some embedded images (source on network share or on the webserver) on a dashboard. On the screen the images are displayed without problems.
    But if we want to print the dashboard (f.e. PDF) the images are not printed. In html-view the images would be displayed.
    Is there a known bug that images can't be printed on dashboard pages or do we have to embed them different?
    Thank you

    Hi Team,
    I do face the same issue of image not displayed in only pdf output format. Our client has deployed OBIEE 10.1.3.4.1 using Weblogic application server and is accesible through a secured url access.
    I have followed the fmap syntax to locate the image, also made sure the image is getting accessed through url, tried with different images of different sizes . In all cases the image display is appearing fine in HTML & Excel output. But not getting displayed only for pdf output.
    Can you please help me with this regard if am missing any specific setup for pdf output. Is there is any pointers or documentation available to get around this issue.
    Thanks in advance.

  • OBIEE 11G Embedded Image not displayed on PDF

    Hi
    I have some embedded images on a dashboard. On the screen the images are displayed without problems.
    But if we want to print the dashboard (f.e. PDF) the images are not printed. In html-view the images would be displayed.
    All the images are referenced with the fmap path.
    Any way to print the images in the pdf ?
    Thank you
    obiee 11.1.1.5
    O.S : Oracle Linux 5.6 x64

    Hi Team,
    I do face the same issue of image not displayed in only pdf output format. Our client has deployed OBIEE 10.1.3.4.1 using Weblogic application server and is accesible through a secured url access.
    I have followed the fmap syntax to locate the image, also made sure the image is getting accessed through url, tried with different images of different sizes . In all cases the image display is appearing fine in HTML & Excel output. But not getting displayed only for pdf output.
    Can you please help me with this regard if am missing any specific setup for pdf output. Is there is any pointers or documentation available to get around this issue.
    Thanks in advance.

  • Embedded image in html body of the email is not appearing in Outlook mail box

    My application Basically gets the un delivered emails from the outlook account.Composes the email from information then also appends the signature of email.The signatures may be multiple , form will show these signatures as a dropdown usin webbrowser control there both image as well as links appear well.But the same if draft them to outlook drafts folder the image in the signature misses and shows image not available.II fetch the signature from user local signature folder , convert it base64 string and set the string as source for image element and append this body of the email.I basically use Outlook COM object to achieve thesepublic void AddImageContentToHtml(List<TamDetails> tamList,string html,string key)
    string htmlContent = html as string;
    string imageSource = string.Empty;
    HtmlNode signatureNode = null;
    HtmlNodeCollection nodeCollection = null;
    List<string> imagePaths = null;
    string requiredImage = string.Empty;
    string base64Image = string.Empty;
    if (!string.IsNullOrWhiteSpace(key))
    imagePaths = ImageDict[key];
    foreach (string strPath in imagePaths)
    //string appDataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Microsoft\\Signatures";
    requiredImage = strPath;
    string [] commonPath = { Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Microsoft", "Signatures")};
    string[] validPaths = requiredImage.Split(commonPath, StringSplitOptions.RemoveEmptyEntries);
    if (validPaths.Count() > 1)
    var path1 = commonPath[0];
    var path2 = validPaths[1];
    int index = path2.IndexOf('/');
    path2.Remove(index);
    requiredImage = path1 + path2;
    if (!string.IsNullOrEmpty(requiredImage))
    if (File.Exists(requiredImage))
    base64Image = CreateBase64Image(requiredImage);
    string fileExtension = Path.GetExtension(requiredImage);
    imageSource = "data:image/" + fileExtension.Remove(0, 1) + ";base64," + base64Image;
    if (!string.IsNullOrWhiteSpace(htmlContent))
    try
    HtmlDocument htmlDoc = new HtmlDocument();
    if (!string.IsNullOrEmpty(imageSource))
    htmlContent=htmlContent.Replace(requiredImage, imageSource);
    htmlDoc.LoadHtml(htmlContent);
    // HtmlNode node = new HtmlNode()
    signatureNode = (htmlDoc.DocumentNode.Descendants("body").FirstOrDefault());
    nodeCollection = signatureNode.ChildNodes;
    catch (Exception ex)
    AppLogException.LogError("Error in appending Signature Image", ex);
    if (tamList != null)
    tamList.ForEach(a =>
    //StringWriter sw = new StringWriter(new StringBuilder(a.MailItem.HTMLBody));
    HtmlDocument doc = new HtmlDocument();
    doc.LoadHtml(a.SourceEmail);
    var node = doc.DocumentNode.Descendants("div").FirstOrDefault();
    if(nodeCollection != null && node != null)
    foreach (var childNode in nodeCollection)
    node.AppendChild(childNode);
    a.MailItem.HTMLBody = doc.DocumentNode.OuterHtml;
    //using(HtmlTextWriter htmlWriter = new HtmlTextWriter(sw,a.MailItem.HTMLBody))
    // htmlWriter.RenderBeginTag(HtmlTextWriterTag.Div);
    // if(!string.IsNullOrWhiteSpace(signatureNode))
    // htmlWriter.
    // htmlWriter.RenderEndTag();
    }My mail html body is <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:w="urn:schemas-microsoft-com:office:word"
    xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
    xmlns="http://www.w3.org/TR/REC-html40">
    <head>
    <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
    <meta name=ProgId content=Word.Document>
    <meta name=Generator content="Microsoft Word 14">
    <meta name=Originator content="Microsoft Word 14">
    <link rel=File-List href="Sanjay%20S_files/filelist.xml">
    <link rel=Edit-Time-Data href="Sanjay%20S_files/editdata.mso">
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
    <o:OfficeDocumentSettings>
    <o:AllowPNG/>
    </o:OfficeDocumentSettings>
    </xml><![endif]-->
    <link rel=themeData href="Sanjay%20S_files/themedata.thmx">
    <link rel=colorSchemeMapping href="Sanjay%20S_files/colorschememapping.xml">
    <!--[if gte mso 9]><xml>
    <w:WordDocument>
    <w:View>Normal</w:View>
    <w:Zoom>0</w:Zoom>
    <w:TrackMoves/>
    <w:TrackFormatting/>
    <w:PunctuationKerning/>
    <w:ValidateAgainstSchemas/>
    <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
    <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
    <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
    <w:DoNotPromoteQF/>
    <w:LidThemeOther>EN-US</w:LidThemeOther>
    <w:LidThemeAsian>X-NONE</w:LidThemeAsian>
    <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
    <w:DoNotShadeFormData/>
    <w:Compatibility>
    <w:BreakWrappedTables/>
    <w:SnapToGridInCell/>
    <w:WrapTextWithPunct/>
    <w:UseAsianBreakRules/>
    <w:DontGrowAutofit/>
    <w:SplitPgBreakAndParaMark/>
    <w:EnableOpenTypeKerning/>
    <w:DontFlipMirrorIndents/>
    <w:OverrideTableStyleHps/>
    <w:UseFELayout/>
    </w:Compatibility>
    <m:mathPr>
    <m:mathFont m:val="Cambria Math"/>
    <m:brkBin m:val="before"/>
    <m:brkBinSub m:val="&#45;-"/>
    <m:smallFrac m:val="off"/>
    <m:dispDef/>
    <m:lMargin m:val="0"/>
    <m:rMargin m:val="0"/>
    <m:defJc m:val="centerGroup"/>
    <m:wrapIndent m:val="1440"/>
    <m:intLim m:val="subSup"/>
    <m:naryLim m:val="undOvr"/>
    </m:mathPr></w:WordDocument>
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
    DefSemiHidden="true" DefQFormat="false" DefPriority="99"
    LatentStyleCount="267">
    <w:LsdException Locked="false" Priority="0" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 1"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 2"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 3"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 4"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 5"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 6"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 7"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 8"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 9"/>
    <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
    <w:LsdException Locked="false" Priority="10" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Title"/>
    <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
    <w:LsdException Locked="false" Priority="11" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
    <w:LsdException Locked="false" Priority="22" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
    <w:LsdException Locked="false" Priority="20" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
    <w:LsdException Locked="false" Priority="59" SemiHidden="false"
    UnhideWhenUsed="false" Name="Table Grid"/>
    <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
    <w:LsdException Locked="false" Priority="1" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 1"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
    <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
    <w:LsdException Locked="false" Priority="34" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
    <w:LsdException Locked="false" Priority="29" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
    <w:LsdException Locked="false" Priority="30" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 1"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 2"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 2"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 3"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 3"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 4"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 4"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 5"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 5"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 6"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 6"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
    <w:LsdException Locked="false" Priority="19" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
    <w:LsdException Locked="false" Priority="21" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
    <w:LsdException Locked="false" Priority="31" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
    <w:LsdException Locked="false" Priority="32" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
    <w:LsdException Locked="false" Priority="33" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
    <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
    <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
    </w:LatentStyles>
    </xml><![endif]-->
    <style>
    <!--
    /* Font Definitions */
    @font-face
    {font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;
    "Times New Roman";
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    margin:0in;
    margin-bottom:.0001pt;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    "Times New Roman";
    "Times New Roman";
    p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
    "E-mail Signature Char";
    margin:0in;
    margin-bottom:.0001pt;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    "Times New Roman";
    "Times New Roman";
    span.E-mailSignatureChar
    {"E-mail Signature Char";
    "E-mail Signature";}
    .MsoChpDefault
    font-size:11.0pt;
    "Times New Roman";
    "Times New Roman";
    @page WordSection1
    {size:8.5in 11.0in;
    margin:1.0in 1.0in 1.0in 1.0in;
    div.WordSection1
    {page:WordSection1;}
    -->
    </style>
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable
    {"Table Normal";
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    </style>
    <![endif]-->
    </head>
    <body lang=EN-US style='tab-interval:.5in'>
    <div
    <p S<o:p></o:p></p>
    <p
    <p
    <p gte vml 1]><v:shapetype id="_x0000_t75"
    coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
    filled="f" stroked="f">
    <v:stroke joinstyle="miter"/>
    <v:formulas>
    <v:f eqn="if lineDrawn pixelLineWidth 0"/>
    <v:f eqn="sum @0 1 0"/>
    <v:f eqn="sum 0 0 @1"/>
    <v:f eqn="prod @2 1 2"/>
    <v:f eqn="prod @3 21600 pixelWidth"/>
    <v:f eqn="prod @3 21600 pixelHeight"/>
    <v:f eqn="sum @0 0 1"/>
    <v:f eqn="prod @6 1 2"/>
    <v:f eqn="prod @7 21600 pixelWidth"/>
    <v:f eqn="sum @8 21600 0"/>
    <v:f eqn="prod @7 21600 pixelHeight"/>
    <v:f eqn="sum @10 21600 0"/>
    </v:formulas>
    <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
    <o:lock v:ext="edit" aspectratio="t"/>
    </v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:381.75pt;
    height:63.75pt'>
    <v:imagedata src="Sanjay%20S_files/image001.png" o:title="Signature"/>
    </v:shape><![endif]--><![if !vml]><img width=509 height=85
    src="Sanjay%20S_files/image001.png" v:shapes="_x0000_i1025"><![endif]><o:p></o:p></p>
    <p
    </div>
    </body>
    </html>

    Hi ssanjay.brillio,
    According to your description, you'd like to send a email with an embedded image in the signature.
    I suggest you sending the image in the last of the body of email instead of operating the signature of email.
    The following example codes demonstrate how to send email using ImportHtml method with embedded images.
    SmtpMail oMail = new SmtpMail("TryIt");
    SmtpClient oSmtp = new SmtpClient();
    // Set sender email address, please change it to yours
    oMail.From = "[email protected]";
    // Set recipient email address, please change it to yours
    oMail.To = "[email protected]";
    // Set email subject
    oMail.Subject = "test HTML email with embedded image";
    // Your SMTP server address
    SmtpServer oServer = new SmtpServer("smtp.emailarchitect.net");
    // User and password for ESMTP authentication, if your server doesn't require
    // User authentication, please remove the following codes.
    oServer.User = "[email protected]";
    oServer.Password = "testpassword";
    // If your smtp server requires SSL/TLS connection, please add this line
    // oServer.ConnectType = SmtpConnectType.ConnectSSLAuto
    try {
    // Import html body and also import linked image as embedded images.
    // 'test.gif is in c:\\my picture
    oMail.ImportHtml("<html><body>test <img src=\"test.gif\"> importhtml</body></html>", "c:\\my picture", ImportHtmlBodyOptions.ImportLocalPictures | ImportHtmlBodyOptions.ImportCss);
    Console.WriteLine("start to send email with embedded image ...");
    oSmtp.SendMail(oServer, oMail);
    Console.WriteLine("email was sent successfully!");
    } catch (Exception ep) {
    Console.WriteLine("failed to send email with the following error:");
    Console.WriteLine(ep.Message);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • PrintDataGrid's DataGridColumn - Embedded image not printing when you use TextFlow in the item rende

    I'm printing a datagrid using something like  this...
    <mx:PrintDataGrid
      id="printDataGrid" 
      width="100%" 
      height="100%"
      showHeaders="false"
      borderVisible="false"
      horizontalGridLines="false"
      variableRowHeight="true"
      dataProvider="{titles}"
      >
      <mx:columns>
       <mx:DataGridColumn 
        itemRenderer="renderer.TitlePrintRenderer" 
        />
      </mx:columns>
    </mx:PrintDataGrid>
    TitlePrintRenderer.mxml has s:RichText component. I use  RichText's textFlow property to render the text. The approach is working fine  except that if the textFlow has embedded images (<img source=... />), the  images are not printed!
    Is this a bug? Is it a limitation? Has anyone come  across this issue?
    I'm using Flex SDK 4.5.1

    After struggling for 4+ days on using timer / events for printing PrintDataGrid with embedded images in RichText's textFlow, I tried your other suggestion... to convert <img> tags to InlineGraphicElement and give it Bitmap from image loaded from a .gif file. The approach works but the printout skips images in a few rows!
    I've this test case in which, every time I print, it skips printing image in the second row! I also implemented this approach in a more complex test case and depending on the total number of rows, it would skip printing image in different number of rows. I'm suspecting that even if you construct InlineGraphicElement from bitmap loaded from an image, PrintDataGrid's renderer still skips printing image intermittently.
    I would very much appreciate it if you could create small project from my following code and verify this behavior. I'm at my wit's end in getting this printing to work.
    PrintImagesTest.mxml
    =================
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        minWidth="955" minHeight="600"
        initialize="initData();"
        viewSourceURL="srcview/index.html"
        >
        <s:layout>
            <s:VerticalLayout
                paddingLeft="20" paddingRight="20"
                paddingTop="20" paddingBottom="20"
                />
        </s:layout>
        <mx:Button
            label="Print"
            click="printClickHandler();"
            />
        <fx:Script>
            <![CDATA[
                import flash.utils.setTimeout;
                import flashx.textLayout.elements.InlineGraphicElement;
                import flashx.textLayout.elements.ParagraphElement;
                import flashx.textLayout.elements.SpanElement;
                import flashx.textLayout.elements.TextFlow;
                import mx.collections.ArrayCollection;
                import mx.printing.*;
                import mx.utils.OnDemandEventDispatcher;
                public var contentData:ArrayCollection;
                private var embeddedImages:ArrayCollection;
                private var numberOfImagesLoaded:int;
                public var printJob:FlexPrintJob;
                public var thePrintView:FormPrintView;
                public var lastPage:Boolean;
                private var textFlowNS:Namespace = new Namespace("http://ns.adobe.com/textLayout/2008");
                public function initData():void {
                    contentData = new ArrayCollection();
                    var page:int = 0;
                    for (var z:int=0; z<20; z++)    {
                        var content:Object = new Object();
                        content.srNo = z+1;
                        content.contentText =
                        "<TextFlow whiteSpaceCollapse='preserve' xmlns='http://ns.adobe.com/textLayout/2008'>" +
                        "<span>some text</span>" +
                        "<img width='53' height='49' source='assets/images/formula.gif'/>" +
                        "</TextFlow>";
                        contentData.addItem(content);
                public function printClickHandler():void {
                    convertToTextFlow();
                private function convertToTextFlow():void {
                    embeddedImages = new ArrayCollection();
                    numberOfImagesLoaded = 0;
                    for each (var contentElement:Object in contentData) {
                        extractImageInfo(contentElement.contentText);
                    if (embeddedImages.length > 0) {
                        loadImage(embeddedImages.getItemAt(0).source);
                    } else {
                        printData();
                private function extractImageInfo(contentText:String):void {
                    var textXml:XML = new XML(contentText);
                    var imageList:XMLList = textXml.textFlowNS::img;
                    for each (var img:XML in imageList) {
                        var embeddedImage:Object = new Object();
                        embeddedImage.source = String(img.@source);
                        embeddedImage.width = parseInt(img.@width);
                        embeddedImage.height = parseInt(img.@height);
                        embeddedImages.addItem(embeddedImage);
                private function loadImage(imageSource:String):void {
                    var loader:Loader = new Loader();
                    var urlRequest:URLRequest = new URLRequest(imageSource);
                    loader.load(urlRequest);
                    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
                private function imageLoaded(e:Event):void {
                    embeddedImages.getItemAt(numberOfImagesLoaded).bitmap = (Bitmap)(e.target.content);
                    embeddedImages.getItemAt(numberOfImagesLoaded).width = ((Bitmap)(e.target.content)).width;
                    embeddedImages.getItemAt(numberOfImagesLoaded).height = ((Bitmap)(e.target.content)).height;
                    ++numberOfImagesLoaded;
                    if (numberOfImagesLoaded < embeddedImages.length) {
                        loadImage(embeddedImages.getItemAt(numberOfImagesLoaded).source);
                    } else {
                        // all the images have been loaded... convert to textflow
                        buildContent();
                        printData();
                private function buildContent():void {
                    var contentIndex:int = 0;
                    for each (var contentElement:Object in contentData) {
                        if (hasImage(contentElement.contentText)) {
                            buildTextFlow(contentElement, contentIndex);
                            ++contentIndex;
                private function buildTextFlow(content:Object, contentIndex:int):void {
                    var textXml:XML = new XML(content.contentText);
                    var p:ParagraphElement = new ParagraphElement();
                    for each(var child:XML in textXml.children()) {
                        switch (child.localName()) {
                            case "span":
                                var span:SpanElement;
                                span = new SpanElement();
                                span.text = child;
                                span.fontSize = 10;
                                p.addChild(span);
                                break;
                            case "img":
                                var image:InlineGraphicElement;
                                image = new InlineGraphicElement();
                                image.source = embeddedImages.getItemAt(contentIndex).bitmap;
                                image.width = embeddedImages.getItemAt(contentIndex).width;
                                image.height = embeddedImages.getItemAt(contentIndex).height;
                                p.addChild(image);
                                break;
                    content.textFlow = new TextFlow();
                    content.textFlow.addChild(p);
                private function hasImage(contentText:String):Boolean {
                    var textXml:XML = new XML(contentText);
                    var imageList:XMLList = textXml.textFlowNS::img;
                    if (imageList.length() > 0) {
                        return true;
                    } else {
                        return false;
                private function printData():void {
                    printJob = new FlexPrintJob();
                    lastPage = false;
                    if (printJob.start()) {
                        thePrintView = new FormPrintView();
                        addElement(thePrintView);
                        thePrintView.width=printJob.pageWidth;
                        thePrintView.height=printJob.pageHeight;
                        thePrintView.printDataGrid.dataProvider = contentData;
                        thePrintView.showPage("single");
                        if(!thePrintView.printDataGrid.validNextPage) {
                            printJob.addObject(thePrintView);
                        } else {
                            thePrintView.showPage("first");
                            printJob.addObject(thePrintView);
                            while (true) {
                                thePrintView.printDataGrid.nextPage();
                                thePrintView.showPage("last"); 
                                if(!thePrintView.printDataGrid.validNextPage) {
                                    printJob.addObject(thePrintView);
                                    break;
                                } else {
                                    thePrintView.showPage("middle");
                                    printJob.addObject(thePrintView);
                        removeElement(thePrintView);
                    printJob.send();
            ]]>
        </fx:Script>
    </s:Application>
    FormPrintView.mxml
    ===============
    <?xml version="1.0"?>
    <mx:VBox
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:MyComp="myComponents.*"
        backgroundColor="#FFFFFF"
        paddingTop="50" paddingBottom="50" paddingLeft="50"
        >
        <fx:Script>
            <![CDATA[
                import mx.core.*
                    public function showPage(pageType:String):void {
                        validateNow();
            ]]>
        </fx:Script>
        <mx:PrintDataGrid
            id="printDataGrid"
            width="60%"
            height="100%"
            showHeaders="false"
            borderVisible="false"
            horizontalGridLines="false"
            variableRowHeight="true"
            >
            <mx:columns>
                <mx:DataGridColumn
                    itemRenderer="MyPrintRenderer"
                    />
            </mx:columns>
        </mx:PrintDataGrid>
    </mx:VBox>
    MyPrintRenderer.mxml
    =================
    <?xml version="1.0" encoding="utf-8"?>
    <s:MXDataGridItemRenderer
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:bslns="com.knownomy.bsl.view.component.*"
        >
        <s:layout>
            <s:VerticalLayout
                paddingLeft="5"
                paddingRight="5"
                paddingTop="3"
                paddingBottom="3"
                gap="5"
                horizontalAlign="left"
                clipAndEnableScrolling="true"
                />
        </s:layout>
        <fx:Declarations>
        </fx:Declarations>
        <s:HGroup
            width="100%"
            gap="5"
            verticalAlign="middle"
            >
            <s:Label
                text="{data.srNo}"
                color="0x000000"
                fontFamily="Verdana"
                fontSize="10"
                />
            <s:RichText
                id="title"
                width="700"
                textFlow="{myTextFlow}"
                color="0x000000"
                fontFamily="Verdana"
                fontSize="10"
                />
        </s:HGroup>
        <fx:Metadata>
        </fx:Metadata>
        <s:states>
            <s:State name="normal" />
            <s:State name="hovered" />
            <s:State name="selected" />
        </s:states>
        <fx:Script>
            <![CDATA[
                import flashx.textLayout.elements.TextFlow;
                [Bindable]
                private var myTextFlow:TextFlow;
                override public function set data(value:Object) : void {
                    if (value != null) {
                        super.data = value;
                        myTextFlow = data.textFlow;
            ]]>
        </fx:Script>
    </s:MXDataGridItemRenderer>

  • How can I programatically identify PDF files with embedded images?

    Our company has 27,266,949 .PDF files that we're planning to compress in order to save server space.
    We don't want to compress any of the .PDF files that have embedded images as to not alter the image's state.
    How can we programatically create a list to exclude from the compression process?

    Ah, see told you we were new to this and no, my taxs already have enough digits to the balance.
    Ok, so based on that, we should be able to use the preflighting tool to identify the PDF’s with images, factor them out, and then continue with lossless compression on the remaining balance.
    That will give us the compression we need to save space, but also allow us to stand in the court of law (if the scenario was to ever occur) and proclaim that none of our medical images have ever been altered by compression.
    Sound like a reasonable plan?

  • Why can't I print embedded images in a Thunderbird E-mail? I just get blank boxes for the images.

    I am a copyeditor who receives feedback from my clients re: manuscripts I have edited. They will often sent e-mails that include small screen captures from parts of their style guide or screen captures of the proof that is in question (small sections, like a paragraph or an equation, or a header that needs to be coded/styled differently for HTML). Now, I can see these fine in the e-mail, but when I go to print them out for my reference binder, the embedded images don't print.
    Mozilla, I need these to print; they are quite important to my job.
    To keep my e-mail from becoming too bloated, I save these important style issue e-mails into a folder on my desktop I call "Print out for binder", queuing them for the day I can print a bunch of them out and arrange them according to subject matter.
    Problem is, they are useless if they don't include these illustrative screen captures; blank boxes are worthless to the context.
    It is not my printer that is the problem. if I receive a Word doc with these screen captures, they print fine. But if I try to print from T-Bird, no go. Help. (I can't save these e-mails as Word docs either, which might solve the problem; the only options in T-Bird are "Save as file" or "Save as template".)
    Thunderbird is a powerful e-mail program, and one I have been using for over a decade. Why can't it perform this function? Please help. Or point me to an add-on. I haven't been able to find one that addresses this seemingly straightforward, common, and simple problem.

    When you select File(or AppMenu/Print)/Print Preview, do the images appear? Do the images print if you check 'Print background (colors & images)' under File/Page Setup? I don't have any problems printing a message with an embedded image, at least to an xps file.
    I devised a workaround that might help, failing a real solution: install [https://addons.mozilla.org/en-US/thunderbird/addon/unmht/ unMHT] in both TB and Firefox, and then File/Save As MHT in TB. Open the mht file in Firefox, and Print.

  • I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to sen

    I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to send emails with photos embedded. I like adding the frames and backgrounds and I think it's easier for recipients to look at the photos. Thanks for any suggestions of things to try.
    Gail

    I had a similar problem in that my wife's iphone 5 could not send pics with imessage.  Had to set the settings to default to SMS or whatever.  After laboring many hours on the web I coincidentally was on the phone with the internet people to question my internet speed.  They changed the router channel, which is something that I am capable of doing myself.  After that, the pics go over imessage.  My own Iphone didn't have the problem.  We are both latest IOS 7.0.6.

  • Extract Embedded Images-did you know that-

    there is actually a feature in Illustrator to do this even though it is not called Extract Images?
    Not only that once you extract the image you can update it as well  you do not have to lace it again and reposition it.
    When I saw this and realize it was there I could not believe it as it has been asked so many times and there have been numerous work arounds.
    The reason I think it has passed everyone by is that it is not located in the links panel.
    So to the chase.
    Edit>Edit Image
    and then
    Edit>Update Image
    The former opens the embedded image in Photoshop
    edit it there and then save it
    then back in Illustrator go to the latter and it will be updated.
    Never noticed this before.
    The only draw back is that it seems to only work on one image at a time.
    I wonder how many users here knew about this little feature?

    Monika Gause wrote:
    rijackson741 wrote:
    Copy and paste doesn't retrieve the original image.
    Why not?
    You will have trouble getting the original resolution in case the image has been scaled in Illustrator.
    Yes you're right about that, and it is the best way if you have the original Illustrator file with the embedded image.
    In my defense, I'm mostly having to do this sort of thing with PDFs that are sent to me. Most cases I have to change something in the PDF or pull artwork out for another project we are working on. After opening the PDF in Illustrator, we then just copy the image and even paste it straight into an email (Mac) and request the original file. If the original is not to be had, we then paste the image into a new Photoshop file and relink it. If need be, we'll replace it with another image later.
    @rijackson --- you most surely can "Relink"... well that's what the button you choose in Illustrator is called... even if the image is embedded. This will place the image in the exact same place and size as the embedded image, thus "linking" it if you checked the Link box when placing.
    Also, you can always choose Link Information and see what transformations the image has went through regarding size and rotation. This is also with a native Illustrator file only. The information can be used to calculate what you need to do to the image to revert to it's original size and rotation. Rather unfortunate, because something intuitive like Freehand used to have, like changing the percentage and angle in the Appearance panel was far better and easier to revert images, embedded or linked.
    @rijackson --- considering all of the features and functions that Illustrator still does not have or are incomplete... yes, Illustrator as a whole is pathetic as the only pro vector alternative on the market. Not just this one omission, which is easily worked around. That's what I was trying to say to wazi9909.
    * I just thought it should be mentioned again, that Monika's correct answer only applies to a native Illustrator file if you have it, AND if you save with PDF Compatibility or as an Illustrator native PDF. With any and all other PDFs saved with a preset like for prepress... the images have been compressed, and will be as we call them "baked". No matter how you copy, paste, export or open, the resolution, size and quality is "finished".

  • How do I hide the file names/path names of embedded images in a PDF document?

    I created a PDF document from a Word document, and the problem is that the PDF document shows the file names and path names for all of the embedded images in the PDF document. I don't want that information displayed. I don't want to send the PDF out to clients and have them read the names I've assigned to those images, plus it looks messy. And I've lost many of the original image files so they only exist in the Word document, thus I can't go back and rename them. I searched the internet for an answer but I couldn't find one anywhere.

    When you create a tagged (accessible) PDF file from Word, placed bitmap images will use their filename as the "ALT text" if you don't define something else for the text to say, because an image without any ALT text is a failure against the accessibility standards. You can't change that default action, so you should put your own meaningful text into the ALT field for each image - which is what you should be doing anyway if the PDF is standards-compliant.
    You can can set the text in Word, but it depends on your version as to where the dialogs are - Google for it - or you can change/delete it in Acrobat using the tags navigation pane on the left side of the window (right-click the sidebar if it's not visible). Drill down through the tags structure to find the "<Figure>" tag you want to change, right-click and choose Properties, then put something in the "Alternative text" field. This process isn't something you can easily automate, but if you don't need tags at all, you can save without tags (or print to PDF).

  • Sql server reporting services + export to excel + embedded images

    Hi all,
    i got a problem when exporting to excel in ssrs 2008.
    i use embedded image in the report. but when i export the report to excel, image is being exported but its width is being changed to size 0 .
    but when i click on it and expand it explicitly in excel it is being expanded .
    how to make the image by default to its actual width?
    how to fix this problem ?

    Hi sudeep Puvvadi,
    Based on the information posted, I have a test with SQL Server Reporting Services 2008 (SSRS2008) and Microsoft
    Excel 2010 by the following steps:
    From the Toolbox window, drag the image to the top edge of the design surface.
    In the image Properties dialog box, select Embedded from the Select The Image Source drop-down list.
    Click import, and select a BMP file from my local computer.
    Right-click the image, select Image Properties. In Size category, select Original size.
    Export the report to excel.
    When opening the excel file, the image displays with original size rightly. So I suggest you to add an image with
    the same steps above, then checking whether the image shows correctly. If it still cannot work fine for you, could you please give me a feedback and tell me related settings, so that I can reproduce the scenario exactly and provide further assistance?
    Thanks,
    Lola Wang
    Please remember to mark the replies as answers if they help.

  • Mail not showing embedded images

    This problem has been bugging me for a while.
    I am getting some emails (from my company communications) that are incorrectly formatted by Mail. I see big boxes labeled "Missing Plug-in". The rest of the text is there, but those big boxes make the mail hard to read.
    So today I decided to look a bit deeper into the problem. I brought it down to the presence of image tags that call for embedded images (included as attachments) using the "cid:" protocol. For example:
    <img src="cid:[email protected]" alt="Find" border="0">
    Is this a restriction in mail (I am running mail 6.1 on Mountain Lion). Or is there some config parameter I need to tweek to enable support for embedded images ?
    Thunderbird has no problem. I also did a quick check with Google Mail and Yahoo Mail, and neither show the images. But they just show nothing, so the resulting email is still readable. Mac OSX Mail shows big boxes with the "Missing Plug-in" note. I would be happy if Mail just ignored the images.
    I should point out that mail on iPhone and iPad work fine (they display the images).
    Albert

    Try this - worked for me...
    https://discussions.apple.com/message/20652845#20652845
    If that doesn't link properly, here's the original solution, cut and pasted:
    "MailPluginFix"
    From the Code2K:Labs site: http://code2k.net/products/mailpluginfix/
    From MacUpdate: http://www.macupdate.com/app/mac/37804/mailpluginfix
    Just download the fix and double-click it - next time you open mail, you'll see your attachments.

  • Issue opening .AI file with linked/embedded images in Illustrator 6

    Received an Illustrator 16.x ai file with 6 Linked\embedded images. Opening in Illustrator 16.0.3 2 images are missing, but opening in Illustrator 15.1 opens them correctly. Illustrator 16.0.3 has warning "Could not find linked file “filename.png”. Choose replace to select another file or Ignore to leave the link unchanged". Illustrator 15.1 has warning "The file “filename.ai” was created by a newer version of Illustrator. Would you like to import this file? Some data loss may occur.". When I open in Photoshop 12.1 and select Images only 4 images show. The two that are missing in ai. are not showing in Photoshop Images option tab, but are in Photoshop when I open the file using pages option tab. Any idea what is happening here and why Illustrator 15.1 opens fine, but Illustrator 16.0.3 cannot?
    Thanks,  Dale

    Illustrator CS5 opens the PDF part of the file. Images are always embedded in that part, but you might not be able to edit all objects in it.
    Illustrator CS6 will access the AI part of the file, where linked images are not embedded. You should ask for the images in order to edit the file.
    Recommended reading: Real World Illustrator: What's in a file?

Maybe you are looking for

  • Programmatically: Support content types in the gallery and for content types associated with a document library

    Hi there, Help appreciated in programmatically 'Supporting content types in the gallery and for content types associated with a document library'. Any resources/references or source is greatly appreciated. Regards,

  • Export to Livetype - resolution doesn't match

    I've got a 720p project in FCE, when I say export to Livetype so i can set up the titles in the right places, two things I want don't happen... (1) It exports it as 4:3 even though I'm importing to a 720p matching project in LT (2) I want to be able

  • Variable on Workbooks

    Hi guys, I've a simple Balance Sheet query. I changed the look (colours, fonts, etc) and saved it as Workbook. It looks nice now but the variables for selection are not displayed anymore. The workbook take the variables that were saved from the query

  • Formattin a varchar2(240) column

    hi, I need help with formatting a column varchar2(240) where it contains data like the following: +1. OSP FIBER ACCESSORY-CLOSURE-FIBER-48 F-CAPITAL-NONE-NONE+ +2. OSP PVC-PVC PIPE-NONE-50 M.M-CAPITAL-NONE-NONE+ +3. OSP PVC ACCESSORY-BEND PIPE-BEND P

  • Cannot be applied

    Hello, I am trying to call the method print(); Could someone please tell me what parameters i need to put in to get it to call? Right now its giving me a cannot be applied error. The print() method is in the Coin class which is a different class. Tha