Unable to grab the swatches from the Table of Contents because the Image URL is coming back as empty.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM043013
Submitted
March 3, 2009
Last Modified
April 2, 2025
Applies to
No Product Found
Version found
9.3
Status
Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
Additional Information
No Public Explanation
Workaround
It is still possible to grab the swatches from the table of content using MIME data still. The MIME data has to be converted to an image and that image will have to be saved onto the server machine in a location that the web server can find. Here is the code below: Dim sym1 As TocSymbol = Toc1.Nodes(0).Nodes(1).Nodes(0).Data Dim ms As <a href="http://System.IO" target="_blank">System.IO</a>.MemoryStream = New <a href="http://System.IO" target="_blank">System.IO</a>.MemoryStream(sym1.Image.MimeData.Bytes) Dim returnImage As System.Drawing.Image = System.Drawing.Image.FromStream(ms) returnImage.Save("<a href="file:C:/Inetpub/wwwroot/incidents/704846_TOCImages/images/1.gif" target="_blank">C:\Inetpub\wwwroot\incidents\704846_TOCImages\images\1.gif</a>") Image1.ImageUrl = "<a href="http://localhost/incidents/704846_TOCImages/images/1.gif" target="_blank">http://localhost/incidents/704846_TOCImages/images/1.gif</a>"