<< Click to Display Table of Contents >> How to use EasyPDFMaker with AnyScreen |
The general idea is this: in the pdfMaker.TakePDFFile (STRING pFile) method, after a PARENT.TakePDFFile (pFile) successful call, we need to convert the path to the pdf file into a URL using AnyScreen:GetURL and then open this URL using AnyScreen:OpenURL like so:
pdfMaker.TakePDFFile PROCEDURE(STRING pFile)
loc:errMsg ANY
CODE
SETTARGET(Window)
loc:errMsg = PARENT.TakePDFFile(pFile)
IF loc:errMsg = '' AND AnyScreen:Active()
AnyScreen:OpenURL(AnyScreen:GetURL(CLIP(pFile), 1))
END
RETURN CLIP(loc:errMsg)