Assigning Data To Shared Data Sources
I have a rather complicated VB script that queries several databases to determine text to be applied to a label. It all works well until it get to the assignment of values to the Shared Data Sources. I get the error message "Unable to write read-only property."
The code is within a Function I created on the "BarTender Document Options. . ." page.
The statement that have issues are as follows:
Format.NamedSubStrings("SHText-block").Value = SHText
Format.NamedSubStrings("GHS1").Value = tmp1
Format.NamedSubStrings("GHS2").Value = tmp2
Format.NamedSubStrings("GHS3").Value = tmp3
Format.NamedSubStrings("GHS4").Value = tmp4
Format.NamedSubStrings("GHS5").Value = tmp5
Any ideas?
-
Shotaro Ito
★ BarTender Hero ★
In Document options, event occurs during print (OnNewRecord etc) doesn't support modify value of Named data source. This is limitation of Document level script.
Use data source level VB script (VB Script data source or Transform's VB Script) instead.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar