Vb Script And Multiple Templates Follow

0
Avatar
Legacy Poster

Hello,

 

I dont know if this is a bug or just somthing i am missing in my VB code.

I have multiple Templates that are switched to print on or off depending on a database.

But then none of my VB code seems to work after the First template.

 

I make a quick example:

 

3 comments

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

I took a look at your example and it seems to work as one would expect.  Also, I don't see any database/data file connected so I'm not sure if this is a good example for testing.  If you want to only print one template or the other, have you thought of using the template selector, under the "Template" tab of the "Page Setup" dialog, as this will only allow you to print one (logical or) of the selectable templates.  The way you're approaching this is for if you want to print one, some or none of the templates based on the condition.

0
Avatar
Legacy Poster
Comment actions Permalink

Hello,

 

I tried using Template selecor but my vb
scripts still dont work on any templates after the first template. I
even tried the example i gave and it still does not print correctly. i
am using bartender 10.1 sr3.

 

This is what i see.I click print preview,  with example A set and it shows.

 

Example A

cat

6

 

and that is correct but when i click example b it only shows.

 

example B

 

 

 

 

Now
its not showing 6 or the word cat. it should show 6 and the word cat in
the examble B template. Each is a very simple VB Script in both
Templates.

 

I have attached an updated example file
where i use the templated selctor instead. Try print or prieview
template b or c, it does not show any of the text scripting.

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Okay, I see what you're getting at now.  This is a bug which should be fixed in the upcoming SR4 release.  I think the below beta build of SR4 has the fix included; give it a try and let us know how you get on.

 

https://drive.google.com/file/d/0BxxIAvEzid8UWlQ1aW84UDE1alE/edit?usp=sharing

Please sign in to leave a comment.