Returns a string containing the content of the specified document, as well as strings containing the document’s description and security class.
SaveDocument and SaveDocumentEx create a document from a string. |
<HFMwManageDocuments>.GetDocument (bstrPath, bstrName, lDocumentType, lDocumentFileType, pvarbstrDescription, pvarbstrSecurityClass)
The document type of the document. Document types are represented by the HFMConstants type library constants listed in Document Type Constants. | |
The file type of the document. File types are represented by the HFMConstants type library constants listed in Document File Type Constants. | |
Returns a string that contains the content of the document.
The following function saves the content of the specified data form to disk.
Function saveWebFormToDisk(sDocFolder, sFormName) Dim cHFMDocuments, sText, sDesc, sSecClass, oFs, oTs Set cHFMDocuments = _ Server.CreateObject("Hyperion.HFMwManageDocuments") cHFMDocuments.SetWebSession cHFMSession sText = cHFMDocuments.GetDocument(sDocFolder, sFormName, _ WEBOM_DOCTYPE_WEBFORM, WEBOM_DOCFILETYPE_FORMDEF, sDesc, _ sSecClass) ' Write the string to disk as a text file set oFs = CreateObject("Scripting.FileSystemObject") set oTs = oFs.CreateTextFile("c:\temp\" & sFormName & ".txt") oTs.Write(sText) oTs.Close End Function