Solved

How can I draw lines on a Printer object?

Posted on 1998-11-03
2
132 Views
Last Modified: 2010-04-30
I need to print out (through printer) a picture, which
can be created by code with some lines and numbers. I
can created picture in PictureBox object. But in order
to print out, I have to (?) re-produce the picture in
Printer object. How can I do? Printer object does not
support Line event.

Please help. I would like some sample code if possible.

Thanks.

Hong Z.
0
Comment
Question by:advancefiber
2 Comments
 
LVL 1

Accepted Solution

by:
lawnranger earned 200 total points
ID: 1443014
The Printer object does support the Line method as in;
Printer.Line (100, 100)-(4000, 4000), QBColor(0)
Printer.EndDoc
which will print a black diagonal line on the page.
0
 
LVL 1

Author Comment

by:advancefiber
ID: 1443015
Thanks.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question