Home
TeamSite
creating a zip of all documents
kuruption213
Hi,
I am extremely new to Worksite and am currently using 7.5. My client would like a way to print all of their files at once. What I suggested was downloading a zip of all the documents associated with a particular case id. Once downloaded they could highlight all the documents, right click and and press print.
This is a web solution integrated with worksite, so when they press the download all button I'm going to an aspx page that passes all of the document id's. From here I was thinking of making a SQL and getting the latest version of each document. But how do I physically get the documents to be stored in a temporary directory, so that I can zip them up and have them be downloaded by the user?
If anyone can provide any help on this I would really appreciate it.
Thanks.
Find more posts tagged with
Comments
jny
You may search for documents stored in the WorkSite database via the SearchDocuments (off of a database or session) Method exposed by the imanage.dll which is distributed by the SDK. Once you have a handle to each of the documents, you may call the GetCopy Method off of the document object to download the physical file locally.
See iManCOMManual.pdf in your WorkSite iToolkit for further clarification on the SearchDocuments and GetCopy methods.
Please do not query for the document files directly from the database. Database access is carefully tuned to insure scalability and concurrent access. If you access the database directly, you throw out all of this careful tuning and run a high risk of your system being unavailable. In all, it goes against the core of the WorkSite 3-tier architecture design.
kuruption213
jny thanks for your help the GetCopy method was what I needed.