Code: Select all | Expand
Static Function ShowPDF1 oBrw )
local oPdf,oWnd
local nOpc := 0
local lText := .F.
local cFile := if( Len( oBrw:aArrayData ) > 0, AllTrim( oBrw:aRow[ 2 ] ), "" )
local hWebView,arq,cReport
DEFINE WINDOW oWnd
oWnd:oClient = oPdf
oPdf := TActiveX():New( oWnd, "acroPDF.PDF.1" )
oWnd:oClient := oPdf
oPdf:Do( "LoadFile", cFile )
//oPdf:Do( "SetCurrentPage", 1 )
oPdf:SetZoom( 80 )
ACTIVATE WINDOW oWnd;
MAXIMIZED
Return //oPdf
//----------------------------------------------------------------------------//