|
-
Jan 31st, 2001, 03:38 PM
#1
Thread Starter
Lively Member
Hi ,
Is there any way i can use API call to implement "Print Preview" function with VB?
Thanks.
-
Jan 31st, 2001, 04:29 PM
#2
Go to http://www.vbcode.com and in the search, type Print Preview and a few things come up, which may help you.
-
Jan 31st, 2001, 04:37 PM
#3
Addicted Member
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.
-
Feb 1st, 2001, 08:14 AM
#4
Thread Starter
Lively Member
-
Feb 7th, 2001, 07:49 AM
#5
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|