Clase TReport , preview no modal

Clase TReport , preview no modal

Postby jose_murugosa » Tue Feb 20, 2007 9: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
FWH + Harbour + Bcc7. Una seda!
User avatar
jose_murugosa
 
Posts: 1169
Joined: Mon Feb 06, 2006 4:28 pm
Location: Uruguay

Postby Rochinha » Thu Feb 22, 2007 1:22 pm

Jose,

Coloque TRUE/FALSE en el 5th parametro:

Code: Select all  Expand view
...
TPrinter():New(cName, .f., .t., , .t.)
...
Rochinha
 
Posts: 310
Joined: Sun Jan 08, 2006 10:09 pm
Location: Brasil - Sao Paulo

Postby jose_murugosa » Thu Feb 22, 2007 2: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
FWH + Harbour + Bcc7. Una seda!
User avatar
jose_murugosa
 
Posts: 1169
Joined: Mon Feb 06, 2006 4:28 pm
Location: Uruguay


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 89 guests