Solved

How can I draw lines on a Printer object?

Posted on 1998-11-03
2
134 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

726 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