473,399 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

printing source code

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

Nov 20 '05 #1
4 2990
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
"Tom Leylan" <ge*@iamtiredofspam.com> wrote in message
news:u9**************@tk2msftngp13.phx.gbl...
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

Nov 20 '05 #2
"Ron Allen" <rallen@_nospam_src-us.com> wrote...
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.
Nov 20 '05 #3
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
"Tom Leylan" <ge*@iamtiredofspam.com> wrote in message
news:un**************@tk2msftngp13.phx.gbl...
"Ron Allen" <rallen@_nospam_src-us.com> wrote...
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.

Nov 20 '05 #4
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.

"Ron Allen" <rallen@_nospam_src-us.com> wrote...
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. "Tom Leylan" <ge*@iamtiredofspam.com> wrote...
"Ron Allen" <rallen@_nospam_src-us.com> wrote...
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.

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bernie | last post by:
How does one print an applications' source code. Once I have finished writing my application I like to keep a hard copy. In VB6 one had the capability to print the current module or the project...
1
by: BJS | last post by:
Sorry for the cross-posting, but based on the number of people I have seen ask for a solution to this problem, I hope by cross-posting this, that it will help a lot of people out of a common...
2
by: DBQueen | last post by:
I have a database which will be printing out labels for SMALL test tubes (1/4" high). We have yet to find a reasonably-priced printer (labelwriter) which can effectively print this on ROLLS of...
1
by: zoneal | last post by:
Part of our peer review process is a code walk-thru using hard-copy source code. I'm not real happy with the way source code is printed in VS.Net. In VB6 we had the option of printing the entire...
3
by: John Peterson | last post by:
Hello all! I'm at my wits end trying to search for what I assumed to be a relatively straightforward task. I have a Web application written in C#, and I have a button on the form that I want to...
8
by: Rick Lederman | last post by:
I am using a PrintDocument and PrintDialog to print. The first time that I print it works, but when I try to print a second time without exiting the entire program I get an...
6
by: Ron | last post by:
Hi, I know Access allows for easy construction of a report setup to print labels from a table/query, etc. I've done that one. It works pretty well for what I need. However, is there an...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.