Solved

The code to print a form to a printer

Posted on 1999-01-22
7
131 Views
Last Modified: 2010-05-03
How to print any form to a printer ?
With or without graphics !
The sulution must work on any computer and on any printer. If it prints in color - Fine, but not necessery.

My own test doesn't works on screen having a higher resulution than VGA !
0
Comment
Question by:pgg
[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
  • 3
  • 2
  • 2
7 Comments
 
LVL 10

Accepted Solution

by:
caraf_g earned 100 total points
ID: 1470109
PrintForm
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 1470110
Sorry for the brief answer:

In a Form module, to print the actual form
PrintForm

In any module to print any form
FormVariable.PrintForm
0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1470111
I tried a version using the paintpicture method....
Capture the form as a picture ..... then use printer.paintpicture.

regards
Jon

0
Independent Software Vendors: 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 1

Expert Comment

by:Johnn
ID: 1470112
Hey MAVERICK...where did you get your solution?  I posted that same one a few days ago..
0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1470113
From WATY...

Johnn: As promised I checked your solution .... It needs alittle more work to do with the window's handle .... If u took the get window handle code from waty ...It'd probably work...

No offense but... waty has some of the best written code around...



0
 
LVL 1

Expert Comment

by:Johnn
ID: 1470114
Maybe so...I was only doing it off the top of my head.  I never actually tested it(I leave this up to the questioner as I'm not being compensated for it(at least financially) as well as I beleive they need to "do it" themselves to really learn and understand the solution.

John
0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1470115
Thats one way to look at it .... but API programming is difficult at the best of times..... As I understand... using standard modules is a common time saver for programmers..

In any case .... pgg refer to http://www.experts-exchange.com/Q.10118894 for the capture codes.....



0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 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…

752 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