Print all file in a project or solution

  • Thread starter Thread starter Tem
  • Start date Start date
As far as I know there's no built-in command to print all files in a project.

You could do it with a macro though, maybe something like:
Sub PrintAll()
For Each projectx As Project In DTE.ActiveSolutionProjects
For Each projectItem As ProjectItem In projectx.ProjectItems
projectItem.Document.Activate()
DTE.ExecuteCommand("File.Print")
Next
Next
End Sub
 
Back
Top