Codesoft C#中的应用--调用模板

转自: http://blog.itpub.net/93029/viewspace-1027377/    在此谢谢博主

 

 

 

Codesoft C#


using LabelManager2;
ApplicationClass lbl = new ApplicationClass();
try
{
lbl.Documents.Open(@"D:TempTEMP.Lab", false);
Document doc = lbl.ActiveDocument;
//foreach(...)
//{
doc.Variables.FormVariables.Item("Var0").Value = "12399999";
//doc.Variables.FreeVariables
//doc.Variables.Formulas
//doc.Variables.TableLookups
//doc.Variables.DatabaseVariables
//doc.Variables.Dates
//doc.Variables.Counters
doc.PrintDocument(1);
//}
doc.Close(false);
}
catch (Exception ex)
{
lbl.Quit();
}

你可能感兴趣的:(Codesoft C#中的应用--调用模板)