Click here to Skip to main content
15,904,288 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Am creating an application; after the end of the printing job; i have to introduce form feed from the application to the printer.

Is there any commands to do the same.

Thanks in advance,

Heera
Posted

Use Environment.NewLine at the end of your string.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Apr-11 14:45pm    
My 5. Always prefer the portable. However, if this is a printer and the Question is exactly about form feed, it's 12, CR is 13.
--SA
You have to "print" a control code to the printer.

The ASCII code for Form Feed is 12, so this should work:

VB
Dim myFeed As String = Chr(12)

'Then send the myFeed string to the printer using the same technique you used to print you print job...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900