multiple preview windows

Post Reply
Davide
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

multiple preview windows

Post by Davide »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
Davide
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Post by Davide »

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
R.F.
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Post by R.F. »

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.
Davide
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Post by Davide »

Rene: Thank you, it seems exactly what I was searching for.
R.F.
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Post by R.F. »

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.
Davide
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Post by Davide »

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
Post Reply