Cell preview through userform

is there any possibility to select and preview a cell through userform, wth VBA.

Parents
  • Unknown said:
    Is there any possibility to select and preview a cell through UserForm

    You can capture an image in several ways...

    1. Printing to an image file
    2. Screen Capture
    3. Using the Element.GetPicture method

    They are mentioned, with some sample VBA code, in this article Capture a MicroStation View Using VBA.

    In your case, read the cell from a library, then capture its image...

    Dim oCell As CellElement
    Set oCell = CreateCellElement2 ("Vinoth", origin, Point3dOne, True, Matrix3dIdentiy)

    Dim size_x As Long
    Dim size_y As Long

    ' Get size_x, size_y from an Image control
    Set object.Picture = oCell.GetPicture (size_x, size_y)

     
    Regards, Jon Summers
    LA Solutions

Reply
  • Unknown said:
    Is there any possibility to select and preview a cell through UserForm

    You can capture an image in several ways...

    1. Printing to an image file
    2. Screen Capture
    3. Using the Element.GetPicture method

    They are mentioned, with some sample VBA code, in this article Capture a MicroStation View Using VBA.

    In your case, read the cell from a library, then capture its image...

    Dim oCell As CellElement
    Set oCell = CreateCellElement2 ("Vinoth", origin, Point3dOne, True, Matrix3dIdentiy)

    Dim size_x As Long
    Dim size_y As Long

    ' Get size_x, size_y from an Image control
    Set object.Picture = oCell.GetPicture (size_x, size_y)

     
    Regards, Jon Summers
    LA Solutions

Children
No Data