截图:

尝试在MS Access 2010中的IE web浏览器控件中显示大图像(大于5000x5000)时,图像不会显示。
我使用VBA来导航和向对象的文档写入内容。我已经测试了这两种方法,并且得到了相同的结果。较小的图像渲染没有问题。
LE代码如下:
Private Sub DisplayImg(bWrite As Boolean)
Dim sHTMLFilePath As String
Dim sImageFilePath As String
Dim sContent As String
sImageFilePath = "d:\img.png"
sHTMLFilePath = "d:\html.html"
sContent = "<html>"
sContent = sContent & vbCrLf & "<head>"
sContent = sContent & vbCrLf & "</head>"
sContent = sContent & vbCrLf & "<style>"
sContent = sContent & vbCrLf & GetCSS ' gets css from db
sContent = sContent & vbCrLf & "</style>"
sContent = sContent & vbCrLf & "<body>"
sContent = sContent & vbCrLf & "<img class=" & Chr(34) & "img_wb" & Chr(34) & " src=" & Chr(34) & sImageFilePath & Chr(34) & ">"
sContent = sContent & vbCrLf & "</body>"
sContent = sContent & vbCrLf & "</html>"
If bWrite = False Then ' navigate
Call CreateNewTextFile(sHTMLFilePath, sContent) ' creates the html file
Me.wb.navigate sHTMLFilePath
Else ' write
Me.wb.Document.Clear
Me.wb.Document.write sContent
Me.wb.Document.Close
End If
End Sub发布于 2015-09-16 21:25:45
你确定你能做到吗?否则,您可以在此处重新设置图像像素:http://www.garyshood.com/imageconvert/
我在GoDaddy帮助中找到了这样的内容:“注意:图片需要格式化为.jpg、.jpeg、.gif或.png文件。图片上传限制为每个文件30MB。虽然可以上传5000 x 5000像素的图片,但显示的图片不会大于1920 x 1080像素。”
https://stackoverflow.com/questions/32603424
复制相似问题