?
Solved

How can I draw lines on a Printer object?

Posted on 1998-11-03
2
Medium Priority
?
137 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 800 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

777 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