Link to home
Start Free TrialLog in
Avatar of Rguess
Rguess

asked on

print file to default printer

I need to print a file to the default printer from vb.

I have seen this somehwhere I just can't find it again.

Thanks in advacne!!!
Avatar of tkalchev
tkalchev
Flag of Germany image

What for a file you need to print? Word document, ASCII text, something else ... ?

The easiest way is to use the Printer object :

Printer.BeginDoc
Printer.Print "Some text"
Printer.EndDoc

Avatar of Rguess
Rguess

ASKER

I actaully have multiple documents in various formats. The defualt printer is distiller. So I am trying to print to distiller (which is the default printer)
ASKER CERTIFIED SOLUTION
Avatar of tkalchev
tkalchev
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rguess

ASKER

Thanks!