6

请问微软 c# Microsoft.Office.Interop 这个玩意是不是已经废弃了

 2 years ago
source link: https://www.v2ex.com/t/816097
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

请问微软 c# Microsoft.Office.Interop 这个玩意是不是已经废弃了

  pmispig · 1 天前 · 860 次点击

看到已经好几年没更新了,也不支持 office 2016 请问微软官方有替代品吗? 主要用来 word 转 pdf

5 条回复    2021-11-18 10:38:41 +08:00

thedrwu

thedrwu   1 天前 via Android

试过各种 api ,还是 vbs 最完美

BurneJones

BurneJones   1 天前 via iPhone

在 Word 程序里选另存为,然后文件格式选择.PDF 即可另存为 PDF 文档了

cyersvet

cyersvet   1 天前

直接在依赖项右键选 COM 引用,勾选 Microsoft Word 16.0 Object Library 就行

nuknuk   22 小时 23 分钟前

支持 2016 的

hdczsf

hdczsf   12 小时 22 分钟前

可以安装 libreoffice,然后使用 soffice 命令转,例如:
soffice --headless -env:UserInstallation=file:///home/office2pdf/profile/1 --safe-mode --minimized --nologo --convert-to pdf /home/office2pdf/src_files/xxxxxxxx.docx --outdir /home/office2pdf/dest_files

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK