Substitute Image For Non Match S’abonner

0
Avatar
Legacy Poster

Need some help. We are trying to convert from our current Label/Shelf Tag Solution to Bartender. I am trying to replicate a Shelf tag we currently use. We match a UPC.jpg field to a image.jpg of the product. Whenever there is no matching image.jpg file we insert a standard company.jpg image. In the upc.jpg field in my data source there is always a upc.jpg data. There just may not be a match in the folder containing the image files. Is there a way to VB script this.?

6 commentaires

0
Avatar
Shotaro Ito
Actions pour les commentaires Permalien

I remember I have seen similar question - Would this script help?

http://forums.seagullscientific.com/index.php?/topic/2817-default-image/

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

We will try that.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Kevin and I work together. We do not know what the phrase 'give share name to data source' means or how to implement it. Can you explain?

 

To further explain our situation, we have all of our pictures located in one folder, including our logo picture. In pseudo code, could we do this?

 

Get picture location from field in a file.

If picutre exists, print it

else

print logo picture 

endif

0
Avatar
Shotaro Ito
Actions pour les commentaires Permalien

When you create a Linked picture object (from data source), you can name a data source.

Named data source can be accessed from VB Script, or can be shared in other objects.

 

download all the files in C:\pic folder and try..

 

 

 

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Thank you for the example. That helps!

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Thank you!!! That example help us solve our issue.

Vous devez vous connecter pour laisser un commentaire.