Ghs Pictograms Across Multiple Templates 追蹤

0
Avatar
Legacy Poster

Using the sample GHS I want to create multiple templates in the same file but the pictograms only show up on the first template not on the new ones I create this is somehow tied in to the VB Script calling the object GHS_PictogramArea to draw is there a way to use this across the other templates? not really familiar with VB Script. Reason I want to do this is base on a database it will select the template and print the required info. Thank you in advance.

3 意見

0
Avatar
Ian Cummings
版主
評論操作 永久連結

Unfortunately the GHS sample is really only suitable for a single template document.  As you suspect the GHS pictograms are dynamically arranged at print time by an event based VB script.  The script adjusts template objects by name according to record data supplied on a per label basis.  To do this for more that one template you'd need to copy across a new set of scripted objects (the dynamically printed pictograms) into a layer for the new template, giving them each unique, maybe add a template name prefix/suffix, and lastly adjust the VB script code so that depending on which template is printing that the correctly named pictogram objects are modified.  It seems to me like this would be a pretty big task and doesn't really scale if you want to implement many templates. 

0
Avatar
Legacy Poster
評論操作 永久連結

Sorry just saw the response didn't get an email notfication. Thank you for your answer I did get to see the VB script code but new to the VB code would you by any chance guide me on which paramaters to switch I did see that the pictograms are printed in the GHS_PictogramArea parameter, which I tried to change on the VB script and no luck am I missing other parameters? again thank you for your help.

0
Avatar
Ian Cummings
版主
評論操作 永久連結

The VB script for the GHS label is very sophisticated and therefore not really suitable for editing by someone new to VB script programming. To adapt this sample to work over multiple templates is a pretty big undertaking and perhaps a different, less dynamic and sophisticated GHS document design would be easier to implement.

The below YouTube video is worth watching as it covers how the GHS sample label functions:

https://www.youtube.com/watch?v=_yXS7HPMo4Y

登入寫評論。