Aller au contenu principal

Recherche

Recherche

Assigning Embedded Image To A Picture Object

Commentaires

1 commentaire

  • Avatar
    Shotaro Ito
    Hi Kiat,

    From BarTender 9.3 or later, on Automation Edition or above,
    From File > Label Format Option's VB Script,
    You can set and get picture's source image by
    [code]Format.Objects("PictureObjectName").PicturePath [/code]
    Property.
    However for embedded picture, it only returns original path of source picture in design time.
    So you still need to keep the image file in original path - not really embedded.

    About Modify object from VBScript, please read:[url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_DynamicallyChangingObjectsAtPrint-TimeUsingVBScript.pdf"]White paper: Dynamically Changing Objects at Print Time using VBScript[/url]

    I'd say your current method - specify datasource picture's path is far simple and better.
    Also you can use relative path from format's saved location (".\pic1.png" or "\images\pic1.png"), instead of full path("D:\images\pic1.png"), to achieve more portability.

    Hope that helps!
    0

Vous devez vous connecter pour laisser un commentaire.