VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

How to Add Print Preview to VB (updated)

Vincent Lozada  (3 Submissions)   Custom Controls/Forms/Menus   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This code was originally coded using 16-bit Win API function calls and I switched to 32-bit... looks like I missed some in the first release. If you discover any OVERFLOW problems, it's because of this fact. I think I got them all. Anyway, here's the intro...
It would be ideal to have a generic print routine that could print to the printer or to the screen depending on what you pass it. This project shows you how to create printing routines that can print to the printer or to a picture box. This enables you to add print preview capabilities to your Visual Basic applications. Since there are several ways that you could implement print preview in your applications, this project describes one method that is easy to do in Visual Basic and works well.

Assumes
Recently, I was on a quest to find some code to add print previewing in my VB apps and I came across this code from the MSDN web site. I found it very useful and I hope you do to. I modified the original code to conform to Windows 32 bit functions. For more details check out Article ID: Q113236

Rate How to Add Print Preview to VB (updated) (3(3 Vote))

Download How to Add Print Preview to VB (updated)

How to Add Print Preview to VB (updated) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters