跳至主內容

搜尋

搜尋

Type Mismatch Error

評論

2 條評論

  • Avatar
    Legacy Poster

    So, is this possible?

    0
  • Avatar
    Fernando Ramos Miracle

    Hello Williamc,

     

    The "Functions and Subs" section of the document level VB script (from the "File>BarTender Document Options...") only affects that precise VB Script, it won't be accessible from a data source type VB script or an "OnProcessData" VB script. Note that there are many functions that are only available at the document level (basically anything that modifies an object's properties) and accessing them from other level VB Scripts could potentially cause problems.

     

    Also note that if you are referencing a database field on your code, you'll need to add your code in the "OnNewRecord" event. Using the "OnAutoSelectedEvent" will only allow you to preview the result on screen, but won't be useful at print time.

     

    Regards.

    0

登入寫評論。