Results 1 to 4 of 4

Thread: Print all source code at one time

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Location
    Sweden
    Posts
    15

    Print all source code at one time

    First all of you must excause me, because I am sure this is a simple question that also has a simple answer.

    How do I print all source code in a project at one time in Visual basic .Net/Visual Studio .Net?

    I just managed to print one class/module/form at the time, but when I have 30 of these to print I would like a much easier way to print them all at the same time.

    VB6 could do that, and there was also a function you could choose that allowed you to print specifikations/properties for a form and the controls on it. I am looking for something similiar in VB.Net!

    I hope that there is someone out there who can help me with this.

    /Anders

  2. #2
    Lively Member
    Join Date
    Jul 2003
    Location
    Kuala Lumpur (Malaysia)
    Posts
    92
    As far as i know.... it is not possible in VS.Net. You have do it one by one.

  3. #3
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    http://www.starprint2000.com/vsnetco..._features.html

    Maybe it helps.
    Ofcourse I think you may be able to print all source code using a macro.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  4. #4
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    In fact there is a sample macro in VS.NET 2003, called DevStudio6Editor and there is a sub in that called PrintAllOpenDocuments with the following code.
    VB Code:
    1. Sub PrintAllOpenDocuments()
    2.         'Description:  Prints all open, active documents
    3.         Dim doc As Document
    4.         For Each doc In DTE.Documents()
    5.             doc.PrintOut()
    6.         Next
    7. End Sub
    You may use that.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width