Kill process ADOBE PDF ?!

Kill process ADOBE PDF ?!

Postby AOKISANTOS » Mon May 14, 2007 3:10 am

**************************
function pdfMain(Nomerel)
**************************
local poWnd, oActiveX,IDPDF:=""

IF ! PDFActivex(@IDPDF)
RETURN(.F.)
ENDIF

nomerel:=if(nomerel=nil,"PDF Relatório",nomerel)

DEFINE WINDOW poWnd TITLE ".::"+alltrim(sis_1nom)+"::. "+nomerel+" - "+IDPDF

oActiveX = TActiveX():New( poWnd, IDPDF )

poWnd:oClient = oActiveX // To fill the entire window surface

oActiveX:Do( "LoadFile", "genesis.pdf" )
oActiveX:Do( "SetCurrentPage", 1 )

ACTIVATE WINDOW poWnd MAXIMIZED

return nil



using the function above, when closing my system the process (it MARINATES PDF) it is still active. How do I can finish him/it?


Aoki :oops:
FWH25+XHARBOUR 99.50
AOKISANTOS
 
Posts: 210
Joined: Sun Jul 23, 2006 1:15 am

Re: Kill process ADOBE PDF ?!

Postby Enrico Maria Giordano » Mon May 14, 2007 6:47 am

Did you already try

Code: Select all  Expand view
oActiveX:End()


?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby AOKISANTOS » Mon May 14, 2007 2:39 pm

Enrico, not kill using oActivex:end(), help-me ! :cry:


**************************
function pdfMain(Nomerel)
**************************
local poWnd, oActiveX,IDPDF:=""

IF ! PDFActivex(@IDPDF)
RETURN(.F.)
ENDIF

nomerel:=if(nomerel=nil,"PDF Relatório",nomerel)

DEFINE WINDOW poWnd TITLE ".::"+alltrim(sis_1nom)+"::. "+nomerel+" - "+IDPDF

oActiveX = TActiveX():New( poWnd, IDPDF )

poWnd:oClient = oActiveX // To fill the entire window surface

oActiveX:Do( "LoadFile", "genesis.pdf" )
oActiveX:Do( "SetCurrentPage", 1 )

ACTIVATE WINDOW poWnd MAXIMIZED valid(oActiveX:End(),.t.)

return nil
FWH25+XHARBOUR 99.50
AOKISANTOS
 
Posts: 210
Joined: Sun Jul 23, 2006 1:15 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: SantaCroya and 85 guests