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.
Retrieving Order Number from Print Pipeline
Moderator: Phil Barton
-
- Posts: 10
- Joined: Fri Jan 10, 2014 4:18 pm
Re: Retrieving Order Number from Print Pipeline
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:
Hope it helps!
Example:
Code: Select all
IOrder order = printJob.Properties["Order"];
string number = order.Number;
Yatin Tawde
Softpro
Software Engineer
Softpro
Software Engineer
-
- Posts: 10
- Joined: Fri Jan 10, 2014 4:18 pm
Re: Retrieving Order Number from Print Pipeline
That did it. Thank you.