Printing From C# Slow Scenario - Any Suggestions? 追蹤

0
Avatar
Legacy Poster

I have a C# application where I print a variety of labels using the BarTender API. The "usual" scenario is

 

Create BarTender object and get required document

Load data from database

Populate the substrings in the document

Request printing for N serial number

 

This works fine and the labels are printed rapidly as, I believe, the serialisation is handled by the printer.

 

Now in a single scenario, I have a unique piece of data per serial number which is generated by the application (not from database). My application now looks like this

 

Create BarTender object and get required document

Load data from database

For each Label Required

  Populate the substring in the document (including serial number and generated data)

  Request printing for the single label

Next Label

 

Naturally, this runs much slower as each label is being sent as a single print job.

 

Any suggestions as to how I could improve this print time would be much appreciated.

 

Cheers

Geoff

登入寫評論。