使用以下SQL,我可以在网上得到文档和小缩略图的列表:
select document_account_name
|| document_references_yourref
|| year(document_date) || '-' || month(document_date) || '-' || day(document_date)
|| '.pdf'
pdffilename
, binarydata
from exactonlinexml..documentattachments
where document_documenttype_number_attr = 20
and lower(name) like '%pdf'
当我试图使用Invantive控件从ExactOnlineXML..Documents
导出文档时,当我执行以下操作时,会得到一个电子表格或文本文件,其中包含文件名和内容:
local export results as "c:\export\dump.csv" format csv
但是,我想转储实际的文件内容。是否有办法这样做?
发布于 2016-10-13 08:00:07
有几个步骤你必须遵循。
首先,您必须指定保存文档的位置。您还可能需要创建一个文件夹来将它们存储在:
local define dctoutpath "${system:userdesktopdirectory}\invantive-control-for-exact-online\downloads"
local create directory "${dctoutpath}\HID\${dctdescription}"
然后,您可以从网上获得文档附件。您可以通过精确的在线XML服务中的DocumentAttachments
表来实现这一点。(如果您使用的是组合提供程序,这里需要前缀ExactOnlineXML..
)
select binarydata
, name
from ExactOnlineXML..DocumentAttachments
最终,您可以通过以下方法导出文件:
local export documents in binarydata to "${dctoutpath}\HID\${dctdescription}" filename column name
注意,binarydata
和name
必须匹配您从上一次查询中保存的字段。(根据您的编辑:而不是name
,这里需要pdffilename
)
https://stackoverflow.com/questions/40014745
复制相似问题