Solved

print c# project

Posted on 2013-01-23
3
450 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 74

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now