Unable to grab the swatches from the Table of Contents because the Image URL is coming back as empty.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM043013
已提交
March 3, 2009
上次修改时间
April 2, 2025
适用范围
No Product Found
找到的版本
9.3
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
No Public Explanation
解决办法
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>"