By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,059 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

How to send Line command graphics from form to printer?

P: 9
I must be missing something here, but I can't seem to come up with a way to send the image generated on a form or picture box to my printer. Any help would be appreciated.

Expand|Select|Wrap|Line Numbers
  1. Form2.Picture1.Line (BaseStartLeft, BaseStartTop + TtlHt - TKHeight)-_
  2.                        Step(BDepth - TKDepth, TKHeight), B
I tried Printer.Print and PrintForm methods, and either they don't work in this instance or my configuration is wrong.

Thank you,
Robert
Nov 27 '07 #1
Share this Question
Share on Google+
6 Replies


Expert 5K+
P: 8,434
At a guess, you need to turn on the AutoRedraw property of the form before drawing the line.

(Don't forget, you can use the same drawing commands on the Printer object.)
Nov 27 '07 #2

P: 9
Thank you very very much!!! You hit the nail right on the head. I turned that property on, and all is well.

Is VB6 capable of 3D graphics? I'm writing a cabinet design program, and would very much like to include a 3D view of the kitchen or bath cabinet project. I am almost finished with the 2D plan views, cross sections, and elevations, but I've never done any 3D work.

Thanks again,
Robert
Dec 3 '07 #3

Expert 5K+
P: 8,434
I've got a sample program somewhere that I downloaded years ago, which shows rotating 3D shapes in VB. Remind me in a day or two if I haven't posted it here.
Dec 9 '07 #4

Expert 5K+
P: 8,434
I've got a sample program somewhere that I downloaded years ago, which shows rotating 3D shapes in VB. Remind me in a day or two if I haven't posted it here.
Just reminding myself. Haven't had a chance to find it yet.
Dec 12 '07 #5

P: 9
Sounds like something that might open the road for me.

Thanks Killer,

Robert
Dec 15 '07 #6

Expert 5K+
P: 8,434
Haven't found it yet, but I did find a lot of handy-looking references when I did a Google search on "VB 3D SAMPLE". I recommend you try it.
Dec 17 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.