CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2001
    Location
    USA
    Posts
    298

    printing tab characters

    I have a formatted page of text that I'm trying to print using StreamWriter.Write and it doesn't seem to understand vbTab. If I write the text to a file, the tabs show up fine but when printed to hard copy there's no white space where the tabs should be.

    Anybody have an idea what's up with that?

    Thanks

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: printing tab characters

    Have you tried \t?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jun 2001
    Location
    USA
    Posts
    298

    Re: printing tab characters

    Yeah, "\t" prints literal, Chr(9) does nothing just like vbTab. This is very frustrating.

  4. #4

    Re: printing tab characters

    How about - Dim c As String = Convert.ToChar(Keys.Tab)
    Share your DVD library contents with your Facebook Friends at www.isharealot.com

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

Featured