FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Clase TReport , preview no modal
Posts: 1279
Joined: Mon Feb 06, 2006 04:28 PM
Clase TReport , preview no modal
Posted: Tue Feb 20, 2007 09:04 PM
En la línea 251 de la clase treport dice:
// Can add a 4th param as .t. ( lModal ) so preview screen
// will be on top -- TPrinter():New(cName,.f.,.t.,.t.)


Lo probé, pero obtuve este mensaje:

There are not printers installed!, Please exit this aplication and install a printer


al dar ok en la dialog entonces:
Application
===========
Path and name: D:\EXPORT\EXPORT.Exe (32 bits)
Size: 584,704 bytes
Time from start: 0 hours 1 mins 23 secs
Error occurred at: 20/02/2007, 19:03:38
Error description: Error BASE/1605 Invalid self: NEW
Args:
[ 1] = O Object
[ 2] = U

Stack Calls
===========
Called from: REPORT.PRG => TREPORT:NEW(282)
Called from: mreport.PRG => TMREPORT:NEW(63)
Called from: pdreport.PRG => RPTBEGIN(56)
Called from: listados.prg => EXPOACOB(324)
Called from: export.prg => (b)CREAMENU(208)
Called from: menu.prg => TMENU:COMMAND(657)
Called from: WINDOW.PRG => TWINDOW:COMMAND(0)
Called from: WINDOW.PRG => TWINDOW:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: WINDOW.PRG => TWINDOW:ACTIVATE(0)
Called from: export.prg => MAIN(129)

Qué estoy haciendo mal?

Como hago que el preview de la clase report sea no modal?

Gracias desde ya
Saludos/Regards,

José Murugosa

"Los errores en programación, siempre están entre la silla, el teclado y la IA!!"
Posts: 310
Joined: Sun Jan 08, 2006 10:09 PM
Clase TReport , preview no modal
Posted: Thu Feb 22, 2007 01:22 PM
Jose,

Coloque TRUE/FALSE en el 5th parametro:

...
TPrinter():New(cName, .f., .t., , .t.)
...
Posts: 1279
Joined: Mon Feb 06, 2006 04:28 PM
Clase TReport , preview no modal
Posted: Thu Feb 22, 2007 02:46 PM

Gracias amigo, creo que tendré que repasar la cuenta hasta cinco, hace mucho que no lo practico. jeje
Muuuuchas Graaacias.

Saludos/Regards,

José Murugosa

"Los errores en programación, siempre están entre la silla, el teclado y la IA!!"

Continue the discussion