How to send Line command graphics from form to printer?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robertko2
    New Member
    • Oct 2007
    • 9

    How to send Line command graphics from form to printer?

    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.

    [CODE=vb]Form2.Picture1. Line (BaseStartLeft, BaseStartTop + TtlHt - TKHeight)-_
    Step(BDepth - TKDepth, TKHeight), B[/CODE]

    I tried Printer.Print and PrintForm methods, and either they don't work in this instance or my configuration is wrong.

    Thank you,
    Robert
    Last edited by Killer42; Nov 27 '07, 10:04 PM.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    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.)

    Comment

    • robertko2
      New Member
      • Oct 2007
      • 9

      #3
      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

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        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.

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by Killer42
          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.

          Comment

          • robertko2
            New Member
            • Oct 2007
            • 9

            #6
            Sounds like something that might open the road for me.

            Thanks Killer,

            Robert

            Comment

            • Killer42
              Recognized Expert Expert
              • Oct 2006
              • 8429

              #7
              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.

              Comment

              Working...