Retrieving Order Number from Print Pipeline

Discussions concerning general integration topics.

Moderator: Phil Barton

Post Reply
tim.pageler
Posts: 10
Joined: Fri Jan 10, 2014 4:18 pm

Retrieving Order Number from Print Pipeline

Post by tim.pageler »

We are attempting to add a custom barcode to each document that is printed from a SoftPro Select Order using the pre-processing stage of the print pipeline. The barcode is made up of several elements. Two of which are the order number and the document name. Working with the Acknowledgement document, we found the order number in the Print Job Item Properties, but this seems to be inconsistent. As an example, the order number is not contained in the print job item properties for the HUD-1, with print options document.

A couple of questions.

1. Is there a reason for the inconsistencies in the Print Job Item Properties?
2. What is your recommendation on the best place to pull the order number when printing documents?

We are using SoftPro Select Version 2.6.
yatin.t
Posts: 24
Joined: Tue Jan 07, 2014 9:40 am
Location: Raleigh, NC

Re: Retrieving Order Number from Print Pipeline

Post by yatin.t »

I recommend getting the order from the print job. You can access any information you are looking for that's exposed by the IOrder interface.

Example:

Code: Select all

IOrder order = printJob.Properties["Order"];
string number = order.Number;
Hope it helps!
Yatin Tawde
Softpro
Software Engineer
tim.pageler
Posts: 10
Joined: Fri Jan 10, 2014 4:18 pm

Re: Retrieving Order Number from Print Pipeline

Post by tim.pageler »

That did it. Thank you.
Post Reply