Solved

# print c# project

Posted on 2013-01-23
481 Views
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
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 75

Expert Comment

ID: 38811321
Perhaps a batch file?

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

0

Author Comment

ID: 38811409
Not sure what you mean by that ?

I was looking to print using Visual Studio
0

LVL 4

Accepted Solution

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

Question has a verified solution.

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

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
###### Suggested Courses
Course of the Month4 days, 5 hours left to enroll