multiple preview windows

multiple preview windows

Postby Davide » Thu Jun 14, 2007 8: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
Davide
 
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Postby Antonio Linares » Thu Jun 14, 2007 8:39 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41407
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Davide » Thu Jun 14, 2007 9: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
Davide
 
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Postby R.F. » Thu Jun 14, 2007 3: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.
R.F.
 
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Postby Davide » Thu Jun 14, 2007 3:56 pm

Rene: Thank you, it seems exactly what I was searching for.
Davide
 
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

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

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 53 guests