Print Form full size

I need to print a form that contains a graph, several labels, and a print control button.  I need to print it in landscape mode (already doing this) to fully cover 8.5 X 11 paper, allowing for 1" margins all around.  The entire form just prints in the upper left corner of the paper.  I'm sure this has been answered before, but I can't find it spelled out like I need it.  I'm using VB6....
DrJaxAsked:
Who is Participating?
 
mark2150Connect With a Mentor Commented:
Yeah, it's not the "childs play" that PrintForm is, but then it doesn't *LOOK* like "childs play" when you're done either!

M
0
 
DrJaxAuthor Commented:
Edited text of question.
0
 
tg_georgeCommented:
try <formname>.printform
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
caraf_gCommented:
PrintForm is not good enough - it does exactly what DrJax is complaining about.

In order to achieve what you're trying to do you'll have to capture the screen, create a bitmap and stretch it to the appropriate size, then print it. Which takes too long to explain for 25 points and to someone who's only been grading Bs and Cs so far.
0
 
mark2150Commented:
Stretching the bitmap will give you an *UGLY* display. If you care about print quality then you need to modify your print routine to generate the data to the printer. This means you'll have to can the M$Chart control (no great loss there!) and render to the printer device directly. This will give you better quality printing than possible using *ANY* varient of PrintForm and gives you precise control over what hits the paper. With a little effort you can have the same routine do both screen and printing. Lots of examples of how to do this on my web page:

www.cyberchute.com/rvbus/madmark

M
0
 
caraf_gCommented:
Hi Mark,

You're absolutely right. What I was talking about was to create a screen shot and displaying that using the full width of the printer. What you're suggesting is much better, but of course it means putting in even more effort ;-)
0
 
DrJaxAuthor Commented:
Mark,

Thank you for your KIND reply.  I've increased the point value to  100.  Enjoy them.  
0
 
caraf_gCommented:
DrJax, sorry if I was a bit rough on you there. Thanks for accepting mark2150's answer with an "A". It was worth it.
0
 
mark2150Commented:
DrJax,

Thank you for the lovely points. They cast a nice glow on the keyboard (grin).

If you need help generating graphs contact me direct (address in my profile) and I'll send you code. I *HATE* the M$Chart control and I'm willing to help anyone get rid of that turd.

There are good code examples on my web page and I can supply you code for all sorts of graphs. Bar charts, histograms, multiple line charts, pies, polar plots, etc. It really isn't hard and the results are well worth the coding effort. You learn how and you'll never use the M$Chart again!

Caraf_G: Thanx for the support! :-)

M
0
All Courses

From novice to tech pro — start learning today.