Page 1 of 1

multiple preview windows

Posted: Thu Jun 14, 2007 8:00 am
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

Posted: Thu Jun 14, 2007 8:39 am
by Antonio Linares

Posted: Thu Jun 14, 2007 9:05 am
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

Posted: Thu Jun 14, 2007 3:13 pm
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

Posted: Thu Jun 14, 2007 3:56 pm
by Davide
Rene: Thank you, it seems exactly what I was searching for.

Posted: Thu Jun 14, 2007 7:31 pm
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.

Posted: Thu Jun 14, 2007 11:07 pm
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