Highlighted
Absent Member.
Absent Member.
716 views

[archive] Excel: PageSetup.Zoom

[Migrated content. Thread originally posted on 16 December 2008]

Cool! I need to remember that.
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Excel: PageSetup.Zoom

Hello,

i want to deactivate the PageSetup.Zoom Property in Excel, because only then the FitToPages Property are activated.

When i look at MSDN i can set the ZoomValue from 10 to 400 and this works.
To deactivate i have to set the Zoom value to false but how?

Excample

           move    30 to xls-integer.

           modify  xls-sheet @PageSetup::@Zoom = xls-integer.
           modify  xls-sheet @PageSetup::@FitToPagesWide = 1.
           modify  xls-sheet @PageSetup::@FitToPagesTall = 999.


with this i set the zoom-value to 30% and it works. 0 doesn't work like description in MSDN that 10 is the lowest possible value.

When i set the "@Zoom = false" i can't combile the programm


artbew2.cbl, line 3601: identifier expected, FALSE found
artbew2.cbl, line 3601: Wrong number of parameters: 1 expected, 0 found
artbew2.cbl, line 3601: Verb expected, FALSE found


can someone help?

David
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Excel: PageSetup.Zoom

false is not a reserved word with ACUCOBOL-GT. As the target is a variant, I presume a cast may be required. Have you tried this:

modify xls-sheet @PageSetup::@Zoom = 0 AS VT-BOOL

VT-BOOL is defined in activex.def.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Excel: PageSetup.Zoom

it works 🙂

thanks
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.