阅读背景:

从ASP.Net 4.0流出到MS Word时,如何设置IMG的宽度?

来源:互联网 

I'm streaming out to MS Word a document in HTML. It's working fine and the document downloads and opens in Word as expected. However, I'm on to my next trick and I want to include an Image in the file. I don't know the exact size of the image, however, as it is variable based on the users upload. So, I tried setting the image width as follows IMG Width=100px ... but the image came into word at full size. I also tried IMG style="width:100px" ... but the same result. I also tried IMG style="width:10%" ... same problem. I went to google but couldn't find anything useful on this. Thought I would try reaching out to you folks. Does anyone happen to know to set the width of an image when streaming to an MS Word document? I'm streaming out to MS Word a document in HTML




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: