Print Preview ActiveX Active Users: 14 / Visits Today: 313
Highest Active Users: 109
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 DrawPicture - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: ShowRtf - Method Topic Next Topic: DrawPictureMemory  

emiel
Administrator

Belgium
327 Posts

Posted - 07/15/2005 :  11:53:57  Show Profile
Method DrawPicture

Action:

This method places a picture element in the current frame.

Syntax:

DrawPicture (sPixPath As String, StoreType As eStoreType , vXpos As Variant, vYpos As Variant, vWidth As Variant, vHeight As Variant) As String

Parameter     Opt/Req     Description                                    
  • sPixPath Required Path and Filename of the picture to be drawn
  • StoreType Required Flag to indicate internal/external storage type
  • vXpos Optional Horizontal position of top left corner
  • vYpos Optional Vertical position of top left corner
  • vWidth Optional Width of picture
  • vHeight Optional Height of picture
    The StoreType parameter can contain the following values:

    Constant        Value    Description     
    
  • prSTExternal 1 External storage
  • prSTInternal 2 Internal storage
    Remarks:

    This method places a picture element in the current frame. If prSTExternal is specified then only the file name sPix is stored and written to the file if the document is saved. The picture is loaded whenever it is needed to preview the element. If prInternal is specified then the picture is read in at the time the element is added to the frame and held with it.

    The vXpos, vYpos, vWidth and vHeight parameters may either be numbers, which are taken to be values in twips, or a string. If a parameter is specified as a string then it is converted to twips using the C_Twips function.

    The following formats are recognized:
    Type                   Extension 
    
  • Windows bitmap *.bmp
  • Icon *.ico
  • Run Length Encoded *.rle
  • Windows metafile *.wmf, *.emf
  • GIF graphics *.gif
  • JPEG graphics *.jpg
    Example:

    To place a bitmap picture:

    Preview.DrawPicture "C:\MyFileName.bmp", prSTInternal, "0.5 in", "1.0 in", "1 in", "1 in"
    See also :

    DrawPictureMemory -------------------> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=560

    Come and visit :
    www.immoassist.com
    www.ppreview.net
    www.vbdiamond.com
    www.d2dsources.com
    www.mandix.com

    Edited by - emiel on 02/10/2006 13:38:31
    Go to Bottom of Page
      Previous Topic: ShowRtf - Method Topic Next Topic: DrawPictureMemory  
     New Topic  Topic Locked
     Printer Friendly
    Jump To:
    Print Preview ActiveX © Mandix Go To Top Of Page
    This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02