Link to home
Start Free TrialLog in
Avatar of DrJax
DrJax

asked on

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....
Avatar of DrJax
DrJax

ASKER

Edited text of question.
try <formname>.printform
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.
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
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 ;-)
ASKER CERTIFIED SOLUTION
Avatar of mark2150
mark2150

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DrJax

ASKER

Mark,

Thank you for your KIND reply.  I've increased the point value to  100.  Enjoy them.  
DrJax, sorry if I was a bit rough on you there. Thanks for accepting mark2150's answer with an "A". It was worth it.
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