CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: about print

  1. #1
    Guest

    about print

    is there a constant, such as vbcr, that can be used to begin a new page when print it? sorry, I don't want to use printer.newpage.
    for example: I have a string -- "good test", and i want to print "good" in page one, and print "test" in page two, how can I do? don't use printer.newpage


  2. #2
    Join Date
    Mar 2000
    Posts
    145

    Re: about print

    Chr$(12) is a formfeed. However, if you use something like Printer.Print Chr$(12) I'm not sure it will work correctly. The printer driver may intercept it and reinterpret it as a graphic character. To make this work, you may need to use the WritePrinter API which sends raw data to the printer. For more on that, goto msdn.microsoft.com and search for WritePrinter.


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