Hola Antonio,
Sigo desarrollando mi aplicacion con TWord en mi ordenador. Aunque todavia no se porque no funciona en el del cliente.
¿diferencia entre version de word para estudiantes y profesional?
En cualquier caso no puedo estar parado y me ha salido una nueva duda.
Para generar un tabla en word, hago lo siguiente:
- Code: Select all Expand view
...................
local aDatos := { { "Nombre" , "pepe" }
{ "Dirección" , "loma alta" }
{ "A la Atención de", "Margarita" } }
...........
oWord:AddTables( aDatos, 10 )
..................
Me genera la tabla, pero me causa un error en la aplicacion:
- Code: Select all Expand view
Application
===========
Path and name: C:\FWH\G\DBF\G.EXE (32 bits)
Size: 1,536,000 bytes
Time from start: 0 hours 0 mins 3 secs
Error occurred at: 12-05-08, 23:43:26
Error description: Error 1527852/9 'Item' no es ninguna propiedad.: ITEM
Args:
[ 1] = N 3
Stack Calls
===========
Called from: => TOLEAUTO:ITEM(0)
Called from: => TWORD:ADDTABLES(1141)
Called from: .\gpw.PRG => FGENPRESUWORD(0)
Called from: .\genpresu.PRG => (b)FGENPRESU(0)
Called from: => TBUTTON:CLICK(0)
Called from: => TBUTTON:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => SENDMESSAGE(0)
Called from: => TDIALOG:COMMAND(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: => TDIALOG:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => DIALOGBOX(0)
Called from: => TDIALOG:ACTIVATE(0)
Called from: .\genpresu.PRG => FGENPRESU(0)
Called from: .\g.PRG => (b)MAIN(0)
Called from: => TBTNBMP:CLICK(0)
Called from: => TBTNBMP:LBUTTONUP(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: => TCONTROL:HANDLEEVENT(0)
Called from: => TBTNBMP:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: => TWINDOW:ACTIVATE(0)
Called from: .\g.PRG => MAIN(0)
He buscado algun ejemplo de como se usa oWord:AddTables( aDatos, 0 )
pero no lo encuentro. Yo creo que no creo bien la tabla, ¿podrias pasarme algun ejemplo?[/code]