How To Print Lables Which Data From A Datagridview S’abonner

0
Avatar
Legacy Poster

Hi:
I want to print lables where the data from a datagridview by bartender.
How can i do?
How to set the bartender-format-lable?

Waiting online....
Thinks!!

2 commentaires

0
Avatar
Susan Chen
Modérateur
Actions pour les commentaires Permalien

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
Actions pour les commentaires Permalien

thinks

Vous devez vous connecter pour laisser un commentaire.