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

Thread: Print Preview

  1. #1
    Join Date
    Apr 2001
    Posts
    4

    Print Preview


    Hi Everyone,

    I have cooked up some code to print everything that is on a form. The only problem though, is that I cannot see what I have done until I print the form. Is there any code out there that I can use to create a print preview? On the form I currently have some text boxes, a ListView control, labels and a few horizontal lines on the page. I would appreciate any help. Thanks.


  2. #2
    Join Date
    Mar 2000
    Posts
    145

    Re: Print Preview

    There are a number of good print preview's out there (some with code, some without), assuming you are using ordinary printer functionality like CurrentX, CurrentY, Line, Print, etc. You may have to modify your code a bit to utilize these, since the object you print to is the print preview window rather than the printer itself. Here is one with code:
    http://www.freevbcode.com/ShowCode.Asp?ID=1167
    Also go to http://www.codehound.com/vb and do a search for "print preview". Quite a number of links there.


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