code printing utility

  • Thread starter Thread starter cj
  • Start date Start date
C

cj

I always have liked to print my code and look at it on paper. Used to
be I could print my code on nice tractor feed green bar paper. Now I
have to tape pages together. Oh well.

What really kills me is I used to use a utility called Snap in xbase
languages that drew lines connecting if, elses, endifs and other loops
etc so they were easy to see the nesting etc. Like this:

| +-if not (directory("i:\cust"))
| | thisform.label1.caption = 'network down, program exiting'
| | thisform.refresh()
| | wait "" timeout 3
<=========quit
| +-endif
| mretval = thisform.ftpcontrol2.connect(ftpserver)
| thisform.label1.caption = iif(mretval=0,'Succeeded','Failed')
| thisform.refresh()
|
| +-if mretval=0
| | mretval = thisform.ftpcontrol2.changedirectory('Rpt')
| | +-if mretval = 0
| | | thisform.label1.caption = 'CWD Succeeded'
|

I know it's kind of a long shot but, does anyone know of anything that
will allow me to print VB.net code like this? I'm using a ruler and pen
now!
 
I always have liked to print my code and look at it on paper. Used to
be I could print my code on nice tractor feed green bar paper. Now I
have to tape pages together. Oh well.

What really kills me is I used to use a utility called Snap in xbase
languages that drew lines connecting if, elses, endifs and other loops
etc so they were easy to see the nesting etc. Like this:

| +-if not (directory("i:\cust"))
| | thisform.label1.caption = 'network down, program exiting'
| | thisform.refresh()
| | wait "" timeout 3
<=========quit
| +-endif
| mretval = thisform.ftpcontrol2.connect(ftpserver)
| thisform.label1.caption = iif(mretval=0,'Succeeded','Failed')
| thisform.refresh()
|
| +-if mretval=0
| | mretval = thisform.ftpcontrol2.changedirectory('Rpt')
| | +-if mretval = 0
| | | thisform.label1.caption = 'CWD Succeeded'
|

I know it's kind of a long shot but, does anyone know of anything that
will allow me to print VB.net code like this? I'm using a ruler and pen
now!

Hmm... I used to use coderush from devexpress - and it would do
something like that in the ide (actually the code flow visualization
was excelent). What I can't remember is if it would print with that
stuff....

You could check it out over at http://www.devexpress.com
 
Hello,

From your post, my understanding on this issue is: you wonder if there is a
tool that can format and print VB.NET code like Snap. If I'm off base,
please feel free to let me know.

In Visual Studio 2005 IDE, there is a tool to format VB.NET codes: Edit
menu->Advanced->Format Document. In this way, the VB.NET codes will be
indented as what Snap does. Please have a try and let me know if the
utility fit your request.

I also find some third party products like VS.NETcodePrint, VBcodePrint,
etc. Please note that the following links contain references to a third
party World Wide Web site. Microsoft is providing this information as a
convenience to you. Microsoft does not control these sites and has not
tested any software or information found on these sites; therefore, we
cannot make any representations regarding the quality, safety, or
suitability of any software or information found there. There are inherent
dangers in the use of any software found on the Internet, and Microsoft
cautions you to make sure that you completely understand the risk before
retrieving any software from the Internet.

For VS.NETcodePrint2005, see:
http://www.bestvistadownloads.com/software/t-free-vs-netcodeprint-2005-downl
oad-vuoycwia.html
For VBcodePrint, see: http://www.sharewareconnection.com/vbcodeprint.htm

Please let me know if you have any other concerns, or need anything else.

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Thanks, I'll check into it as soon as I get a bit of time. If this can
do it on the screen I might be able to use it like that too. Snap never
did it on the screen--well you could view it there but it wasn't like
you could edit the code and expect it to work because you'd have to
remove all those ASCII lines. Snap had many options for standardizing
indentation and capitalization etc and would write a prg file back that
you could compile as well as a report file with the lines etc for
printing. VB is quite nice in most respects but I sure do miss being
able to hang a program up on my cork board in a couple strings of fan
folded paper with the lines on them and stand back and see groups of
code mark it up with my highlighters and decide what needs to go where
before changing the code in the ide.
 
I'll look at the links as soon as I have a chance but as far as Visual
Studio it does indent but I really wanted the lines connecting if with
endif etc to help me visualize the nesting of code etc.
 
cj said:
Thanks, I'll check into it as soon as I get a bit of time. If this can do
it on the screen I might be able to use it like that too. Snap never did
it on the screen--well you could view it there but it wasn't like you
could edit the code and expect it to work because you'd have to remove all
those ASCII lines. Snap had many options for standardizing indentation
and capitalization etc and would write a prg file back that you could
compile as well as a report file with the lines etc for printing. VB is
quite nice in most respects but I sure do miss being able to hang a
program up on my cork board in a couple strings of fan folded paper with
the lines on them and stand back and see groups of code mark it up with my
highlighters and decide what needs to go where before changing the code in
the ide.

Old school man...old school...brings back memories... :)

Mythran

-- An abacus is a few pieces of wood that can count faster than you. - Me
 
Back
Top