It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Print Preview using visual basic help...

Moderator: dafunkymunky

Print Preview using visual basic help...

Postby xirosen on Wed Sep 23, 2009 10:11 am

i have a simple program that save and retrieve information into database(MS Access). my problem is how to print preview information from db that looks like a preview from (MS Word Print preview)..
You do not have the required permissions to view the files attached to this post.
xirosen
 
Posts: 1
Joined: Wed Sep 23, 2009 9:45 am

Re: Print Preview using visual basic help...

Postby pachecf on Fri Oct 09, 2009 6:43 pm

You need to use VB6 reportint tool.
pachecf
 
Posts: 6
Joined: Thu Oct 08, 2009 8:18 pm

Re: Print Preview using visual basic help...

Postby bytelogik on Sat Oct 17, 2009 1:08 pm

A few years ago, I was stuck with a similar problem, and I really did not wanted to write all the Printer statements from code. I wrote a simple DB to HTML code module and displayed the report in form of a web page. Then it was a simple right click and print solution. Although it is rather rough logic but still it will save you from writing larger amount of code like margins, word-wrapping, etc.

You can use other grid controls which have direct print method, or the professional grid controls like FlexGrid which can give you a lot of control over how you print the database information.

And lastly, you can write your own GridPrinter module. It will consume a lot of logic and time, but it will be completely of your own of-course.

Hope this helps.
bytelogik
 
Posts: 12
Joined: Tue Oct 06, 2009 7:24 pm


Who is online

Users browsing this forum: No registered users and 4 guests