Problem with image not showing up in html


Author
Message
Tom Galczynski
Tom Galczynski
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 29, Visits: 87
Hi guys. I am having trouble with images that I paste into the NOV RichTextView control not showing up when saving to html. I have attached 3 files to illustrate what I mean. nevronpictures.png shows the images as they appear in the control, along with some text in a 3 row single column table. First and third cells have an image, second cell text. I save the source to html (see attached file picturetest.html.txt). The html output seems to include the images, but when I open the html in Chrome, the images do not appear. Please see attached file nevronchrome.png to show what I see in Chrome.
The only unusual thing we are doing with html is we added a NHtmlSaveSettings.InLineStyles = True to correct problems we had with CSS in our html emails and Outlook. Is there anything else you can see that might be causing this issue?

Appreciate your help! Thanks,
Tom G.
Attachments
nevronpictures.png (526 views, 132.00 KB)
nevronchrome.png (540 views, 17.00 KB)
picturetest.html.txt (654 views, 137.00 KB)
Reply
Tom Galczynski
Tom Galczynski
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 29, Visits: 87
The user cuts and pastes the images directly into the control.  Then we essentially SaveToStream as RTF format:

Public Property Stream As System.IO.MemoryStream
    Dim richTextView As Nevron.Nov.Text.NRichTextView = Me._currentView
    If richTextView IsNot Nothing Then
      Dim currentLayout As Nevron.Nov.Text.ENTextLayout = richTextView.Content.Layout
      Try
       richTextView.Content.Layout = Me._currentLayout
       Dim MS As New System.IO.MemoryStream
       richTextView.document.Evaluate()
       If Me.Format = DocumentFormats.Html Then
        'Use inline styles because Outlook doesn't handle css well.
        Dim saveSettings As New Nevron.Nov.Text.Formats.Html.NHtmlSaveSettings
        saveSettings.InlineStyles = True
        richTextView.SaveToStream(MS, Me.DocumentFormat, saveSettings)
       Else
        richTextView.SaveToStream(MS, Me.DocumentFormat)
       End If
       Return MS
      Finally
       richTextView.Content.Layout = currentLayout
      End Try
    End If
(There's more in the attached txt file.)
Let me know if you need more. Thanks!
Attachments
nev_codesnip.txt (539 views, 3.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search