This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.

Convert to binary, then convert each "block" of 4 binary bits to a hex digit.

For example, consider 179. In binary, this is 10110011. Break this into blocks of 4 from right to left (since there might be leading zeros): 1011 0011. Then convert each of these blocks to a hex digit: b3.

Note: To convert to octal, break the binary representation into blocks of 3 (from right to left): 010 110 011. Then convert each of these blocks to an octal digit: 263.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com