Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PRINT PREVIEW IN VB

Status
Not open for further replies.

sagarrasal

Technical User
Nov 1, 2003
7
IN
Dear Friends,

This is regarding adding print preview to vb projects.
Most of us require print preview somewhere in our projects.
I searched hard to find some solution to add print preview to the applications such as labels printing, invoice printing etc.The commercial products like dll's ocx etc. are very costly and simple programmers like us cannot afford them for single project .
I am sure there is a simple way to add multipage preview
to the project. I wish to seek the help of experts like you regarding the same.

So,please help...!

Thanks and regards
 
The preview depends in the environment your reports are.
For example en Data Report, you can have the multipage preview with
Code:
 DataReport1.Show 1
You can also try with Crystal Report.
Or doing by your self in a memo or in a grid.

Hope this helps,

David.
 
Hi Sagarrasal:

Per Rod Stephens book, Visual Basic Graphics Programming, since the PictureBox control and the Printer object have essentially the same graphical commands, one can easily do a preview by sending the commands to a PictureBox control. When one wants to do the actual print, then redirect the commands to the Printer object.

The same graphics routines can be used for both PictureBox controls and Printer objects if one passes in an Object variable that points to either the PictureBox control or the Printer object.

Description of the book:
HTH,
Cassie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top