Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I print a text file with VB6?

Status
Not open for further replies.

Hulisi

Programmer
Jan 28, 2001
31
TR
Hi
How can I print a text file with VB6?.
Please help me.

 
Print a text file? To the screen? To the LTP1 port? To a network Printer? To a file? If you choose to battle wits with the witless be prepared to lose.
[machinegun][hammer]

[cheers]
 

You can use the Printer object itself or you can use the ShellExecuteEx API with the "print" verb for the lpVerb parameter in the SHELLEXECUTEINFO structure or you could load the text into a richtextbox and use the SelPrint method.

Good Luck

 
How can I print a text file to LPT1 with VB6?.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top