 |
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Print method is not avaliable
Printer object in VB doesnt have Print method
Quoted from MSDN:
Use graphics methods to draw text and graphics on the Printer object. Once the Printer object contains the output you want to print, you can use the EndDoc method to send the output directly to the default printer for the application.
Graphics methods are Circle, Cls, Line, PaintPicture, Point, Print, and PSet. They are not present in intelisence, but U can use them.
[Edited by Goran on 12-01-2004 at 06:49 PM GMT]
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
12-01-2004 at 12:35 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Print method is not avaliable
If printer is not installed, it will display:
Run-time error '482'
Printer error
I dont have attached any printer on my comp, I only installed driver for printer (type not important), and it works.
I believe that you always have to have default printer, cause I think it works like option buttons, one always have to be selected. If you delete driver for default printer, it will pick another to be default if any installed. At least this is how it works on WinXP, not sure about Win98.
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
12-01-2004 at 06:04 PM |
|
|
|
|
 |
 |