看到一个示例:
using Seagull.BarTender.Print.Database;// Application Code // ...Engine btEngine = new Engine();// Start a BarTender print engine btEngine.Start();// Open a label format LabelFormatDocument btFormat = btEngine.Documents.Open(@"c:\MyLabel.btw");// Set the TextFile database connection file name ((TextFile)btFormat.DatabaseConnections["TextFileDB"]).FileName = @"c:\NutritionInformationEurope.txt";// Print the label format document btFormat.Print();// Stop the engine btEngine.Stop(); 我也刚学 不会 。SDK Documentation 有详细英文资料。你搞明白的话 回个消息。