Solved

How can I draw lines on a Printer object?

Posted on 1998-11-03
2
131 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Opening Remote & Local Data Connection 2 57
add text to end of existing text in file 16 70
bit defender blocks good applications 2 93
Passing a Text Box name to a Sub 6 96
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

786 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