Printing Source Code from VS 2003
My CS professor is requiring all code submissions to be turned in as hard copies. Bleah. I'm using Visual Studio 2003 as my editor, and I see that when you print out source code you get a nice header (file name & path) and a page number. I really like the line-continuation arrows... the output looks much better than I feared.
I don't know anything about modifying the header within VS, but I once used a utility for VS 6 called VBCodePrint that allowed you to print the source from within the IDE with all kinds of formatting and content options. I vaguely remember seeing that they had a plug-in for VS.NET now too - you might want to check it out.
I checked out VS codePrint, and they don't print C++. I also like the way VS.NET displays the code that's too long for one line.
I suggest you simply type out what the output should be, then....
Cut and paste the code into Word, that preserves everything including the color coding.
Fog Creek Home