printing source code

T

Tom Leylan

Are we past the point when we need to print source code? I'm having two
problems.

The most important one is that opening a .vb file and simply printing it
_does_ print the source but code within regions doesn't print if the region
is collapsed. Ideally I would like to tell it to print the collapsed
regions also but I'll settle for an "expand all regions" option somewhere.
Does anyone know if either is possible?

The second problem is that my LaserJet is interpreting all the syntax
coloring as shades of grey and some of it is barely readable. I notice that
there is an option but under printing there are a bunch more options. Is
that the only way to set this to black and white just for printing purposes?

Thanks,
Tom
 
R

Ron Allen

Tom,
Ctrl+M, Ctrl+P will open all outlining in a file (see Edit/Outlining
menu). The only way I know of to change the printing colors is to use
Tools/Options/Fonts and Colors and set the printer settings as desired.

Ron Allen
 
T

Tom Leylan

Ron Allen said:
Tom,
Ctrl+M, Ctrl+P will open all outlining in a file (see Edit/Outlining
menu). The only way I know of to change the printing colors is to use
Tools/Options/Fonts and Colors and set the printer settings as desired.

Hi Ron: I just tried it and it doesn't seem to work for me.

I did just find that Ctrl-A (to select all) and Ctrl-M, Ctrl-M will toggle
them open and closed. So that's not too bad. Perhaps I can assign that to
a macro or something. I find that Visual Studio has a surprisingly limited
code printing capability.
 
R

Ron Allen

Tom,
I just tried it again and it works for me (in C#). Ctrl-M, Ctrl-L is
also supposed to toggle outlining mode on/off. When I use your method in C#
it either completly collapses the ouline or just opens to a bare definitions
view.
Ron Allen
 
T

Tom Leylan

Ron,

Curious. I can't imagine it works differently depending upon what code is
being viewed :) I'm using VS2003 but that isn't likely to make a
difference either. I have Ctrl-M, Ctrl-L listed in the menu but it didn't
do what I needed. Who knows, perhaps there is a setting somewhere that
affects it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top