Hi ,
Is there any way i can use API call to implement "Print Preview" function with VB?
Thanks.
Printable View
Hi ,
Is there any way i can use API call to implement "Print Preview" function with VB?
Thanks.
Go to http://www.vbcode.com and in the search, type Print Preview and a few things come up, which may help you.
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.
Thank you guys.
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.