API Help
Eplan.EplApi.HEServices Namespace / Export Class / GraphicPageEx2 Method
Page to be exported.
Full name of the output file. If only a folder's name is specified (e.g. "C:\OutputFolder\") the file name will be the name of the page exported. File name's extension is appended automatically, according to the format specified, unless the file name already contains extension. If the folder does not exist, it will be created. If the user does not have the necessary rights to access the file system, an exception will be thrown.
Image format\: Supported export formats are\:

* BMP: available color depth: 1, 4, 8, 16, 24 and 32 * TIF: available color depth: 1, 4, 8, 24 and 32 * GIF: color depth is irrelevant * PNG: available color depth: 1, 4, 8, 16, 24 and 32 * JPG: available color depth: 1, 4, 8, 16, 24 and 32. The enum IMAGE_FORMAT defines the necessary values. If an invalid format is set, the page will be exported as Tiff.

Color depth of the image\: Allowed values are 1, 4, 8, 16, 24, and 32. If an invalid value is set, a color depth of 24 bit us used.
Width of the image in pixels.The height is calculated automatically to keep the aspect ratio of the page.
Sets the image compression for the Tiff export. This parameter has no influence on other export formats. For the compression according\: CCITT3, CCITT4, and RLE the color depth always is 1, i.e. a binary image is created.
If set to true b/w images will be created. This does not influence the image format or the image size.

In This Topic
    GraphicPageEx2 Method
    In This Topic
    Exports a page of a project as image file. Eplan.EplApi.DataModel.Page.PageType of page can not be Eplan.EplApi.DataModel.DocumentTypeManager.DocumentType
    Syntax

    Parameters

    oPage
    Page to be exported.
    strImagePath
    Full name of the output file. If only a folder's name is specified (e.g. "C:\OutputFolder\") the file name will be the name of the page exported. File name's extension is appended automatically, according to the format specified, unless the file name already contains extension. If the folder does not exist, it will be created. If the user does not have the necessary rights to access the file system, an exception will be thrown.
    imageFormat
    Image format\: Supported export formats are\:

    * BMP: available color depth: 1, 4, 8, 16, 24 and 32 * TIF: available color depth: 1, 4, 8, 24 and 32 * GIF: color depth is irrelevant * PNG: available color depth: 1, 4, 8, 16, 24 and 32 * JPG: available color depth: 1, 4, 8, 16, 24 and 32. The enum IMAGE_FORMAT defines the necessary values. If an invalid format is set, the page will be exported as Tiff.

    iColorDepth
    Color depth of the image\: Allowed values are 1, 4, 8, 16, 24, and 32. If an invalid value is set, a color depth of 24 bit us used.
    iWidth
    Width of the image in pixels.The height is calculated automatically to keep the aspect ratio of the page.
    imageCompression
    Sets the image compression for the Tiff export. This parameter has no influence on other export formats. For the compression according\: CCITT3, CCITT4, and RLE the color depth always is 1, i.e. a binary image is created.
    bBlackAndWhite
    If set to true b/w images will be created. This does not influence the image format or the image size.
    Exceptions
    ExceptionDescription
    Thrown in case of invalid arguments.
    No user rights to create files on the \file system.
    The internal interface for image export could not be created.
    Errors occurred during export. See the exception message for details.
    See Also