PPT: Incorrect Arguments in Export Method Help Topic Example

Last reviewed: February 5, 1998
Article ID: Q169732
The information in this article applies to:
  • Microsoft PowerPoint 98 Macintosh Edition
  • Microsoft PowerPoint 97 for Windows

SYMPTOMS

The ScaleWidth and ScaleHeight arguments are ignored when you execute the code in the example provided with the "Export Method" topic of Microsoft PowerPoint Visual Basic Help.

CAUSE

The example contains an invalid value (0.5) for the ScaleWidth and ScaleHeight arguments.

RESOLUTION

Set the ScaleWidth and ScaleHeight arguments to a long integer that is greater than or equal to one.

MORE INFORMATION

The ScaleWidth and ScaleHeight arguments define the number of pixels that are used to scale the width and height of the graphic when it is exported as a CompuServe Graphics Interchange Format (.gif), JPEG File Interchange Format (.jpg), or Portable Network Graphics (.png) file. These arguments are ignored when exporting as a Windows Metafile (.wmf) file.

Keep the following tips in mind when setting the ScaleWidth and ScaleHeight arguments:

  • The arguments must be set to a value greater than one. A value less than or equal to one results in the ScaleWidth and ScaleHeight arguments being ignored.
  • The default type for the arguments is Long (or long integer). Only integer values are stored for variables of type Long. If you set the arguments to a decimal number, anything to the right of the decimal point is rounded to the nearest whole number. For example, setting ScaleWidth to 1.49 yields a graphic that is 1 pixel wide, and setting ScaleWidth to 1.50 yields a graphic that is 2 pixels wide.
  • The graphic formats, .png, .gif, and .jpg, are exported at a rate of approximately 96 pixels per inch. ScaleWidth and ScaleHeight values of less than 24 pixels result in a graphic that is less than 0.25 inches for either dimension. A graphic of this size would rarely have enough detail to clearly represent the slide image.


Additional query words: 8.0 Document Error docerr macppt
Keywords : kbprg kbhelp
Version : WINDOWS:97; MACINTOSH:98
Platform : MACINTOSH WINDOWS
Hardware : MAC x86
Issue type : kbdocerr
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.