跳到主内容

搜索

搜索

How To Print Lables Which Data From A Datagridview

评论

2 条评论

  • Avatar
    Susan Chen
    版主
    Hi, Weifung:


    Can you elaborate more for us? Do you try to select a set of data from database within Bartender and print the labels ?


    You can reference our Help-> Automating Bartender-> Automation with ActiveX-> Getting Started-> Examples using ActiveX Automation -> Automating Database printing


    //Open Label Format
    btFormat = btApp.Formats.Open("c:\\Format1.btw", false, "");

    //Select the database
    btDb = btFormat.Databases.GetDatabase(1);

    //Set the SQL statement
    btDb.OLEDB.SQLStatement = "SELECT * FROM 'Customers' WHERE 'Name'='Weifung'";


    Hope it helps....



    Thanks!
    0
  • Avatar
    Legacy Poster
    thinks
    0

请先登录再写评论。