Solved

print c# project

Posted on 2013-01-23
3
488 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
[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
  • Learn & ask questions
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
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 …
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Suggested Courses

615 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