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);
}