Page 1 of 1

Clase TReport , preview no modal

Posted: Tue Feb 20, 2007 9:04 pm
by jose_murugosa
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

Posted: Thu Feb 22, 2007 1:22 pm
by Rochinha
Jose,

Coloque TRUE/FALSE en el 5th parametro:

Code: Select all

...
TPrinter():New(cName, .f., .t., , .t.)
...

Posted: Thu Feb 22, 2007 2:46 pm
by jose_murugosa
Gracias amigo, creo que tendré que repasar la cuenta hasta cinco, hace mucho que no lo practico. jeje
Muuuuchas Graaacias.