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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing text files in VB

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Is it possible to print an ascii textfile from VB without opening it first? So, I want to send a file as input to a printer..

My second question: how can I send/put a pagebreak in an ascii file?

Thanks so much,

Eddy
 
I've got to ask, why don't you want to open the file?

Second question, it used to be a case of embedding ^L (chr$(12)) in a file would cause a page break - not sure if it still works - give it a try

Chaz
 
chr$(12) will work, although it is clearer to use the built-in constant: vbFormFeed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top