1.11M Members

need help how to send data to printer

 
0
 

hello please help me how to print my data that sends to the printer hoping for your positive responds....

 
0
 

this is simple code to print directly.

Printer.Print Text1.Text

it print, what u write in text1.text.

 
0
 

Don't forget the...

Printer.EndDoc

Good Luck

 
0
 

hello thanks for the reply..ahm kindly please give me some example on this im confuse...can i print my data display on the flexgrid then send to the printer?...hoping for your positive responds.

 
0
 

Well, you could do a couple of things...

If you want to keep the graphical look of the grid and the form then it is time to search with your friends (yahoo, google, ask, answers, bing) for vb6 screenshot, vb6 printing screenshot.

However, if you just want to print directly to the printer without all the graphics showing up on the paper and thus using up more ink/toner, then you can use the printer.print method after you loop through the grid while building your string that you are going to print. Then after the .print method, you would want to use the .EndDoc method...

Good Luck

 
0
 

Hi,
There is another ongoing thread on Direct printing.. You can check there..
http://www.daniweb.com/forums/thread255432.html

Loop thru FlexGrid's Rows build a String and dump the string to printer..

Regards
Veena

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article