Hello...
I have the following code when trying to fit the data in the report to 1 page, but it is not reading the 'FitToPagesWide' and 'FitToPagesTall'. Can anyone think of a reason this is not working?
hPageSet := OLE2.GET_OBJ_PROPERTY (worksheet, 'pagesetup'); OLE2.SET_PROPERTY ( hPageSet, 'orientation', 2 );
OLE2.SET_PROPERTY ( hPageSet, 'CenterHeader', 'Header'); OLE2.SET_PROPERTY ( hPageSet, 'CenterHorizontally', True )
OLE2.SET_PROPERTY ( hPageSet, 'FitToPagesWide', 1 );
OLE2.SET_PROPERTY ( hPageSet, 'FitToPagesTall', 1 );
OLE2.RELEASE_OBJ ( hPageSet );
Any help you could give me would be much appreciated.
Thanks In Advance!!
I have the following code when trying to fit the data in the report to 1 page, but it is not reading the 'FitToPagesWide' and 'FitToPagesTall'. Can anyone think of a reason this is not working?
hPageSet := OLE2.GET_OBJ_PROPERTY (worksheet, 'pagesetup'); OLE2.SET_PROPERTY ( hPageSet, 'orientation', 2 );
OLE2.SET_PROPERTY ( hPageSet, 'CenterHeader', 'Header'); OLE2.SET_PROPERTY ( hPageSet, 'CenterHorizontally', True )
OLE2.SET_PROPERTY ( hPageSet, 'FitToPagesWide', 1 );
OLE2.SET_PROPERTY ( hPageSet, 'FitToPagesTall', 1 );
OLE2.RELEASE_OBJ ( hPageSet );
Any help you could give me would be much appreciated.
Thanks In Advance!!