Solved

Print Preview Window

Posted on 1998-06-08
9
214 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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
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
 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 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