Solved

print c# project

Posted on 2013-01-23
3
473 Views
Last Modified: 2013-01-31
Is there a easy way to print out all the code in a C# application without having to go to each object in solution explorer and print from there ?
0
Comment
Question by:phiadmin
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38811321
Perhaps a batch file?

for /R "C:\path\to\top\level\folder\containing\c-sharp\files" %c in (*.cs) do print "%c"

Open in new window

0
 

Author Comment

by:phiadmin
ID: 38811409
Not sure what you mean by that ?

I was looking to print using Visual Studio
0
 
LVL 4

Accepted Solution

by:
jiangsheng earned 150 total points
ID: 38811485
The fearure is not built-in in Visual Studio, but you can write a macro in VBA to automate Visual Studio's API, provided you have a version that is automatable (sorry no Express edition) Check http://stackoverflow.com/questions/683759/visual-studio-printing-all-source-files-in-a-solution for a sample code.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question