How to use EasyPDFMaker with AnyScreen

<< Click to Display Table of Contents >>

Navigation:  EasyPDFMaker documentation > Getting started > Step by Step > Working with PDF file > Conceptual examples >

How to use EasyPDFMaker with AnyScreen

Previous pageReturn to chapter overviewNext page

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)