Home » Visual StudioRSS

Cannot print code listings in color from VS 2010

How do I print code listings in color from VS 2010.  I have tried setting the fonts and colors for printing the same as the text editor.  It doesn't work.  I've tried  setting different settings for printing, and it won't print in color.  I have a color printer.
 

4 Answers Found

 

Answer 1

Hi Harold,

The short answer is that color  printing is unfortunately not supported for Visual Studio 2010.  However, this is already on our list of features to reconsider during planning for the next release.  If you'd like to vote for color printing to be reinstated in a future version of VS, I'd encourage you to do so here.  The more votes a bug gets, the more likely it is to be fixed in the future.

For now, you can potentially work around the absence of color printing by copying code into another application (e.g. MS Word) for printing.  Visual Studio's RTF copy/paste functionality allows syntax coloring to persist when copying and pasting into another rich text editor like Word, so copying/pasting from VS to Word and then printing from Word should allow you to print your code in color.

Brittany Behrens | Program Manager | Visual Studio Platform - Editor | The Visual Studio Blog | @VSEditor on Twitter 

 

Answer 2

What defines 'a next release'? Something like VS 2012, or can we expect a patch? Given the superlatives that are normally given on the 'completely reengineered UI' for VS 2010, I would expect the latter....

 

Answer 3

We don't generally release patches for features, so it's unlikely that we'd ship a hotfix for color  printing.

Brittany Behrens | Program Manager | Visual Studio Platform - Editor | The Visual Studio Blog | @VSEditor on Twitter 

 

Answer 4

Maybe it's possible to write a macro that copies the code into a (RTF) richtext control or word doc and prints it from there...

Greetings

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter