Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   PrintDocObject
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
Websites/CMS
Website development
Publication functions
 
Functions for publisher database
Navigation path library
Provides HTML output control functions
Templates
Utility library for static publications
PrintDocObject
  Prints the formatted contents of a DocObject.
 
Library module::publisher/template-v2.whlib
 
Syntax PUBLIC MACRO PrintDocObject (INTEGER objectid,INTEGER filterid)
 
Description PrintDocObject prints the contents of object with ID = DocObjectID to the last opened file. All formatting, as
present in the object, will be retained.
 
Parameters
objectid ID of the docobject to print
filterid ID of filter to use. No longer supported, should always be 0
 
Example
// Print the contents of the first page of a document
// select all objects on the first page
RECORD ARRAY AllObjects := SELECT *
FROM DocObjects
WHERE DocObjects.Page = 1;
// loop through the objects and print their contents
FOREVERY (RECORD ThisObject FROM AllObjects)
{
PrintDocObject (ThisObject.id,0);
}
 
In library 'template-v2'
AddPublicationWarning
CloseFile
CorrectHyperlink
CreateFile
CreateFileFromBlob
DeletePage
FindDocObject
FindPage
GetConvertedHyperlinks
GetCurrentPageId
GetCurrentPageName
GetCurrentPageUrl
GetDocObjectLink
GetDocObjectRawText
GetFileLinkByName
GetHTMLDocId
GetHTMLFileId
GetPageLink
GetPageLinkByName
GetSourceDocumentInfo
GetTocChildren
GetTocChildrenIDS
GetTocTree
GetTocTreeIDS
InsertPage
MakeDocObjectLink
MakeFileLinkByName
MakePageLink
MakePageLinkByName
OpenFile
PrintAnyPage
PrintDocObject
PrintPageBody
RenamePage
SetAbsoluteLinks
SetupHTMLOutput
 
Top To top of page