admin管理员组文章数量:1290935
The objective is to replicate the formats of source sheets in Excel to target sheets without recourse to the Excel.Range.PasteSpecial
function of Microsoft.Office.Interop
, on account of the fact that this function uses the clipboard and is slow.
Are there any alternatives to this:
source.Range[address].Copy();
target.Range[address].PasteSpecial(Excel.XlPasteType.xlPasteFormats, Excel.XlPasteSpecialOperation.xlPasteSpecialOperationNone, false, false);
The option of replicating the formats by hand with copying the font and colour is not a reliable solution and should be avoided. Is a potential solution may be a C API interaction?
本文标签: cPasting Excel formats in MicrosoftOfficeInterop without clipboardStack Overflow
版权声明:本文标题:c# - Pasting Excel formats in Microsoft.Office.Interop without clipboard - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741520892a2383176.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论