Darwin

Darwin

How to elegantly export attachments from Tencent Document collection forms

Before starting, you may need to prepare:

  • A PC running Windows 7 or a newer version
  • A good compression software

Sample question settings for the collection form used in this practice

Screenshot2021-09-06-11.46.39-PM-1024x723

After waiting for classmates to upload the collection form, export the collection results to Tencent document spreadsheet. Click the "View in Spreadsheet" button next to "Collection Results"

QQ20210906-234142@2x-1024x599

In the newly opened tab, click the menu [Export As]—>[Local Excel Spreadsheet and Attachments (.zip)], to export the collection results compressed package containing attachments

D59B2CBB-C1E2-4CE2-B9CE-1E4798EC2B7C-1024x599

Unzip the downloaded compressed package, the contents are as follows

QQ20210906-235218@2x-1024x659

Next, use Easy Language to write a batch processing program, the following is sample code, the complete source code can be downloaded at the end of the article

Screenshot2021-09-07-1.02.19-AM-1024x753

Open the program generated after compilation. This program can be downloaded at the end of the article.

Screenshot2021-09-07-12.37.28-AM-1024x902

Screenshot2021-09-07-12.36.16

Fill in the relevant settings.

  • [Attachment Directory] Please select the directory that contains the collected result attachments, such as C:\Users\zhouminghao\Desktop\image\
  • [Attachment Prefix Identifier] Characters before the name in the file name, such as two codes one report screenshot (non-Yu nationality)-*-Question 2- 【Note】 Text that will change with the file should be replaced with *
  • [Attachment Suffix Identifier] Characters after the name in the file name, such as -

After filling in the settings, it should look like this:

Screenshot2021-09-07-1.05.01-AM-1024x902

Click the "Create Separate Directory for Them Now" button, the program will automatically place the attachments uploaded by each classmate in a folder named after their name under the result directory

QQ20210907-010653@2x-1024x704

At this point, you have successfully and elegantly exported the Tencent document collection form attachments.

The attachments involved in this article can be downloaded here:

(As of April 6, 2022, the supporting tools have been adapted to the 2022 new version of Tencent documents and are open source)

Loading...
Ownership of this page data is guaranteed by blockchain and smart contracts to the creator alone.