473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.

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
6 1508
Killer42
8,435 Expert 8TB
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
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
Killer42
8,435 Expert 8TB
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
Killer42
8,435 Expert 8TB
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
Sounds like something that might open the road for me.

Thanks Killer,

Robert
Dec 15 '07 #6
Killer42
8,435 Expert 8TB
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

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

Similar topics

1
by: Ellie | last post by:
I'm stumped. We're building a Struts app running on Websphere on Win2k, with a SQL Server backend. They want pdf files stored in the database; they're in there as Image datatypes. My mission is...
5
by: ipswich67 | last post by:
Our win forms application generates printed output that is built dynamically from images and data queries then written to a graphics object for printing, however I also need to be able to save the...
1
by: Michael Kilpatrick | last post by:
I'm writing a command-line PHP script that gets executed by a virtual printer (a redirected port using the Redmon tool). The PHP modifies the Postscript data before forwarding it to the real...
3
by: RC | last post by:
I am using docmd.printout to send Reports (formatted as labels) to a barcode label printer. I need to collate the labels so that I print lable 1 twice, then label 2 twice, then label 3 twice, etc....
13
by: Susan Beebe | last post by:
I have downloaded the code described in Microsoft article Q154078. I am trying to send raw ZPL (zebra barcode printer) code from Microsoft access. It works just fine if I hard code the actual...
3
by: Bell, Kevin | last post by:
Does anyone have any suggestions on printing pdf's? These pdf's don't change much, so if it be more straight forward to convert them to jpgs, or another format, then that'd be fine too. ...
6
by: Chris Dunaway | last post by:
The method for printing documents in .Net can be confusing, especially for newer users. I would like to create a way to simplify this process. My idea would be implemented using a PrintDocument...
0
by: realgoggi | last post by:
Hello, I have a label printer connected to LPT1 on the server where IIS and the ASPX/C# code is running. From the web application I need to send data to the printer. Preferably directly,...
0
by: dtnam | last post by:
Hi, I want to do something like that: void doc_PrintPage(object sender, PrintPageEventArgs e) { // draw a rectangle e.Graphics.DrawRectangle(Pens.Black, new Rectangle(10, 10, 100,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.