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 4 3017
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*@iamtiredof spam.com> wrote in message
news:u9******** ******@tk2msftn gp13.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
"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.
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*@iamtiredof spam.com> wrote in message
news:un******** ******@tk2msftn gp13.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.
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*@iamtiredof spam.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
selecting the appropriate check box.
In DotNet the only way I have found to print my code is by selecting one
module at a time.....which is very annoying.
|
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 problem.
Have you ever wanted to use print to a file using the
System.Drawing.Printing namespace only to find out that the only way
to do it is by popping a dialog box through the PrintDialog? What if
you want to print to file without user...
|
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 labels....due to slippage, soon
you have the printout missing the label. So we are thinking that we have to
use sheets of labels.
HOWEVER, one job may need 15 labels, another may need 8, etc.
Does anyone have a solution for how to set this up in...
|
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 project, just
the module, etc. In VB.Net that control appears to be missing-what's
open is what you get. Further, I've already wasted a ream of paper by
forgetting to expand all the regions before printing. Do you have any
suggestions? Thanks.
|
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 print the current contents of the browser
without bringing up the print dialog.
At first I thought it was a simple matter to have the button's "onclick"
attribute set to "window.print();". However, that always brings up the
print dialog box. ...
| |
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 "InvalidPrinterException was unhandled" error. The
error happens in the third line below. The details of the error are below
my signature. Help?
PrintDialog1.PrinterSettings.PrinterName = sLabelPrinterDeviceName
PrintDialog1.Document = PrintDocument1
|
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 example anywhere that someone can point me to that is
more flexible?
And, I mean flexible in this regard:
|
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 clients (Internet Explorer).
My flash content was originally brought in via the “flash satay” method,
but I have since used some server-side magic do deliver one <objecttag
|
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 classes, for each of the
checked rows in the GridView. This works fine in the Visual Studio 2005
development environment on localhost. But, when I move the page to the web
server, I get the error "Settings to access printer...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |