Fog Creek Software
Discussion Board

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.

Does anyone know how to customize the printed page header?  I'd like to put my name & all that jazz on the code printouts,  and in Page Setup there's only the checkbox to either include Page Header or not include it.

Thursday, May 27, 2004

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.

Thursday, May 27, 2004

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 guess I don't have to print from VS.NET, so I'm looking at other C++ editors, evaluating them solely on their printing capabilities. 

Speaking of which, anyone know any easy ways to print outputs of C++ programs?  We have to include our outputs as well as our source.  I have no idea if my prof is going to type all these programs in to test they compile, or if he's going to just take our word that it works correctly.  Doesn't make sense to me.

Friday, May 28, 2004

I suggest you simply type out what the output should be, then....

Or get it to write to a file, and print that instead if you're feeling honest.

Mr Jack
Friday, May 28, 2004

There's EditPlus ( ) and EmEditor ( ), which are both standalone code editors that let you customize the output.

Friday, May 28, 2004

Cut and paste the code into Word, that preserves everything including the color coding.

Plus you can do headers and footers there too.

Friday, May 28, 2004

*  Recent Topics

*  Fog Creek Home