Page 1 of 1

abrir excel em janela do fivewin

PostPosted: Sat Aug 27, 2016 3:24 am
by MGA
Amigos,

é possível abrir uma planilha EXCEL em janela do fivewin?

Re: abrir excel em janela do fivewin

PostPosted: Sat Aug 27, 2016 1:09 pm
by cmsoft
Segun este post si http://forums.fivetechsupport.com/viewtopic.php?f=6&t=21028&p=111658&hilit=ABRIR+EXCEL+EN+VENTANA#p111697
oexcelsolver :=CreateObject( "Excel.Application" )
oexcelsolver:Workbooks:Open(clibro)
sysrefresh()
oexcelsolver:Visible(.t.)
hWndexcel := FindWindow(0,"Microsoft Excel - "+cfilenopath(clibro))
SetParent(hwndexcel,oWnd:hWnd)

Con CreateOleObject("Excel.Application") no funcionaban las opciones en las que excel abre un dialogo y se quedaba colgado, entre ellas mis funciones.
Así funciona bien y excel no se sale de la ventana de mi aplicación.

Re: abrir excel em janela do fivewin

PostPosted: Sat Aug 27, 2016 8:45 pm
by MGA
Gracias por responder, com HARBOUR meu ocorre o erro:

Path and name: C:\fwh1604\samples\b.exe (32 bits)
Size: 3,381,248 bytes
Compiler version: Harbour 3.2.0dev (r1506171039)
FiveWin Version: FWH 16.04
Windows version: 6.1, Build 7601 Service Pack 1

Time from start: 0 hours 0 mins 0 secs
Error occurred at: 08/27/16, 17:44:18
Error description: (DOS Error -2147352559) WINOLE/1007 Argument error: VISIBLE

Re: abrir excel em janela do fivewin

PostPosted: Sun Aug 28, 2016 8:45 am
by Antonio Linares
Inténtalo así:

oexcelsolver:Visible = .t.

Re: abrir excel em janela do fivewin

PostPosted: Sun Aug 28, 2016 8:24 pm
by MGA
Gracias Sr. Antonio. :D