FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour multiple preview windows
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
multiple preview windows
Posted: Thu Jun 14, 2007 08:00 AM

Hello all,

I'd like to open 2 previews simultaneously, with 2 different print jobs inside.

Now you cannot do it, because of the statics in rpreview.prg I guess.
You receive the message: A_WINDOW_PREVIEW_IS_ALREADY_RUNNING

How could Rpreview be modified to allow this?
Maybe someone already twicked it?

Thanks,
Davide

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
multiple preview windows
Posted: Thu Jun 14, 2007 08:39 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
multiple preview windows
Posted: Thu Jun 14, 2007 09:05 AM

Antonio,
that's not exactly what I'd like to do.

I'd like to open multiple preview windows, not to preview different jobs all together as a single job.

Any idea ?

Thanks,
Davide

Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
multiple preview windows
Posted: Thu Jun 14, 2007 03:13 PM

Davide:

There's a multipreview class, originally written by Jose Lalin for FW 16 bits, the full source code is included so you only need to compile it under xHarbour and thats all.

Download from here:

http://www.google.d2g.com/objeto/multipreview.zip

Saludos

R.F.
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
multiple preview windows
Posted: Thu Jun 14, 2007 03:56 PM

Rene: Thank you, it seems exactly what I was searching for.

Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
multiple preview windows
Posted: Thu Jun 14, 2007 07:31 PM

Forgot to mention, this Multipreview class works only with MDI applications, so you will need to add the "MDI" clause to your main Window.

Saludos

R.F.
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
multiple preview windows
Posted: Thu Jun 14, 2007 11:07 PM

well, I don't plan to use it as is (I'm already using a custom Rpreview), but it's a good way to study which solution has been implemented for this purpose.
Thank you for pointing this out anyway.
Davide

Continue the discussion