The code to print a form to a printer

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 !
pggAsked:
Who is Participating?
 
caraf_gCommented:
PrintForm
0
 
caraf_gCommented:
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
 
MAVERICKCommented:
I tried a version using the paintpicture method....
Capture the form as a picture ..... then use printer.paintpicture.

regards
Jon

0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
JohnnCommented:
Hey MAVERICK...where did you get your solution?  I posted that same one a few days ago..
0
 
MAVERICKCommented:
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
 
JohnnCommented:
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
 
MAVERICKCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.