Solved

Printer.print line

Posted on 2007-04-11
2
174 Views
Last Modified: 2008-02-01
I have a line on one of the vb forms. I want to print this line. The following command fails
printer.print form1.line.
Is there any other way of doing this?

Thank you in advance.
0
Comment
Question by:Aiysha
2 Comments
 
LVL 12

Expert Comment

by:jkaios
ID: 18893460
I'm afraid you cannot do that. However, if you want to print the line on the form including the form itself then you can simple use the PrintForm method instead.

Form1.PrintForm
0
 
LVL 6

Accepted Solution

by:
Muflone earned 500 total points
ID: 18920987
If you need to print just a straight line you can use:
Printer.Line (a,b)-(c,d)
where a and c are the x axis and b and d are the y axis

You can also choose a color for print the line adding RGB(xxx, yyy, zzz)
xxx = red component
yyy = green component
zzz = blue component
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

705 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

20 Experts available now in Live!

Get 1:1 Help Now