[英]How to set Microsoft Word document section or paragraph to read only using DocumentFormat.OpenXml
[英]How to paint image into MS Word document using DocumentFormat.OpenXML if I have a Base64 encoded string?
我有一個Base64編碼的字符串,我希望將其轉換為圖像並使用DocumentFormat.openXML在Word文檔中進行繪制
作為常規的二進制圖像。 要獲取字節,請使用Convert.FromBase64String(theBase64string)
;對於流,請使用MemoryStream
:
using(var m = new MemoryStream(Convert.FromBase64String(theBase64string)))
{
//here, same code to insert regular binary images
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.