Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using SQL Server Management Studio 2012. I am trying to print a stored procedure in the color-coded syntax that it loves showing me, but cannot find an option to enable this. Any ideas?

I know on VS2010 that we (finally) got color output for text, via an add-in on MS's site, but I cannot seem to locate anything for SQL Server Management Studio via Google. Why am I printing this thing out? Because it's 15 pages long, and I am trying to clean it up.

share|improve this question

migrated from stackoverflow.com Nov 6 '12 at 17:44

This question came from our site for professional and enthusiast programmers.

2  
as a workaround, you can paste it into MS Word, and print. not optimal, but works. –  Frank Thomas Nov 6 '12 at 13:54
    
Have you tried in the printer properties on the print page? I got the option to print in color but never tried it –  Marc Nov 6 '12 at 13:58
2  
I just printed my query in color from from SQL Server 2005 Management Studio. –  KM. Nov 6 '12 at 14:16

2 Answers 2

IMHO you just print it out.

I'm using SQL Management Studio from my SQL Server Developer 2008 R2 installation and anything that is displayed in colour gets printed in colour.

You might be experiencing a problem with your printer.

  • Try going into the "File | Page Setup..." of the current query window and click on the "Printer" button
  • Check the printer settings.
share|improve this answer
    
Hmm, using SQL Management Studio from 2012, and it does appear to be set to print in color. It's a color laser printer too, so no question about it being a B/W printer. –  user978122 Nov 16 '12 at 17:51
    
@user978122 Are you in a corporate environment where the printers are set to print in black and white no matter what the user specifies? At the company I work for, we have two virtual printers per physical printer. One is defined and pinned to B&W and the other printer is set to use RGB. –  hot2use Nov 19 '12 at 11:49
    
Home printer, set for whatever I send it. Perhaps copying and pasting the query into Notepad++ is the best I can do. –  user978122 Nov 21 '12 at 20:46

From Color syntax printing in SSMS 2012:

The color printing extension for Visual Studio 2010 works just fine for adding the color print ability to SSMS 2012. Download the VSIX package, and unzip into it's own directory in your to your SSMS extensions folder - most Likely:

C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\Extensions

You'll then want to modify the extension.vsixmanifest file. In the <SupportedProducts> section add:

 <IsolatedShell Version="1.0">ssms</IsolatedShell>

After that, restart SSMS, and you'll have the ability to print in color, even if it doesn't look like it.

Also, the fact that the Offical Documentation page lists the ability to modify the printer colors, and it has been supported in previous versions, and the interface has the ability to adjust printed colors, makes me think that this is a long lasting bug.

screenshot

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.