printing source code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom Leylan

    printing source code

    Are we past the point when we need to print source code? I'm having two
    problems.

    The most important one is that opening a .vb file and simply printing it
    _does_ print the source but code within regions doesn't print if the region
    is collapsed. Ideally I would like to tell it to print the collapsed
    regions also but I'll settle for an "expand all regions" option somewhere.
    Does anyone know if either is possible?

    The second problem is that my LaserJet is interpreting all the syntax
    coloring as shades of grey and some of it is barely readable. I notice that
    there is an option but under printing there are a bunch more options. Is
    that the only way to set this to black and white just for printing purposes?

    Thanks,
    Tom



  • Ron Allen

    #2
    Re: printing source code

    Tom,
    Ctrl+M, Ctrl+P will open all outlining in a file (see Edit/Outlining
    menu). The only way I know of to change the printing colors is to use
    Tools/Options/Fonts and Colors and set the printer settings as desired.

    Ron Allen
    "Tom Leylan" <gee@iamtiredof spam.com> wrote in message
    news:u9j3xmjrDH A.2408@tk2msftn gp13.phx.gbl...[color=blue]
    > Are we past the point when we need to print source code? I'm having two
    > problems.
    >
    > The most important one is that opening a .vb file and simply printing it
    > _does_ print the source but code within regions doesn't print if the[/color]
    region[color=blue]
    > is collapsed. Ideally I would like to tell it to print the collapsed
    > regions also but I'll settle for an "expand all regions" option somewhere.
    > Does anyone know if either is possible?
    >
    > The second problem is that my LaserJet is interpreting all the syntax
    > coloring as shades of grey and some of it is barely readable. I notice[/color]
    that[color=blue]
    > there is an option but under printing there are a bunch more options. Is
    > that the only way to set this to black and white just for printing[/color]
    purposes?[color=blue]
    >
    > Thanks,
    > Tom
    >
    >
    >[/color]


    Comment

    • Tom Leylan

      #3
      Re: printing source code

      "Ron Allen" <rallen@_nospam _src-us.com> wrote...[color=blue]
      > Tom,
      > Ctrl+M, Ctrl+P will open all outlining in a file (see Edit/Outlining
      > menu). The only way I know of to change the printing colors is to use
      > Tools/Options/Fonts and Colors and set the printer settings as desired.[/color]

      Hi Ron: I just tried it and it doesn't seem to work for me.

      I did just find that Ctrl-A (to select all) and Ctrl-M, Ctrl-M will toggle
      them open and closed. So that's not too bad. Perhaps I can assign that to
      a macro or something. I find that Visual Studio has a surprisingly limited
      code printing capability.


      Comment

      • Ron Allen

        #4
        Re: printing source code

        Tom,
        I just tried it again and it works for me (in C#). Ctrl-M, Ctrl-L is
        also supposed to toggle outlining mode on/off. When I use your method in C#
        it either completly collapses the ouline or just opens to a bare definitions
        view.
        Ron Allen
        "Tom Leylan" <gee@iamtiredof spam.com> wrote in message
        news:unsB$errDH A.2880@tk2msftn gp13.phx.gbl...[color=blue]
        > "Ron Allen" <rallen@_nospam _src-us.com> wrote...[color=green]
        > > Tom,
        > > Ctrl+M, Ctrl+P will open all outlining in a file (see Edit/Outlining
        > > menu). The only way I know of to change the printing colors is to use
        > > Tools/Options/Fonts and Colors and set the printer settings as desired.[/color]
        >
        > Hi Ron: I just tried it and it doesn't seem to work for me.
        >
        > I did just find that Ctrl-A (to select all) and Ctrl-M, Ctrl-M will toggle
        > them open and closed. So that's not too bad. Perhaps I can assign that[/color]
        to[color=blue]
        > a macro or something. I find that Visual Studio has a surprisingly[/color]
        limited[color=blue]
        > code printing capability.
        >
        >[/color]


        Comment

        • Tom Leylan

          #5
          Re: printing source code

          Ron,

          Curious. I can't imagine it works differently depending upon what code is
          being viewed :-) I'm using VS2003 but that isn't likely to make a
          difference either. I have Ctrl-M, Ctrl-L listed in the menu but it didn't
          do what I needed. Who knows, perhaps there is a setting somewhere that
          affects it.

          "Ron Allen" <rallen@_nospam _src-us.com> wrote...[color=blue]
          > I just tried it again and it works for me (in C#). Ctrl-M, Ctrl-L is
          > also supposed to toggle outlining mode on/off. When I use your method in[/color]
          C#[color=blue]
          > it either completly collapses the ouline or just opens to a bare[/color]
          definitions[color=blue]
          > view.[/color]
          [color=blue]
          > "Tom Leylan" <gee@iamtiredof spam.com> wrote...[color=green]
          > > "Ron Allen" <rallen@_nospam _src-us.com> wrote...[color=darkred]
          > > > Ctrl+M, Ctrl+P will open all outlining in a file (see Edit/Outlining
          > > > menu). The only way I know of to change the printing colors is to use
          > > > Tools/Options/Fonts and Colors and set the printer settings as[/color][/color][/color]
          desired.
          [color=blue][color=green]
          > > Hi Ron: I just tried it and it doesn't seem to work for me.
          > >
          > > I did just find that Ctrl-A (to select all) and Ctrl-M, Ctrl-M will[/color][/color]
          toggle[color=blue][color=green]
          > > them open and closed. So that's not too bad. Perhaps I can assign that
          > > to a macro or something. I find that Visual Studio has a surprisingly
          > > limited code printing capability.[/color][/color]


          Comment

          Working...