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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DrJaxAuthor Commented:
Edited text of question.
0
tg_georgeCommented:
try <formname>.printform
0
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
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.