Solved

Printer.print line

Posted on 2007-04-11
2
177 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…
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…

820 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