Report Preview page Panel FWH 1412

Report Preview page Panel FWH 1412

Postby Rick Lipkin » Fri Jan 09, 2015 8:41 pm

Antonio

Just ran a multiple page report that is created in landscape mode and I just noticed the thumbnail side panel overlaps and distorts the report .. see screenshot

Only seems to happen with landscape and multiple pages.

Rick Lipkin

Image
User avatar
Rick Lipkin
 
Posts: 2617
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Report Preview page Panel FWH 1412

Postby Silvio.Falconi » Fri Jan 09, 2015 10:23 pm

I allready ask this error ...
I thinked to insert on configuration 8 on menu) the possibility to show panel preview or not ( as adobe reader)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6772
Joined: Thu Oct 18, 2012 7:17 pm

Re: Report Preview page Panel FWH 1412

Postby Antonio Linares » Sat Jan 10, 2015 3:46 am

Rick,

Before creating your report, please execute this code:

TPreview():lListViewHide := .F.
regards, saludos

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

Re: Report Preview page Panel FWH 1412

Postby Silvio.Falconi » Sat Jan 10, 2015 10:07 am

Sorry I not Know this set logic.. but it can be insert on menu ...just an idea ...
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6772
Joined: Thu Oct 18, 2012 7:17 pm

Re: Report Preview page Panel FWH 1412

Postby Otto » Sat Jan 10, 2015 10:30 am

Hello Antonio,
I think it should be set to TRUE.
TPreview():lListViewHide := .T.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6005
Joined: Fri Oct 07, 2005 7:07 pm

Re: Report Preview page Panel FWH 1412

Postby Antonio Linares » Sat Jan 10, 2015 10:36 am

Otto,

yes, right. Thanks :-)
regards, saludos

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

Re: Report Preview page Panel FWH 1412

Postby Rick Lipkin » Sat Jan 10, 2015 4:14 pm

Antonio

Your suggestion worked .. unfortunately, I have at least 8-10 programs with hundreds of cumulative reports that are in landscape mode and I will have to go in and modify each one to turn off the preview panel.

If I may suggest for backwards compatibility, that the preview panel be turned off and let the programmer decide if they want the panel as an option ?

Let me know what you decide .. I will wait to make the changes.

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2617
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Report Preview page Panel FWH 1412

Postby nageswaragunupudi » Sat Jan 10, 2015 4:35 pm

TPreview():lListViewHide is a CLASSDATA. This is a global setting

If you set it to .T. at the beginning of the function Main(), and thumbnails will not be shown in your entire project.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Report Preview page Panel FWH 1412

Postby Rick Lipkin » Sat Jan 10, 2015 4:55 pm

Rao

Thank you for your suggestion ... This indeed turns off the thumbnails, but for those developers that wish to use them the panel does need to be fixed.

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2617
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Report Preview page Panel FWH 1412

Postby Antonio Linares » Sat Jan 10, 2015 6:42 pm

Rick,

If the report is in landscape I am afraid there is not enough space for the thumbnails, so it seems as there is no other way to do it.
regards, saludos

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

Re: Report Preview page Panel FWH 1412

Postby Rick Lipkin » Sat Jan 10, 2015 7:57 pm

Antonio

I understand .. No Problem 8)

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2617
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Report Preview page Panel FWH 1412

Postby Horizon » Sun Jan 11, 2015 8:47 am

nageswaragunupudi wrote:TPreview():lListViewHide is a CLASSDATA. This is a global setting

If you set it to .T. at the beginning of the function Main(), and thumbnails will not be shown in your entire project.


Hi Mr. Nages,

Can we use this syntax for all class that is define CLASSDATA?

Thanks,
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1288
Joined: Fri May 23, 2008 1:33 pm

Re: Report Preview page Panel FWH 1412

Postby Antonio Linares » Sun Jan 11, 2015 8:57 am

Hakan,

yes :-)
regards, saludos

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

Re: Report Preview page Panel FWH 1412

Postby Silvio.Falconi » Mon Jan 12, 2015 7:57 am

Antonio,
Nages,

Wich is the right syntax for the function RPrevUserBtns( bNewUserBtns, nBarStyle, aSize )
I wish insert a button for select the show of Samll PreviewPanel
Thanks

I made :

Code: Select all  Expand view
RPrevUserBtns( { |oPreview, oBar| ReportExtend( oPreview, oBar ) } )

function ReportExtend( oPreview, oBar )

   DEFINE BUTTON OF oBar ;
      RESOURCE 'SAVE' ;  // from our resource or bitmap file
      TOOLTIP 'Show the Panel' ;
      ACTION IIF(oPreview:lListViewHide = .F.,.t.,.f.)



return nil



It show the button but then not execute the command
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6772
Joined: Thu Oct 18, 2012 7:17 pm

Re: Report Preview page Panel FWH 1412

Postby nageswaragunupudi » Mon Jan 12, 2015 8:17 am

Code: Select all  Expand view

RPrevUserBtns( { |oPrev,oBar| AddMyButtons( oPrev, oBar ) } )

....

function AddMyButtons( oPreview, oBar )

   DEFINE BUTTON OF oBar RESOURCE "MYRES" ACTION MyAction()
   DEFINE BUTTON OF oBar .....< more buttons >

return nil
 


These user buttons will be inserted before the standard buttons "SaveAs", "PDF", "Word", "Excel", "End"

If the AddMyButtons() function returns .F., then the standard buttons "SaveAs", "PDF", "Word", "Excel" will not be inserted by RPreview and the user can use his custom buttons and actions for these functions also in his AddMyButtons(...) function.

2nd parameter nStyle can be used to override the default by specifying 2007,2010 or 2013

3rd parameter aSize can be used to override the size of buttons. eg. { 48, 48 }
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests