Clase TReport , preview no modal

Post Reply
User avatar
jose_murugosa
Posts: 943
Joined: Mon Feb 06, 2006 4:28 pm
Location: Uruguay
Contact:

Clase TReport , preview no modal

Post 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
Saludos/Regards,
José Murugosa
FWH + Harbour + Bcc7. Una seda!
Rochinha
Posts: 309
Joined: Sun Jan 08, 2006 10:09 pm
Location: Brasil - Sao Paulo
Contact:

Post by Rochinha »

Jose,

Coloque TRUE/FALSE en el 5th parametro:

Code: Select all

...
TPrinter():New(cName, .f., .t., , .t.)
...
User avatar
jose_murugosa
Posts: 943
Joined: Mon Feb 06, 2006 4:28 pm
Location: Uruguay
Contact:

Post by jose_murugosa »

Gracias amigo, creo que tendré que repasar la cuenta hasta cinco, hace mucho que no lo practico. jeje
Muuuuchas Graaacias.
Saludos/Regards,
José Murugosa
FWH + Harbour + Bcc7. Una seda!
Post Reply