none
<HR> line displaying as broken image link RRS feed

  • Question

  • Hi,
    I have some code which generates a signature in Outlook. The signature is created in HTML. I then use Word to open the html, Save as RTF. Once saved and before closing the active document I perform the following changes to all inline shapes to ensure that the images originally included in the HTML are embedded and saved with the document. The active document is then saved once more.


    foreach (Word.InlineShape inlineShape in wdapp.ActiveDocument.InlineShapes)
                {
                   Debug.WriteLine(string.Format("InlineShape {0}", inlineShape.AlternativeText));
                    if (inlineShape.Type == Word.WdInlineShapeType.wdInlineShapeHorizontalLine)
                    {
    Debug.WriteLine("wdInlineShapeHorizontalLine")
                    }
                    if (inlineShape.LinkFormat != null)
                    {
                        Debug.WriteLine(string.Format("SourcePath {0}", inlineShape.LinkFormat.SourcePath));
                        Debug.WriteLine(string.Format("SourceName {0}", inlineShape.LinkFormat.SourceName));
                        inlineShape.LinkFormat.SavePictureWithDocument = true;
                        Debug.WriteLine("Saved");
                    }
    As part of the original HTML there is a HR line break. This converts as a wdInlineShapeHorizontalLine which displays fine in any Outlook client as a RichText email however if the RichText email is viewed in OWA the line break is displayed as an image with a broken link. Is there anyway round this?



    • Moved by Cindy Meister MVP Monday, October 8, 2012 2:24 PM outlook-specific (From:General Office Development)
    Monday, October 8, 2012 11:12 AM

All replies

  • Hi BeMor,

    Thanks for posting in the MSDN Forum.

    I will involve some experts into your issue to see whether they can help you. There might be some time delay, appreciate for your patience.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, October 9, 2012 6:41 AM
    Moderator
  • Hi BeMor,

    Word/Outlook renders different than OWA/IE. I believe that this issue is more related to the capabilities of Outlook rendering rather than the Outlook programming..

    Given the complex scenario, your question falls into the paid support category which requires a more in-depth level of support.  Please visit the link below to see the various paid support options that are available to better meet your needs.

    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone

    Regards,

    Shailesh G. Rajput
    ______________________________________________
    Microsoft Developer Support - Messaging & Collaboration

    Thursday, November 22, 2012 4:23 PM