Solved

Print Preview Window

Posted on 1998-06-08
9
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

726 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