san*_*lla 2 vb.net ms-word richtextbox
我将单词内容复制到richtextbox而没有完全失去格式,但现在我正在编辑richtextbox中的内容.现在我想将richtextbox内容复制到word文档而不会丢失任何格式化,在vb.net中.你怎么做呢?
您可以将RTF内容复制到剪贴板:
Clipboard.SetText(richTextBox1.Rtf, TextDataFormat.Rtf);
Run Code Online (Sandbox Code Playgroud)
将其粘贴到Word时,将保留格式
| 归档时间: |
|
| 查看次数: |
3033 次 |
| 最近记录: |