Results 1 to 5 of 5

Thread: Print Preview

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115

    Cool

    Hi ,

    Is there any way i can use API call to implement "Print Preview" function with VB?

    Thanks.


  2. #2
    Guest
    Go to http://www.vbcode.com and in the search, type Print Preview and a few things come up, which may help you.

  3. #3
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    Well...sort of...

    Draw everything, you would normally print, on a PictureBox (or a Form) using APIs, or use VB methods (Circle, Line, etc.). You could create a printing function which can print to screen and printer.

    <code>Public Sub PrintData(ByVal objHandle As Object)
    ' Put the printing code here

    End Sub
    </code>

    To create a print preview, you would do this: Call PrintData(picPreview)
    To actually print, do this: Call PrintData(Printer)

    Hope this helps.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115

    Cool

    Thank you guys.

  5. #5
    Addicted Member KrishnaSantosh's Avatar
    Join Date
    Feb 2001
    Location
    Coimbatore
    Posts
    210
    Hi

    My Email Is :[email protected]

    Print Preview can be implemented in Visual Basic using APIs.

    For the complete Source For My Print Preview OCX
    EMail Me.

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