FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Report Preview page Panel FWH 1412
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Report Preview page Panel FWH 1412
Posted: Fri Jan 09, 2015 08: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

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Report Preview page Panel FWH 1412
Posted: 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 March-April 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Report Preview page Panel FWH 1412
Posted: Sat Jan 10, 2015 03:46 AM

Rick,

Before creating your report, please execute this code:

TPreview():lListViewHide := .F.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Report Preview page Panel FWH 1412
Posted: 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 March-April 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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Report Preview page Panel FWH 1412
Posted: Sat Jan 10, 2015 10:30 AM

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

Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Report Preview page Panel FWH 1412
Posted: Sat Jan 10, 2015 10:36 AM

Otto,

yes, right. Thanks :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Report Preview page Panel FWH 1412
Posted: Sat Jan 10, 2015 04: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

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Report Preview page Panel FWH 1412
Posted: Sat Jan 10, 2015 04: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
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Report Preview page Panel FWH 1412
Posted: Sat Jan 10, 2015 04: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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Report Preview page Panel FWH 1412
Posted: Sat Jan 10, 2015 06: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
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Report Preview page Panel FWH 1412
Posted: Sat Jan 10, 2015 07:57 PM

Antonio

I understand .. No Problem 8)

Rick Lipkin

Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Report Preview page Panel FWH 1412
Posted: Sun Jan 11, 2015 08: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.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Report Preview page Panel FWH 1412
Posted: Sun Jan 11, 2015 08:57 AM

Hakan,

yes :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Report Preview page Panel FWH 1412
Posted: Mon Jan 12, 2015 07: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 (fw): Select all Collapse
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 March-April 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Report Preview page Panel FWH 1412
Posted: Mon Jan 12, 2015 08:17 AM
Code (fw): Select all Collapse
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