Receipt Print Modification

16
Receipt Print Modification Right Click 3.0 Kevin Devine Euclid Public Library August 22, 2007

Transcript of Receipt Print Modification

Page 1: Receipt Print Modification

Receipt Print Modification

Right Click 3.0Kevin Devine

Euclid Public Library

August 22, 2007

Page 2: Receipt Print Modification

The Problem

• Handwritten slips for reserves

• No consistency

• Bad spelling / penmanship• 100s handwritten each day

• Even in front of patrons waiting to checkout!

Page 3: Receipt Print Modification

The Goal

Before After

Page 4: Receipt Print Modification

From the beginning

• Can it be done?

• How will it work?

• Can our ILS do this?

• Initially, the answer was “No”, but the question lingered… Could this be done?

Page 5: Receipt Print Modification

TIME PASSES…

Page 6: Receipt Print Modification

A New Problem Arises

Page 7: Receipt Print Modification

Goal Revisited

Routing Before Routing After

Page 8: Receipt Print Modification

Options?

• Screen capture / OCR / Print

• Utilizing Window Handles to get Textboxes

• Staff copy and paste to another application

• Change ILS to a system that works better

• Capture Spool file and modify output

Page 9: Receipt Print Modification

Spool File

What are these?

Page 10: Receipt Print Modification

Escape Codes

• Specific to each brand of printer

• SDK on website

• List of commands– Font height and width– Bold, Underline, Italics– Line feeds, cut paper

– Change text orientation

Page 11: Receipt Print Modification

Example Escape Code (in code)

• ChrW(27) & ChrW(104) & ChrW(51) & ChrW(27) & ChrW(87) & ChrW(49) & ChrW(27) & ChrW(45) & ChrW(49) & ChrW(27) & ChrW(69) & sName

• ChrW(27) & ChrW(104) & ChrW(48) & ChrW(27) & ChrW(87) & ChrW(48) & ChrW(27) & ChrW(45) & ChrW(48) & ChrW(27) & ChrW(70)

• Bold, Underline, Height = 4, Width = 2 turned on• The second bullet turns those all off

Page 12: Receipt Print Modification

Capturing a Print Job

• Small jobs enter and exit the spool quickly

• Pause/Unpause the queue?

• Create a “dummy” printer• Copy modified spool file to real printer

Page 13: Receipt Print Modification

A Little Bit of Code

• Monitoring application– VB.net– Watches the “dummy” print queue

– Looks for keywords in spool file• HOLD FOR:• in transit to:

– Modifies the spool file with escape codes– Copies to the real printer

Page 14: Receipt Print Modification

Results

• Circulation was ecstatic!

• Reserves have readable names

• Routing slips are easy• Patrons are not waiting for the staff to

write out slips

• Customer Service and line speed have increased

Page 15: Receipt Print Modification

Time Comparison

Before

• Writing reserve slips– 20 seconds

• Writing routing slips– 20 seconds

• Reserves per month: 9000

• Routing per month: 4000• Total Time:

– 72 hours a month

After

• Printing reserve slips– 2 seconds

• Printing routing slips– 2 seconds

• Reserves per month: 9000• Routing per month: 4000• Total Time:

– 7 hours a month

It cut the work down to 1/10th of

before!

Page 16: Receipt Print Modification

Any Questions?Receipt Print Modification

Right Click 3.0

Kevin Devine

Euclid Public Library

[email protected]

August 22, 2007