什么是自動填寫預制表格的最佳方式 - What would be the best way to automate filling in a premade form in word -开发者知识库

什么是自動填寫預制表格的最佳方式 - What would be the best way to automate filling in a premade form in word -开发者知识库,第1张

Ok for my work we handle a lot of calculation documents. All of these have coversheets and revlogs that must be generated. We can easily create an excel file that has most of the information needed to fill in the forms but automating the actual process of filling in these forms that are premade in word has proven tricky. I used macros to some success but if something about a specific form differed to greatly the entire thing would mess up and I still had to open each word file individually and then hit the macro.

好的,我的工作我們處理了很多計算文件。所有這些都必須生成封面和revlog。我們可以輕松創建一個excel文件,其中包含填寫表單所需的大部分信息,但自動化填寫這些表單的實際過程已經證明是難以理解的。我使用宏取得了一些成功,但如果某個特定形式的某些內容大不相同,整個事情就會搞砸,我仍然需要單獨打開每個單詞文件然后點擊宏。

Some of this process isn't going to be automatable as it requires pulling information from pdfs that isn't always in a standard format but any fast automation would be better than none. I have a good bit of c experience (by a good bit I just mean several courses on data structures etc, nothing way too high level). I have also used python some and stumbled my way through visual basic a tad.

這個過程中的一部分不會自動化,因為它需要從pdf中提取並不總是采用標准格式的信息,但任何快速自動化都會比沒有更好。我有很多c 經驗(有點我只是指幾門關於數據結構的課程,沒什么太高的水平)。我也使用了一些python,並且通過視覺基礎偶然發現了我的方式。

Any idea on how to go about automating generating sometimes 100 of these forms?

關於如何自動生成有時100多種這些形式的任何想法?

1 个解决方案

#1


0  

MS-Word has extensive programming capabilities built in ("Visual Basic for Applications (VBA)" These exact same programming capabilities are available to applications you write in any language, including C , that can access Word via COM. Depending on your needs, it could be possible to fill in an entire Word document from one click to run such a program.

MS-Word具有內置的廣泛編程功能(“Visual Basic for Applications(VBA)”這些完全相同的編程功能可用於您使用任何語言編寫的應用程序,包括C ,可以通過COM訪問Word。根據您的需要,它可以通過一次點擊填寫整個Word文檔來運行這樣的程序。

最佳答案:

本文经用户投稿或网站收集转载,如有侵权请联系本站。

发表评论

0条回复