Printing Though C# 追蹤

0
Avatar
Legacy Poster

HI All,

 

 

We have purchased he Bartender Professional Software.. I
have also created our Inventory system in C# and would like to integrate the
Printing of my Labels straight through my Program.

 

I am not sure if the Professional can give me this
functionality as it gives me error that I am using a more elevated function.

 

My Code:

 

btFormat = btApp.Formats.Open(@"\\aegserv1\AlgoaProgram\BigLabel.btw", true, "ZDesigner GK420d");
            btFormat.JobName = "BigLabelPrint";
 
            btFormat.SetNamedSubStringValue("lblItem", temp._description);
            btFormat.SetNamedSubStringValue("lblQty", temp._qty.ToString());
            btFormat.SetNamedSubStringValue("lblDate", temp._datePoReceived.ToShortDateString());
            btFormat.SetNamedSubStringValue("lblGRNNumber", temp._grnNo);
            btFormat.SetNamedSubStringValue("lblSupplier", temp._supplier._CompanyName);
            btFormat.SetNamedSubStringValue("lblExpDate", temp._expiryDate.ToShortDateString());
            btFormat.SetNamedSubStringValue("lblItem", temp._description);
            btFormat.SetNamedSubStringValue("lblRemarks", temp._addInfo);
            btFormat.SetNamedSubStringValue("lblStockNumber", temp._stockCode);
 
            btFormat.Print("BigLabelPrint", true, -1, out btnMessages);
            btFormat.Close(BarTender.BtSaveOptions.btSaveChanges);

 

Any Help would be appreciated

 

Kind Regards

登入寫評論。