FileCollection.SaveAsZipFile Method
This method adds each file represented by a file name in the FileCollection to a .ZIP file.
Syntax
void SaveAsZipFile ( string zipFilePath )
Parameters | Description |
zipFilePath | The file system path for the new zip file. |
Example
' This example adds two files to a file collection and then displays the number of ' files in the collection. Then it adds the files in the collection to a zip file. Dim fc Set fc = Server.CreateObject("HotDocs_Online.FileCollection") fc.Add "c:\inetpub\wwwroot\files\demoempl.docx" fc.Add "c:\inetpub\wwwroot\files\clauses.docx" Response.Write fc.Count & "<br>" fc.SaveAsZipFile "c:\inetpub\wwwroot\files\zipped.zip"