Solved

How can I draw lines on a Printer object?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now