Hi,
I tried to print PDF File, but I failed.
/*------------------------------------------------------*/
DEFINE VARIABLE pPDFFile AS CHARACTER NO-UNDO.
DEFINE VARIABLE ch_Acro AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE ltmp AS int.
pPDFFile = 'c:\Test.pdf'.
CREATE "AcroPdf.PDF" ch_Acro .
IF ERROR-STATUS:ERROR THEN RETURN "Cannot Find Acobat COM Automation Object".
ch_Acro:Src = pPDFFile.
ltmp = ch_Acro:LoadFile(pPDFFile).
ch_Acrorint().
RELEASE OBJECT ch_Acro.
/*------------------------------------------------------*/
I get no error message, but nothing is gonna happen.
Can you help me please?
I tried to print PDF File, but I failed.
/*------------------------------------------------------*/
DEFINE VARIABLE pPDFFile AS CHARACTER NO-UNDO.
DEFINE VARIABLE ch_Acro AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE ltmp AS int.
pPDFFile = 'c:\Test.pdf'.
CREATE "AcroPdf.PDF" ch_Acro .
IF ERROR-STATUS:ERROR THEN RETURN "Cannot Find Acobat COM Automation Object".
ch_Acro:Src = pPDFFile.
ltmp = ch_Acro:LoadFile(pPDFFile).
ch_Acrorint().
RELEASE OBJECT ch_Acro.
/*------------------------------------------------------*/
I get no error message, but nothing is gonna happen.
Can you help me please?