Solved

Print Preview Window

Posted on 1998-06-08
9
211 Views
Last Modified: 2012-05-04
I want to create an invoice from my accounting program. The invoice will have a standard format, but the items will vary. What is the easiest way to preview, and then print? I am not sure what kind of window or items are necessary for a print preview. Any help would be appreciated. BTW, I am not interested in a report writer, etc.  I want to code it in the program. Thanks
Ronnie
0
Comment
Question by:redbaron082997
9 Comments
 
LVL 5

Expert Comment

by:bin_huwairib
ID: 1462860
redbaron,

Basically, you can use the picture box control for this purpose but you have to be careful with font size and printing location because the screen resolution is different than the printer. I have a workable example that may help you but unfortunately I can't post it here because it is quit big. So if you can post your email address to send it to you.


Best regards
Bin Huwairib
0
 
LVL 9

Expert Comment

by:cymbolic
ID: 1462861
The easiest way is to get the VS View control from VideoSoft.  It has print preview built in to a replacement and upgrade of the printer object.  They make good controls, you won't go wring on this one.  You can download a demofrom their web site.
0
 
LVL 1

Author Comment

by:redbaron082997
ID: 1462862
As I stated above, I am in need of code. The project I am working on is not a money making deal, and therfore spending anything on it besides my time would be pointless.

Bin, Yes please email me what you have. It may be closer to what I was looking for. Thanks
mailto:redbaron@flash.net
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1462863
There is a great article (Q113236) in the MSKB at:
http://support.microsoft.com/support/kb/articles/Q113/2/36.asp
which explains how to add print preview to VB applications.

The article was written for VB3, but with a few minor modifications to the API declarations it will work for VB4/5.

I submit this as a comment.  If it solves your problem, let me know and I'll resubmit it as an answer.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Expert Comment

by:bin_huwairib
ID: 1462864
redbaron,

I send an email to you regarding the Print Preview source code, did you get it?
0
 
LVL 1

Expert Comment

by:juliocoelho
ID: 1462865
I read a great capter dedicated to the subject "How to make a report without a report writer"

I think you may take a look on that book, it will solve your problem for good.

The book is named : "Advanced Microsoft Visual Basic", Author: "the Mandelbrot Set" Editor: "Microsoft Press"

They make a report writer with a rich format text box, it sounds great doesn't?
Please take a look on that book.

With kind regards
0
 
LVL 1

Author Comment

by:redbaron082997
ID: 1462866
bin_huwairib:
Yes I got the file, and it does do exactly what I was asking. Have you implemented a field or template layout to be filled in? Just wondering, because I think that will be my next step on it.
0
 
LVL 1

Author Comment

by:redbaron082997
ID: 1462867
bin_huwairib:
Post an answer to get your points!! Thanks
0
 
LVL 5

Accepted Solution

by:
bin_huwairib earned 200 total points
ID: 1462868
redbaron, all the best luck.

Best regards
Ben Huwairib
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now