Skip to main content

Search

Search

How To Print Lables Which Data From A Datagridview

Comments

2 comments

  • Avatar
    Susan Chen
    Moderator
    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

Please sign in to leave a comment.